/* Spelregels & Huisregels pagina */

.rules-page {
    flex: 1;
    background: var(--color-bg);
    color: var(--color-text);
}

/* ---- Paginakoptekst ---- */

.rules-hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.72)),
        url("/assets/img/hero.jpg") center / cover no-repeat,
        #1a1a1a;
    color: var(--paper);
    text-align: center;
    padding: 4rem 2rem 3.5rem;
}

.rules-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--amber);
    margin-bottom: 0.6rem;
}

.rules-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.rules-intro {
    max-width: 560px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.88;
}

/* ---- Inhoud ---- */

.rules-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ---- Sectie-blok ---- */

.rules-section {
    background: var(--color-surface);
    border-radius: 14px;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    color: var(--color-text);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--amber);
    color: var(--color-text);
}

.section-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.section-lead {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

/* ---- Spelregels kaartjes ---- */

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.rule-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    border-top: 3px solid var(--amber);
}

.rule-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.rule-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--color-muted);
}

/* ---- Huisregels categorieën ---- */

.rules-categories {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rule-category {
    border-left: 4px solid var(--nl-blue);
    padding-left: 1.25rem;
}

.rule-category h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--nl-blue);
}

.rule-category ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.rule-category li {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text);
    padding-left: 1.1rem;
    position: relative;
}

.rule-category li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--color-muted);
}

/* ---- Sluitingsbalk ---- */

.rules-footer-note {
    background: var(--nl-blue);
    color: var(--paper);
    border-radius: 14px;
    padding: 2rem 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.rules-footer-note p {
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.9;
    flex: 1;
    min-width: 200px;
}

/* ---- Responsief ---- */

@media (max-width: 640px) {
    .rules-section { padding: 1.5rem 1.25rem; }

    .rules-footer-note {
        flex-direction: column;
        text-align: center;
    }

    .rule-category {
        border-left: none;
        border-top: 3px solid var(--nl-blue);
        padding-left: 0;
        padding-top: 1rem;
    }
}
