/* ==========================================
   Rules Page Styles
   ========================================== */

/* Rules Hero */
.rules-hero {
    position: relative;
    padding: 160px 24px 80px;
    overflow: hidden;
}

.rules-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.15), transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 100%, rgba(63, 212, 217, 0.1), transparent 50%),
        linear-gradient(to bottom, var(--navy-darkest), var(--navy-dark));
    z-index: -1;
}

.rules-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.rules-title {
    font-family: 'Hebden Incised', var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rules-intro {
    font-size: 18px;
    color: var(--gray-300);
    line-height: 1.7;
}

/* Rules Section */
.rules-section {
    padding: 80px 0 120px;
    background: var(--navy-dark);
}

.rules-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}

/* Rules Sidebar */
.rules-sidebar {
    position: sticky;
    top: 100px;
}

.rules-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rules-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
}

.rules-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.rules-nav-item.active {
    background: rgba(63, 212, 217, 0.1);
    border-color: rgba(63, 212, 217, 0.3);
    color: var(--teal-light);
}

.rules-nav-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-family: 'Hebden Incised', var(--font-display);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.rules-nav-item.active .rules-nav-number {
    background: rgba(63, 212, 217, 0.2);
    color: var(--teal-light);
}

/* Rules Content */
.rules-content {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.rules-article {
    scroll-margin-top: 100px;
}

.rules-article-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rules-section-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(63, 212, 217, 0.2), rgba(63, 212, 217, 0.05));
    border: 1px solid rgba(63, 212, 217, 0.3);
    border-radius: 16px;
    font-family: 'Hebden Incised', var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--teal-light);
    flex-shrink: 0;
}

.rules-article-header h2 {
    font-family: 'Hebden Incised', var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
}

/* Rule Groups */
.rule-group {
    margin-bottom: 32px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: var(--transition-base);
}

.rule-group:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.rule-group h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Hebden Incised', var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.rule-number {
    color: var(--gold-base);
    font-weight: 700;
}

.rule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-list li {
    display: flex;
    gap: 12px;
    color: var(--gray-200);
    font-size: 15px;
    line-height: 1.7;
}

.rule-list li span {
    color: var(--teal-base);
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    min-width: 32px;
}

/* Rules CTA */
.rules-cta {
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.05));
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 16px;
    text-align: center;
}

.rules-cta p {
    color: var(--gray-300);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .rules-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rules-sidebar {
        position: relative;
        top: 0;
    }

    .rules-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .rules-nav-item {
        padding: 12px 16px;
        font-size: 13px;
    }

    .rules-nav-item span:last-child {
        display: none;
    }

    .rules-nav-number {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .rules-hero {
        padding: 140px 16px 60px;
    }

    .rules-section {
        padding: 40px 0 80px;
    }

    .rules-article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .rules-section-number {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .rules-article-header h2 {
        font-size: 22px;
    }

    .rule-group {
        padding: 20px;
    }

    .rule-group h3 {
        font-size: 16px;
    }
}
