/* ============================================================
   FEATURES.CSS - CS 1.6 Community - Extended Feature Styles
   Covers: Activity Feed, Seasons, Challenges, Comparator,
           Hall of Fame, Charts, Navigation Dropdown, Level/XP
   Color palette inherits from public.css :root variables.
   ============================================================ */

/* ============================================================
   NAV DROPDOWN
   ============================================================ */

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-dim, #7a7a8e);
    font-family: var(--font-main, sans-serif);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius, 8px);
    transition: color 0.25s ease, background 0.25s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.active .nav-dropdown-toggle {
    color: var(--accent, #00f0ff);
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu panel */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #0e0e1a;
    border: 1px solid var(--border-light, #2a2a40);
    border-radius: var(--radius-lg, 12px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 240, 255, 0.06);
    padding: 6px;
    display: none;
    z-index: 200;
    /* Subtle entrance */
    animation: ddFadeIn 0.18s ease forwards;
}

@keyframes ddFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius, 8px);
    color: var(--text-dim, #7a7a8e);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent, #00f0ff);
}

.dd-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Mobile dropdown - stacks inside the open hamburger menu */
@media (max-width: 768px) {
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.7rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border, #1e1e30);
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        left: auto;
        min-width: 100%;
        width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 240, 255, 0.04);
        padding: 0;
        border-top: 1px solid var(--border, #1e1e30);
        animation: none;
    }

    .nav-dropdown-menu a {
        padding: 12px 28px;
        border-radius: 0;
        font-size: 0.9rem;
    }
}


/* ============================================================
   ACTIVITY FEED WIDGET
   ============================================================ */

