/* ==========================================================================
   RSCRevived All-Time Progression & Hall of Fame Styles
   ========================================================================== */

.progression-page {
    width: min(1200px, calc(100vw - 32px));
    margin: 18px auto 60px;
    color: #eaf5ff;
}

/* 1. Hero Section */
.progression-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 360px);
    gap: 24px;
    align-items: center;
    padding: clamp(24px, 3.5vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(244, 196, 61, .32);
    border-radius: 18px;
    background: radial-gradient(circle at 4% 0%, rgba(244, 196, 61, .16), transparent 45%),
                radial-gradient(circle at 100% 100%, rgba(66, 199, 255, .14), transparent 50%),
                linear-gradient(145deg, #091524, #0d1a2d 52%, #1b1322);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.progression-hero-copy {
    position: relative;
    z-index: 1;
}

.progression-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border: 1px solid rgba(244, 196, 61, .4);
    border-radius: 999px;
    background: rgba(244, 196, 61, .1);
    color: #f9d873;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.progression-hero h1 {
    margin: 12px 0 10px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    letter-spacing: -.035em;
    line-height: 1.05;
}

.progression-hero h1 em {
    color: #f4c43d;
    font-style: normal;
}

.progression-hero-copy > p {
    max-width: 580px;
    margin: 0;
    color: #c4d7ea;
    font-size: 1.02rem;
    line-height: 1.55;
}

.progression-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.progression-hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid rgba(244, 196, 61, .55);
    border-radius: 8px;
    background: #f4c43d;
    color: #0b1420;
    font-size: .88rem;
    font-weight: 900;
    text-decoration: none;
    transition: all .16s ease;
}

.progression-hero-actions a:hover {
    background: #ffe072;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(244, 196, 61, .35);
}

.progression-hero-actions a.is-quiet {
    background: rgba(8, 18, 32, .55);
    color: #c4e8ff;
    border-color: rgba(111, 216, 255, .32);
}

.progression-hero-actions a.is-quiet:hover {
    background: rgba(18, 36, 60, .8);
    border-color: rgba(111, 216, 255, .6);
    color: #fff;
}

.progression-stats-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(145, 222, 255, .24);
    border-radius: 14px;
    background: rgba(5, 14, 26, .75);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}

.progression-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(111, 216, 255, .1);
}

.progression-stat-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.progression-stat-item span {
    color: #9bb4c8;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.progression-stat-item strong {
    color: #f4c43d;
    font-size: 1.15rem;
    font-family: monospace, monospace;
}

/* 2. Controls Bar & Category Filter Pills */
.progression-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 28px 0 24px;
    flex-wrap: wrap;
}

.progression-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.progression-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid rgba(111, 216, 255, .2);
    border-radius: 999px;
    background: rgba(10, 22, 38, .75);
    color: #b7cddf;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .16s ease;
}

.progression-pill-btn:hover {
    background: rgba(22, 44, 72, .9);
    border-color: rgba(111, 216, 255, .4);
    color: #fff;
}

.progression-pill-btn.is-active {
    background: #f4c43d;
    border-color: #f4c43d;
    color: #0c1420;
    box-shadow: 0 4px 16px rgba(244, 196, 61, .3);
}

.progression-pill-btn.is-active .pill-count {
    background: rgba(0, 0, 0, .25);
    color: #0c1420;
}

.pill-count {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(111, 216, 255, .15);
    color: #93d8ff;
    font-size: .7rem;
    font-family: monospace, monospace;
}

.progression-search-box input {
    width: 240px;
    padding: 9px 14px;
    border: 1px solid rgba(111, 216, 255, .22);
    border-radius: 8px;
    background: rgba(6, 15, 27, .85);
    color: #fff;
    font-size: .84rem;
    outline: none;
    transition: border-color .16s ease, width .2s ease;
}

.progression-search-box input:focus {
    border-color: #f4c43d;
    width: 280px;
    box-shadow: 0 0 12px rgba(244, 196, 61, .25);
}

/* 3. Groups Wall & Sections */
.progression-groups-wall {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.progression-group-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progression-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(111, 216, 255, .16);
}

.group-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.group-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
}

.group-eyebrow {
    color: #f4c43d;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.progression-group-header h2 {
    margin: 4px 0 0;
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
}

.group-desc {
    max-width: 480px;
    margin: 0;
    color: #9bb3c7;
    font-size: .86rem;
    line-height: 1.45;
    text-align: right;
}

/* 4. Cards Grid (2 Columns on Desktop) */
.progression-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.progression-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(111, 216, 255, .18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(14, 27, 44, .94), rgba(7, 14, 25, .98));
    box-shadow: 0 16px 42px rgba(0, 0, 0, .32);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.progression-card:hover {
    border-color: rgba(145, 222, 255, .38);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .4);
    transform: translateY(-2px);
}

