/* ============================================
   RULES PAGE STYLES
   LBL Fantasy - Game Rules
   ============================================ */

:root {
    --rules-primary: #10b981;
    --rules-secondary: #00d4aa;
    --rules-accent: #F37021;
    --card-bg: rgba(30, 30, 30, 0.95);
    --card-border: rgba(243, 112, 33, 0.2);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

.rules-main {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
}

.rules-section {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.rules-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rules-section h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 0px var(--rules-primary);
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 0.5rem;
}

.rules-section .subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* ============================================
   QUICK NAVIGATION
   ============================================ */

.rules-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
}

.rules-nav-item {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rules-nav-item:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--rules-primary);
    color: var(--rules-primary);
    transform: translateY(-2px);
}

/* ============================================
   RULE CARDS
   ============================================ */

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rule-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(16, 185, 129, 0.05);
    border-bottom: 1px solid var(--card-border);
}

.rule-icon {
    font-size: 2rem;
}

.rule-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.rule-body {
    padding: 2rem;
}

.rule-item {
    margin-bottom: 1.5rem;
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-item h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--rules-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.rule-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.rule-intro {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ============================================
   RULE LISTS
   ============================================ */

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.rule-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--rules-primary);
    font-weight: 600;
}

.rule-list li:last-child {
    margin-bottom: 0;
}

/* ============================================
   SCORING TABLE
   ============================================ */

.scoring-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.scoring-category h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.scoring-category table {
    width: 100%;
    border-collapse: collapse;
}

.scoring-category td {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scoring-category tr:last-child td {
    border-bottom: none;
}

.scoring-category td.points {
    text-align: right;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--rules-secondary);
}

.scoring-category td.negative {
    text-align: right;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: #ef4444;
}

.scoring-category td.bonus {
    text-align: right;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--rules-accent);
}

/* ============================================
   POWER-UPS GRID
   ============================================ */

.powerup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.powerup-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.powerup-card:hover {
    border-color: var(--rules-primary);
    transform: translateY(-3px);
}

.powerup-card .powerup-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.powerup-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.powerup-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   TIPS SECTION
   ============================================ */

.tips-card .rule-header {
    background: rgba(245, 158, 11, 0.05);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tip-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--rules-accent);
    opacity: 0.5;
    min-width: 40px;
}

.tip-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .rules-section {
        padding: 2rem 1rem;
    }

    .rules-section h1 {
        font-size: 2rem;
    }

    .rule-header {
        padding: 1.25rem 1.5rem;
    }

    .rule-body {
        padding: 1.5rem;
    }

    .rules-nav {
        padding: 1rem;
    }

    .rules-nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .scoring-table {
        grid-template-columns: 1fr;
    }

    .powerup-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rules-section h1 {
        font-size: 1.75rem;
    }

    .rule-header h2 {
        font-size: 1.1rem;
    }

    .powerup-grid {
        grid-template-columns: 1fr;
    }
}