/*
==========================================================
The Dugout Member Handbook
rules.css
==========================================================
*/

.rules-board{
    display:flex;
    flex-direction:column;
    gap:28px;
}


/* ==========================================================
   INTRODUCTION
========================================================== */

.rules-intro{

    padding:32px;

    border:1px solid #1f2937;
    border-radius:18px;

    background:
        radial-gradient(
            circle at top left,
            #111827,
            #020617 72%
        );

    box-shadow:
        0 18px 40px rgba(0,0,0,.60);

}

.rules-kicker{

    margin:0 0 10px;

    color:#fde68a;

    font-size:.78rem;
    font-weight:800;

    letter-spacing:.18em;
    text-transform:uppercase;

}

.rules-intro h2{

    margin:0;

    color:#fff;

    font-size:clamp(2rem,4vw,2.8rem);

    line-height:1.1;

    letter-spacing:.04em;
    text-transform:uppercase;

}

.rules-intro p{

    max-width:900px;

    margin:18px 0 0;

    color:#d1d5db;

    font-size:1rem;

    line-height:1.8;

}


/* ==========================================================
   SECTION HEADERS
========================================================== */

.rules-section{

    display:flex;
    flex-direction:column;

    gap:22px;

}

.rules-section-heading{

    text-align:center;

}

.rules-section-heading p{

    margin:0 0 8px;

    color:#fde68a;

    font-size:.78rem;
    font-weight:800;

    letter-spacing:.18em;
    text-transform:uppercase;

}

.rules-section-heading h2{

    margin:0;

    color:#fff;

    font-size:clamp(1.7rem,3vw,2.3rem);

    letter-spacing:.05em;
    text-transform:uppercase;

}


/* ==========================================================
   CORE VALUES
========================================================== */

.values-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));

    gap:18px;

}

.value-card{

    padding:24px;

    border:1px solid #374151;
    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            rgba(17,24,39,.96),
            rgba(2,6,23,.98)
        );

    transition:.25s ease;

}

.value-card:hover{

    transform:translateY(-4px);

    border-color:#dc2626;

}

.value-icon{

    display:flex;
    align-items:center;
    justify-content:center;

    width:54px;
    height:54px;

    margin-bottom:18px;

    border-radius:50%;

    background:#dc2626;

    color:#fff;

    font-size:1.3rem;
    font-weight:900;

}

.value-card h3{

    margin:0 0 12px;

    color:#fff;

}

.value-card p{

    margin:0;

    color:#d1d5db;

    line-height:1.7;

}
/* ==========================================================
   CATEGORY NAVIGATION
========================================================== */

.rules-category-links{

    display:flex;
    justify-content:center;
    flex-wrap:wrap;

    gap:12px;

}

.rules-category-links a{

    padding:10px 18px;

    border:1px solid #374151;
    border-radius:999px;

    background:#111827;

    color:#e5e7eb;

    text-decoration:none;

    font-size:.82rem;
    font-weight:700;

    transition:.2s ease;

}

.rules-category-links a:hover{

    background:#dc2626;

    border-color:#dc2626;

    color:#fff;

}


/* ==========================================================
   RULE CARDS
========================================================== */

.rules-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(340px,1fr));

    gap:20px;

}

.rule-card{

    display:flex;

    gap:18px;

    padding:24px;

    border:1px solid #374151;
    border-radius:18px;

    background:
        linear-gradient(
            140deg,
            rgba(17,24,39,.98),
            rgba(2,6,23,.98)
        );

    transition:.25s ease;

}

.rule-card:hover{

    transform:translateY(-5px);

    border-color:#dc2626;

    box-shadow:
        0 18px 34px rgba(0,0,0,.45);

}

.rule-number{

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;

    width:54px;
    height:54px;

    border-radius:50%;

    background:#dc2626;

    color:#fff;

    font-size:1rem;
    font-weight:900;

}

.rule-card h3{

    margin:0 0 10px;

    color:#fff;

    font-size:1.15rem;

}

.rule-card p{

    margin:0 0 12px;

    color:#d1d5db;

    line-height:1.75;

}

.rule-card p:last-child{

    margin-bottom:0;

}


/* ==========================================================
   FEATURED RULES
========================================================== */

.rule-card--featured{

    border:2px solid #22c55e;

    background:
        linear-gradient(
            140deg,
            rgba(22,101,52,.22),
            rgba(2,6,23,.98)
        );

}

.rule-card--featured .rule-number{

    background:#22c55e;

}


/* ==========================================================
   WARNING RULES
========================================================== */

.rule-card--warning{

    border:2px solid #f59e0b;

    background:
        linear-gradient(
            140deg,
            rgba(120,53,15,.25),
            rgba(2,6,23,.98)
        );

}

.rule-card--warning .rule-number{

    background:#f59e0b;

}
/* ==========================================================
   VIOLATIONS
========================================================== */

.rules-section--violations{

    margin-top:10px;

}

.violations-box{

    max-width:900px;

    margin:0 auto;

    padding:28px;

    border:2px solid #dc2626;
    border-radius:18px;

    background:
        linear-gradient(
            135deg,
            rgba(127,29,29,.28),
            rgba(2,6,23,.98)
        );

    text-align:center;

}

.violations-box p{

    margin:0 0 18px;

    color:#f3f4f6;

    line-height:1.8;

}

.violations-box p:last-child{

    margin-bottom:0;

}


/* ==========================================================
   ATHLETE PLEDGE
========================================================== */

.pledge-section{

    padding:40px;

    border:1px solid #374151;
    border-radius:20px;

    background:
        radial-gradient(
            circle at top,
            rgba(220,38,38,.22),
            rgba(2,6,23,.98)
        );

    text-align:center;

}

.pledge-section h2{

    margin:0 0 24px;

    color:#fff;

    font-size:clamp(1.8rem,4vw,2.5rem);

    letter-spacing:.05em;
    text-transform:uppercase;

}

.pledge-section blockquote{

    max-width:900px;

    margin:0 auto;

    color:#e5e7eb;

    font-size:1.2rem;

    line-height:1.8;

    font-style:italic;

}


/* ==========================================================
   THANK YOU
========================================================== */

.rules-final-notice{

    display:grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    align-items:center;

    gap:30px;

    padding:32px;

    border:1px solid #1f2937;
    border-radius:20px;

    background:
        linear-gradient(
            140deg,
            rgba(17,24,39,.98),
            rgba(2,6,23,.98)
        );

}

.rules-final-notice h2{

    margin:0 0 14px;

    color:#fff;

}

.rules-final-notice p{

    margin:0;

    color:#d1d5db;

    line-height:1.8;

}

.rules-final-actions{

    display:flex;
    flex-wrap:wrap;

    gap:12px;

}


/* ==========================================================
   FOOTER
========================================================== */

.rules-footer-link{

    color:#22c55e;

    text-decoration:none;

    font-weight:700;

}

.rules-footer-link:hover{

    text-decoration:underline;

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:900px){

    .rules-final-notice{

        grid-template-columns:1fr;

        text-align:center;

    }

    .rules-final-actions{

        justify-content:center;

    }

}

@media (max-width:700px){

    .rules-intro{

        padding:24px;

    }

    .rules-grid{

        grid-template-columns:1fr;

    }

    .rule-card{

        flex-direction:column;

        gap:14px;

    }

    .rule-number{

        width:46px;
        height:46px;

        font-size:.9rem;

    }

    .pledge-section{

        padding:28px 20px;

    }

    .pledge-section blockquote{

        font-size:1rem;

    }

}