.progression-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(18, 34, 56, .75);
    border-bottom: 1px solid rgba(111, 216, 255, .14);
}

.card-title-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.card-track-icon {
    font-size: 1.45rem;
    line-height: 1;
}

.card-title-wrap h3 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.card-activity-label {
    display: block;
    color: #8daec4;
    font-size: .74rem;
    margin-top: 2px;
}

.card-meta-badge {
    padding: 5px 9px;
    border: 1px solid rgba(244, 196, 61, .32);
    border-radius: 6px;
    background: rgba(244, 196, 61, .08);
    color: #f9d873;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.card-meta-badge b {
    color: #fff;
}

/* 5. Elevated Leader (#1) Banner */
.progression-leader-banner {
    padding: 14px 18px;
    background: radial-gradient(circle at 10% 0%, rgba(244, 196, 61, .15), transparent 60%),
                linear-gradient(135deg, rgba(32, 26, 14, .85), rgba(10, 18, 30, .95));
    border-bottom: 1px solid rgba(244, 196, 61, .28);
}

.leader-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(244, 196, 61, .18);
    border: 1px solid rgba(244, 196, 61, .45);
    color: #ffe484;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.leader-banner-badge .crown-icon {
    font-size: .85rem;
}

.leader-banner-body {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.leader-avatar-frame {
    width: 52px;
    height: 52px;
    border-radius: 9px;
    overflow: hidden;
    border: 1.5px solid #f4c43d;
    background: radial-gradient(circle at 50% 80%, rgba(244, 196, 61, .25), transparent 60%), #0c1826;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow: 0 0 14px rgba(244, 196, 61, .25);
    flex-shrink: 0;
}

.leader-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .6));
}

.leader-avatar-frame.no-avatar {
    align-items: center;
    color: #f4c43d;
    font-size: 1.3rem;
}

.leader-meta {
    min-width: 0;
}

.leader-username {
    display: block;
    color: #fff;
    font-size: 1.08rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leader-badges {
    margin-top: 4px;
}

.leader-score-display {
    text-align: right;
    padding-left: 12px;
    border-left: 1px solid rgba(244, 196, 61, .22);
}

.score-value {
    display: block;
    color: #ffd866;
    font-size: 1.35rem;
    font-family: monospace, monospace;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(244, 196, 61, .3);
}

.score-label {
    display: block;
    color: #9bb4c8;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* 6. Roster Rows (#2 - #10) */
.progression-roster-list {
    display: flex;
    flex-direction: column;
    padding: 8px 14px 12px;
    flex: 1;
}

.roster-list-head {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(100px, .9fr) minmax(80px, auto);
    gap: 10px;
    padding: 6px 8px;
    color: #7b9ab2;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(111, 216, 255, .1);
}

.roster-list-head .text-right {
    text-align: right;
}

.progression-roster-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(100px, .9fr) minmax(80px, auto);
    gap: 10px;
    align-items: center;
    padding: 7px 8px;
    border-bottom: 1px solid rgba(111, 216, 255, .06);
    transition: background .14s ease;
}

.progression-roster-row:last-child {
    border-bottom: none;
}

.progression-roster-row:hover {
    background: rgba(66, 199, 255, .05);
    border-radius: 6px;
}

.progression-roster-row.rank-silver {
    background: rgba(180, 201, 220, .03);
}

.progression-roster-row.rank-bronze {
    background: rgba(217, 130, 68, .03);
}

.roster-player-col {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.roster-rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .72rem;
    font-weight: 900;
    min-width: 24px;
    text-align: center;
}

.roster-rank-pill.rank-silver {
    background: linear-gradient(135deg, rgba(200, 218, 235, .25), rgba(130, 155, 180, .2));
    border: 1px solid #b4c9dc;
    color: #eaf3fa;
}

.roster-rank-pill.rank-bronze {
    background: linear-gradient(135deg, rgba(217, 130, 68, .25), rgba(140, 75, 30, .2));
    border: 1px solid #d98244;
    color: #ffd6b8;
}

.roster-rank-pill.rank-contender {
    color: #8daec4;
    font-family: monospace, monospace;
}

.roster-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(111, 216, 255, .2);
    background: #0b1726;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}

.roster-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    image-rendering: pixelated;
}

.roster-avatar.no-avatar {
    align-items: center;
    color: #82a3b9;
    font-size: .85rem;
}

.roster-username {
    display: block;
    color: #fff;
    font-size: .88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roster-score-col {
    text-align: right;
}

.roster-score-num {
    color: #84e7ff;
    font-size: .98rem;
    font-family: monospace, monospace;
    font-weight: 800;
}

/* 7. Milestone Tier Badges */
.progression-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .03em;
    white-space: nowrap;
}

