/* ==========================================
   RULES PAGE STYLES
   ========================================== */

/* Rules Hero Section */
.rules-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.1) 0%, rgba(15, 10, 21, 0.8) 50%, rgba(15, 10, 21, 1) 100%);
}

.rules-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.rules-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.rules-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.1s both;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.rules-hero .tagline {
    font-size: 1.5rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rules-hero .description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Table of Contents Section */
.toc-section {
    padding: 4rem 2rem;
    background: var(--secondary-dark);
    position: relative;
}

.toc-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}

.toc-nav {
    margin-top: 2rem;
}

.toc-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.toc-nav li {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.08) 0%, rgba(0, 217, 255, 0.05) 100%);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toc-nav li:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.15);
    transform: translateY(-3px);
}

.toc-nav a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.toc-nav a:hover {
    color: var(--accent-orange);
}

/* Section Styles */

.rules-section {
    padding: 5rem 2rem;
    background: var(--secondary-dark);
    position: relative;
}

.rules-section.alt-bg {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a0f2e 100%);
}

.rules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.rules-content {
    margin-top: 2rem;
    max-width: 1000px;
}

.rules-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.rules-content h3 {
    font-size: 1.3rem;
    color: var(--accent-orange);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rules-content h4 {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rules-content strong {
    color: var(--accent-orange);
    font-weight: 600;
}

/* Rules Lists */
.rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.list-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08) 0%, rgba(255, 140, 66, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.list-item:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.1);
    transform: translateY(-3px);
}

.list-item h4 {
    margin-top: 0;
    color: var(--accent-orange);
}

.list-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.rules-sublist {
    margin-left: 1.5rem;
}

/* Back to Top Section */
.back-to-top-section {
    padding: 2rem;
    background: var(--secondary-dark);
    text-align: center;
    border-top: 1px solid rgba(255, 140, 66, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .rules-hero h1 {
        font-size: 2.5rem;
    }

    .rules-hero .tagline {
        font-size: 1.2rem;
    }

    .rules-hero .description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .rules-content p {
        font-size: 0.95rem;
    }

    .rules-list {
        grid-template-columns: 1fr;
    }

    .toc-nav ul {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