.feed-widget {
    background: var(--bg-card, #12121a);
    border: 1px solid var(--border-light, #2a2a40);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
}

.feed-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--border, #1e1e30);
}

.feed-widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent, #00f0ff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green, #00ff88);
    border-radius: 50%;
    animation: livePulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
    50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

.feed-refresh-btn {
    background: none;
    border: 1px solid var(--border-light, #2a2a40);
    border-radius: 6px;
    color: var(--text-dim, #7a7a8e);
    font-size: 0.75rem;
    padding: 4px 10px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.feed-refresh-btn:hover {
    border-color: var(--accent, #00f0ff);
    color: var(--accent, #00f0ff);
}

/* Scrollable list: max 5 visible items */
.feed-list {
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
}

.feed-list::-webkit-scrollbar { width: 4px; }
.feed-list::-webkit-scrollbar-track { background: transparent; }
.feed-list::-webkit-scrollbar-thumb { background: var(--border-light, #2a2a40); border-radius: 2px; }

/* Feed item */
.feed-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    animation: feedSlideIn 0.35s ease both;
    transition: background 0.2s;
}

.feed-item:last-child { border-bottom: none; }

.feed-item:hover {
    background: rgba(0, 240, 255, 0.04);
}

@keyframes feedSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.feed-item-icon {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.feed-item-body {
    flex: 1;
    min-width: 0;
}

.feed-item-player {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent, #00f0ff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-item-player:hover {
    text-decoration: underline;
}

.feed-item-desc {
    font-size: 0.82rem;
    color: var(--text-dim, #7a7a8e);
    margin-top: 1px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-item-time {
    font-size: 0.72rem;
    color: var(--text-muted, #4a4a5e);
    white-space: nowrap;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Event-type accent colors */
.feed-item[data-type="achievement"]         .feed-item-icon { color: #ffd700; }
.feed-item[data-type="vip_purchase"]        .feed-item-icon { color: var(--accent-purple, #a855f7); }
.feed-item[data-type="rank_up"]             .feed-item-icon { color: var(--accent-green, #00ff88); }
.feed-item[data-type="challenge_complete"]  .feed-item-icon { color: var(--accent, #00f0ff); }
.feed-item[data-type="season_champion"]     .feed-item-icon { color: #ffd700; }
.feed-item[data-type="record_broken"]       .feed-item-icon { color: var(--accent-red, #ff4757); }
.feed-item[data-type="new_player"]          .feed-item-icon { color: var(--accent-green, #00ff88); }

.feed-empty {
    padding: 24px 20px;
    text-align: center;
    color: var(--text-muted, #4a4a5e);
    font-size: 0.85rem;
}

/* Ticker variant (landing page horizontal scroll) */
.feed-ticker {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border, #1e1e30);
    border-bottom: 1px solid var(--border, #1e1e30);
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
}

.feed-ticker-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.feed-ticker:hover .feed-ticker-inner {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.feed-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--text-dim, #7a7a8e);
}

.feed-ticker-item .ticker-icon { font-size: 0.95rem; }
.feed-ticker-item .ticker-player { color: var(--accent, #00f0ff); font-weight: 600; }
.feed-ticker-item .ticker-sep {
    color: var(--text-muted, #4a4a5e);
    margin: 0 4px;
}


/* ============================================================
   SEASONS PAGE
   ============================================================ */

.seasons-page { padding: 40px 0 60px; }

.seasons-hero {
    text-align: center;
    padding: 48px 20px 36px;
}

.seasons-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent, #00f0ff) 0%, var(--accent-green, #00ff88) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

/* Active season card */
.season-card {
    background: var(--bg-card, #12121a);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.season-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg, 12px);
    padding: 1px;
    background: linear-gradient(135deg, var(--accent, #00f0ff), var(--accent-green, #00ff88));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.season-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.12);
}

.season-card.season-ended {
    opacity: 0.7;
}

.season-card.season-ended::before {
    background: linear-gradient(135deg, var(--border-light, #2a2a40), var(--text-muted, #4a4a5e));
}

.season-card.season-ended:hover {
    opacity: 0.9;
}

.season-card-header {
    padding: 20px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border, #1e1e30);
}

.season-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.season-status-badge.active {
    background: rgba(0, 255, 136, 0.12);
    color: var(--accent-green, #00ff88);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.season-status-badge.upcoming {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent, #00f0ff);
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.season-status-badge.ended {
    background: rgba(100, 100, 120, 0.15);
    color: var(--text-muted, #4a4a5e);
    border: 1px solid var(--border, #1e1e30);
}

.season-card-body { padding: 20px 24px; }

.season-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border, #1e1e30);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Countdown timer */
.season-countdown {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 16px 0;
}

.countdown-unit {
    text-align: center;
    min-width: 52px;
}

.countdown-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent, #00f0ff);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted, #4a4a5e);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 3px;
}

.countdown-sep {
    font-size: 1.4rem;
    color: var(--border-light, #2a2a40);
    font-weight: 700;
    margin-bottom: 12px;
}

/* Tier badges */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tier-badge.champion {
    background: rgba(255, 215, 0, 0.12);
    color: var(--accent-gold, #ffd700);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tier-badge.elite {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-purple, #a855f7);
    border: 1px solid rgba(168, 85, 247, 0.28);
}

.tier-badge.veteran {
    background: rgba(0, 176, 96, 0.12);
    color: var(--accent-green, #00ff88);
    border: 1px solid rgba(0, 255, 136, 0.28);
}

.tier-badge.participant {
    background: rgba(74, 74, 94, 0.2);
    color: var(--text-dim, #7a7a8e);
    border: 1px solid var(--border, #1e1e30);
}

/* Past seasons grid */
.past-seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}


/* ============================================================
   CHALLENGES PAGE
   ============================================================ */

.challenges-page { padding: 40px 0 60px; }

.challenges-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

/* Level progress bar at top */
.level-progress-bar-wrap {
    background: var(--bg-card, #12121a);
    border: 1px solid var(--border-light, #2a2a40);
    border-radius: var(--radius-lg, 12px);
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.level-badge-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #00f0ff), var(--accent-green, #00ff88));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.level-info { flex: 1; min-width: 180px; }

.level-title-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text, #e8e8f0);
    margin-bottom: 4px;
}

.level-xp-text {
    font-size: 0.8rem;
    color: var(--text-dim, #7a7a8e);
    margin-bottom: 8px;
}

.xp-bar {
    height: 8px;
    background: var(--bg-input, #0e0e18);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border, #1e1e30);
}

.xp-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent, #00f0ff), var(--accent-green, #00ff88));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
}

.xp-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: xpSheen 2s ease-in-out infinite;
}

@keyframes xpSheen {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Streak counter */
.streak-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-red, #ff4757);
    flex-shrink: 0;
}

.streak-icon { font-size: 1rem; }

/* Challenge card */
.challenge-card {
    background: var(--bg-card, #12121a);
    border: 1px solid var(--border-light, #2a2a40);
    border-radius: var(--radius-lg, 12px);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    border-color: var(--accent, #00f0ff);
}

/* Daily vs weekly distinction */
.challenge-card.daily {
    border-left: 3px solid var(--accent, #00f0ff);
}

.challenge-card.weekly {
    border-left: 3px solid var(--accent-gold, #ffd700);
}

/* Completed overlay */
.challenge-card.completed {
    opacity: 0.65;
}

.challenge-card.completed::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    background: var(--accent-green, #00ff88);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
}

.challenge-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.challenge-type-tag.daily {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent, #00f0ff);
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.challenge-type-tag.weekly {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent-gold, #ffd700);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.challenge-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text, #e8e8f0);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-desc {
    font-size: 0.82rem;
    color: var(--text-dim, #7a7a8e);
    margin-bottom: 14px;
    line-height: 1.4;
}

/* Progress bar inside challenge card */
.challenge-progress-wrap {
    margin-bottom: 10px;
}

.challenge-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-dim, #7a7a8e);
    margin-bottom: 6px;
}

.challenge-progress-bar {
    height: 6px;
    background: var(--bg-input, #0e0e18);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border, #1e1e30);
}

.challenge-progress-fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.challenge-card.daily .challenge-progress-fill {
    background: linear-gradient(90deg, var(--accent, #00f0ff), rgba(0, 240, 255, 0.5));
}

.challenge-card.weekly .challenge-progress-fill {
    background: linear-gradient(90deg, var(--accent-gold, #ffd700), rgba(255, 215, 0, 0.5));
}

/* XP badge */
.xp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-green, #00ff88);
}

/* Challenges grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}


/* ============================================================
   COMPARATOR PAGE
   ============================================================ */

.compare-page { padding: 40px 0 60px; }

.compare-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .compare-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Player cards */
.compare-player-card {
    background: var(--bg-card, #12121a);
    border: 1px solid var(--border-light, #2a2a40);
    border-radius: var(--radius-lg, 12px);
    padding: 24px;
    text-align: center;
    transition: border-color 0.25s;
}

.compare-player-card.player-a {
    border-top: 3px solid #3b82f6;
}

.compare-player-card.player-b {
    border-top: 3px solid var(--accent-red, #ff4757);
}

.compare-player-card.winner {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
    border-color: var(--accent, #00f0ff);
}

.compare-player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text, #e8e8f0);
    margin-bottom: 4px;
}

.compare-player-rank {
    font-size: 0.82rem;
    color: var(--text-dim, #7a7a8e);
    margin-bottom: 16px;
}

/* VS center badge */
.compare-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

@media (max-width: 768px) {
    .compare-vs {
        padding-top: 0;
        order: -1;
        flex-direction: row;
        gap: 16px;
    }
}

.vs-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red, #ff4757), #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    box-shadow:
        0 0 24px rgba(255, 71, 87, 0.3),
        0 0 24px rgba(59, 130, 246, 0.3);
    letter-spacing: 0.05em;
}

/* Stat comparison bars */
.compare-stats { margin-top: 28px; }

.compare-stat-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.compare-bar-wrap {
    height: 8px;
    background: var(--bg-input, #0e0e18);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border, #1e1e30);
    position: relative;
}

/* Player A bar fills from right */
.compare-stat-row .bar-a .compare-bar-fill {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.5), #3b82f6);
    border-radius: 4px;
    transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    width: 0%;
}

/* Player B bar fills from left */
.compare-stat-row .bar-b .compare-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red, #ff4757), rgba(255, 71, 87, 0.5));
    border-radius: 4px;
    transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    width: 0%;
}

/* Winner glow on the winning bar value */
.compare-stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dim, #7a7a8e);
    text-align: center;
    white-space: nowrap;
}

.compare-stat-value.winner-val {
    color: var(--accent, #00f0ff);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.compare-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted, #4a4a5e);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Search inputs for comparator */
.compare-search {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.compare-search input {
    flex: 1;
    min-width: 200px;
    background: var(--bg-input, #0e0e18);
    border: 1px solid var(--border-light, #2a2a40);
    border-radius: var(--radius, 8px);
    color: var(--text, #e8e8f0);
    padding: 10px 14px;
    font-size: 0.88rem;
    transition: border-color 0.2s;
}

.compare-search input:focus {
    outline: none;
    border-color: var(--accent, #00f0ff);
}


/* ============================================================
   HALL OF FAME PAGE
   ============================================================ */

.hof-page { padding: 40px 0 60px; }

.hof-hero {
    text-align: center;
    padding: 48px 20px 40px;
    position: relative;
}

.hof-hero::before {
    content: '🏆';
    display: block;
    font-size: 3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.hof-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 60%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

/* Trophy cards */
.trophy-card {
    background: var(--bg-card, #12121a);
    border-radius: var(--radius-lg, 12px);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trophy-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg, 12px);
    padding: 1px;
    pointer-events: none;
}

.trophy-card.gold::before {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.trophy-card.silver::before {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.trophy-card.bronze::before {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.trophy-card:hover {
    transform: translateY(-4px);
}

.trophy-card.gold:hover   { box-shadow: 0 12px 40px rgba(255, 215, 0, 0.18); }
.trophy-card.silver:hover { box-shadow: 0 12px 40px rgba(192, 192, 192, 0.14); }
.trophy-card.bronze:hover { box-shadow: 0 12px 40px rgba(205, 127, 50, 0.14); }

.trophy-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 12px;
    text-align: center;
}

.trophy-card.gold   .trophy-icon { filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6)); }
.trophy-card.silver .trophy-icon { filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.5)); }
.trophy-card.bronze .trophy-icon { filter: drop-shadow(0 0 10px rgba(205, 127, 50, 0.5)); }

.trophy-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 8px;
}

.trophy-card.gold   .trophy-title { color: #ffd700; }
.trophy-card.silver .trophy-title { color: #c0c0c0; }
.trophy-card.bronze .trophy-title { color: #cd7f32; }

.trophy-player {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text, #e8e8f0);
    text-align: center;
    margin-bottom: 4px;
}

.trophy-value {
    font-size: 0.82rem;
    color: var(--text-dim, #7a7a8e);
    text-align: center;
}

/* Legend aura for top champion */
.legend-aura {
    position: relative;
}

.legend-aura::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 20px;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: legendPulse 3s ease-in-out infinite;
}

@keyframes legendPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Monthly champions timeline */
.champions-timeline {
    position: relative;
    padding-left: 28px;
}

.champions-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-gold, #ffd700), var(--border, #1e1e30));
    border-radius: 1px;
}

.timeline-entry {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.timeline-entry::before {
    content: '';
    position: absolute;
    left: -22px;
    width: 10px;
    height: 10px;
    background: var(--accent-gold, #ffd700);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    flex-shrink: 0;
}

.timeline-period {
    font-size: 0.78rem;
    color: var(--text-muted, #4a4a5e);
    min-width: 90px;
    flex-shrink: 0;
}

.timeline-player {
    font-weight: 600;
    color: var(--text, #e8e8f0);
    font-size: 0.9rem;
}

.timeline-stat {
    font-size: 0.8rem;
    color: var(--text-dim, #7a7a8e);
    margin-left: auto;
    flex-shrink: 0;
}

/* Record cards */
.record-card {
    background: var(--bg-card, #12121a);
    border: 1px solid var(--border-light, #2a2a40);
    border-radius: var(--radius, 8px);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.25s, transform 0.25s;
}

.record-card:hover {
    border-color: rgba(255, 215, 0, 0.35);
    transform: translateX(4px);
}

.record-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.08);
    border-radius: var(--radius, 8px);
    flex-shrink: 0;
}

.record-info { flex: 1; }

.record-type {
    font-size: 0.75rem;
    color: var(--text-muted, #4a4a5e);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.record-holder {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text, #e8e8f0);
}

.record-value-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-gold, #ffd700);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    text-align: right;
}

.record-value-label {
    font-size: 0.65rem;
    color: var(--text-muted, #4a4a5e);
    text-transform: uppercase;
    text-align: right;
}

/* HOF trophy grid */
.trophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}


/* ============================================================
   CHART CONTAINERS
   ============================================================ */

.chart-wrapper {
    background: var(--bg-card, #12121a);
    border: 1px solid var(--border-light, #2a2a40);
    border-radius: var(--radius-lg, 12px);
    padding: 20px 24px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.chart-wrapper:hover {
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.chart-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim, #7a7a8e);
    margin-bottom: 16px;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 180px;
}

/* Chart.js canvas dark-mode helper class */
.chart-canvas {
    border-radius: var(--radius, 8px);
}


/* ============================================================
   LEVEL / XP BADGES (inline use, e.g. ranking table)
   ============================================================ */

.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Tier color mapping */
.level-badge.tier-1  { background: rgba(100, 100, 120, 0.2); color: var(--text-dim, #7a7a8e); border: 1px solid var(--border-light, #2a2a40); }
.level-badge.tier-2  { background: rgba(0, 176, 96, 0.12);  color: var(--accent-green, #00ff88); border: 1px solid rgba(0, 255, 136, 0.25); }
.level-badge.tier-3  { background: rgba(0, 176, 200, 0.12); color: var(--accent, #00f0ff);        border: 1px solid rgba(0, 240, 255, 0.25); }
.level-badge.tier-4  { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple, #a855f7); border: 1px solid rgba(168, 85, 247, 0.28); }
.level-badge.tier-5  { background: rgba(255, 215, 0, 0.12); color: var(--accent-gold, #ffd700);   border: 1px solid rgba(255, 215, 0, 0.3);  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }

/* Title text (shown next to player name) */
.player-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1px 7px;
    border-radius: 10px;
}

.player-title.tier-1 { background: rgba(100, 100, 120, 0.18); color: var(--text-dim, #7a7a8e); }
.player-title.tier-2 { background: rgba(0, 176, 96, 0.12); color: var(--accent-green, #00ff88); }
.player-title.tier-3 { background: rgba(0, 176, 200, 0.12); color: var(--accent, #00f0ff); }
.player-title.tier-4 { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple, #a855f7); }
.player-title.tier-5 { background: rgba(255, 215, 0, 0.1); color: var(--accent-gold, #ffd700); box-shadow: 0 0 8px rgba(255, 215, 0, 0.15); }


/* ============================================================
   GENERAL SECTION SHARED COMPONENTS
   (used across multiple new pages)
   ============================================================ */

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text, #e8e8f0);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border, #1e1e30);
}

.section-title-icon { font-size: 1.1rem; }

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-dim, #7a7a8e);
    margin-top: -14px;
    margin-bottom: 20px;
}

/* Period tabs (used in HoF, Seasons) */
.period-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.period-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-light, #2a2a40);
    background: none;
    color: var(--text-dim, #7a7a8e);
    transition: all 0.2s;
    font-family: inherit;
}

.period-tab:hover,
.period-tab.active {
    border-color: var(--accent, #00f0ff);
    color: var(--accent, #00f0ff);
    background: rgba(0, 240, 255, 0.07);
}

/* Scrollable leaderboard table variant for HoF/Seasons */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.leaderboard-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #4a4a5e);
    border-bottom: 1px solid var(--border, #1e1e30);
}

.leaderboard-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-dim, #7a7a8e);
}

.leaderboard-table tr:hover td {
    background: rgba(0, 240, 255, 0.03);
}

.rank-num {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-muted, #4a4a5e);
    text-align: center;
    min-width: 32px;
}

.rank-num.top1 { color: var(--accent-gold, #ffd700); }
.rank-num.top2 { color: var(--accent-silver, #c0c0c0); }
.rank-num.top3 { color: var(--accent-bronze, #cd7f32); }


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

@media (max-width: 900px) {
    .past-seasons-grid    { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .trophy-grid          { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .records-grid         { grid-template-columns: 1fr; }
    .challenges-grid      { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .compare-layout       { grid-template-columns: 1fr; }
    .feed-item            { padding: 10px 14px; }
    .season-countdown     { gap: 8px; }
    .countdown-value      { font-size: 1.2rem; }
    .level-progress-bar-wrap { gap: 14px; }
    .trophy-grid          { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   LANDING PAGE: ACTIVITY SECTION + FEATURE CARDS
   ============================================================ */

.activity-section {
    padding: 2rem 0;
}
.activity-section h2 {
    text-align: center;
    margin-bottom: 1.2rem;
}

.features-cta {
    padding: 1.5rem 0 2rem;
}
.features-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}
.feature-card-link {
    text-decoration: none;
    color: inherit;
}
.feature-mini-card {
    background: var(--bg-card, #12121a);
    border: 1px solid var(--border-light, #2a2a40);
    border-radius: var(--radius-lg, 12px);
    padding: 20px 18px;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature-mini-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent, #00f0ff);
    box-shadow: 0 8px 28px rgba(0, 240, 255, 0.1);
}
.fmc-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}
.feature-mini-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text, #e8e8f0);
    margin-bottom: 4px;
}
.feature-mini-card span:last-child {
    font-size: 0.78rem;
    color: var(--text-dim, #7a7a8e);
    line-height: 1.3;
}