.progression-tier-badge.tier-7 {
    background: linear-gradient(135deg, rgba(244, 196, 61, .3), rgba(220, 80, 40, .25));
    border: 1px solid #f4c43d;
    color: #ffe68a;
    box-shadow: 0 0 10px rgba(244, 196, 61, .3);
    text-shadow: 0 0 6px rgba(244, 196, 61, .5);
}

.progression-tier-badge.tier-6 {
    background: rgba(244, 196, 61, .16);
    border: 1px solid rgba(244, 196, 61, .5);
    color: #f9d873;
}

.progression-tier-badge.tier-5 {
    background: rgba(185, 115, 255, .18);
    border: 1px solid rgba(185, 115, 255, .45);
    color: #dfb2ff;
}

.progression-tier-badge.tier-4 {
    background: rgba(65, 232, 162, .15);
    border: 1px solid rgba(65, 232, 162, .45);
    color: #8af4c5;
}

.progression-tier-badge.tier-3 {
    background: rgba(111, 216, 255, .15);
    border: 1px solid rgba(111, 216, 255, .4);
    color: #bde8ff;
}

.progression-tier-badge.tier-2 {
    background: rgba(170, 190, 210, .14);
    border: 1px solid rgba(170, 190, 210, .3);
    color: #d2e4f2;
}

.progression-tier-badge.tier-1 {
    background: rgba(100, 120, 140, .14);
    border: 1px solid rgba(100, 120, 140, .25);
    color: #9ab4c7;
}

/* 8. Card Empty State & Footer */
.progression-card-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 18px;
    flex: 1;
    background: rgba(4, 10, 20, .4);
}

.empty-icon {
    font-size: 2rem;
    color: #8daec4;
    filter: grayscale(80%);
    opacity: .7;
}

.empty-copy strong {
    display: block;
    color: #e2f2ff;
    font-size: .95rem;
    margin-bottom: 3px;
}

.empty-copy p {
    margin: 0;
    color: #8faec2;
    font-size: .78rem;
    line-height: 1.45;
}

.progression-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: rgba(6, 12, 22, .8);
    border-top: 1px solid rgba(111, 216, 255, .1);
    color: #82a0b4;
    font-size: .73rem;
}

.progression-card-footer b {
    color: #d6ebfa;
}

/* 9. Milestone Progression Tier Reference Section */
.progression-tiers-reference {
    margin-top: 48px;
    padding: clamp(22px, 3.5vw, 36px);
    border: 1px solid rgba(244, 196, 61, .28);
    border-radius: 18px;
    background: radial-gradient(circle at 100% 0%, rgba(244, 196, 61, .12), transparent 45%),
                linear-gradient(150deg, #0d1a2d, #091321 60%, #17111f);
    box-shadow: 0 20px 52px rgba(0, 0, 0, .36);
}

.progression-tiers-reference header {
    margin-bottom: 20px;
}

.tiers-ref-badge {
    color: #f4c43d;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.progression-tiers-reference h2 {
    margin: 6px 0 8px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.progression-tiers-reference header p {
    max-width: 720px;
    margin: 0;
    color: #b8cde0;
    line-height: 1.5;
}

.tiers-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(111, 216, 255, .16);
    border-radius: 12px;
    background: rgba(4, 10, 20, .6);
    -webkit-overflow-scrolling: touch;
}

.tiers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
    text-align: left;
}

.tiers-table th {
    padding: 12px 16px;
    background: rgba(14, 28, 46, .95);
    border-bottom: 1px solid rgba(145, 222, 255, .2);
    color: #8bc2e2;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tiers-table td {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(111, 216, 255, .08);
    color: #d6e8f8;
}

.tiers-table tbody tr:last-child td {
    border-bottom: none;
}

.tiers-table tbody tr:hover {
    background: rgba(66, 199, 255, .04);
}

/* Responsive Rules */
@media (max-width: 980px) {
    .progression-hero {
        grid-template-columns: 1fr;
    }
    .progression-cards-grid {
        grid-template-columns: 1fr;
    }
    .progression-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .group-desc {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .progression-page {
        width: min(calc(100vw - 20px), 1200px);
    }
    .progression-control-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .progression-search-box input {
        width: 100%;
    }
    .progression-search-box input:focus {
        width: 100%;
    }
    .leader-banner-body {
        grid-template-columns: 44px minmax(0, 1fr);
    }
    .leader-score-display {
        grid-column: 1 / -1;
        text-align: left;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(244, 196, 61, .18);
        padding-top: 8px;
        margin-top: 4px;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }
}
