/* ═══════════════════════════════════════════════════════════
   Rankings Page - Leaderboard Redesign
   ═══════════════════════════════════════════════════════════ */

/* ── Leaderboard Header ── */
.lb-header {
    background: linear-gradient(135deg, rgba(200,128,82,0.08) 0%, rgba(5,7,16,0.95) 100%);
    border: 1px solid rgba(200,128,82,0.1);
    border-radius: 6px;
    padding: 25px 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.lb-header-left h2 {
    color: #ffdda9;
    font-family: philosopher, sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    margin: 0 0 4px 0;
}
.lb-header-left p {
    color: #696868;
    font-size: 13px;
    margin: 0;
    letter-spacing: 1px;
}

/* ── Search Bar ── */
.lb-search {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lb-search-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200,128,82,0.15);
    border-radius: 4px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    width: 220px;
    outline: none;
    transition: all 0.3s;
}
.lb-search-input:focus {
    border-color: rgba(200,128,82,0.5);
    background: rgba(200,128,82,0.04);
}
.lb-search-input::placeholder { color: #4a4a4a; }

/* ── Filter Tabs ── */
.lb-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.lb-filter-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200,128,82,0.1);
    border-radius: 4px;
    padding: 8px 16px;
    color: #696868;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}
.lb-filter-btn:hover {
    color: #ffdda9;
    border-color: rgba(200,128,82,0.3);
    background: rgba(200,128,82,0.06);
}
.lb-filter-btn.active {
    color: #ffdda9;
    border-color: rgba(200,128,82,0.4);
    background: rgba(200,128,82,0.1);
}

/* ── Top 3 Podium ── */
.lb-podium {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.lb-podium-card {
    flex: 0 0 200px;
    text-align: center;
    padding: 25px 15px 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}
.lb-podium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* Gold - 1st */
.lb-podium-1 {
    background: linear-gradient(180deg, rgba(255,215,0,0.08) 0%, rgba(5,7,16,0.95) 100%);
    border: 1px solid rgba(255,215,0,0.2);
    order: 2;
}
.lb-podium-1 .lb-podium-rank { color: #ffd700; text-shadow: 0 0 15px rgba(255,215,0,0.4); }
.lb-podium-1 .lb-podium-crown { color: #ffd700; }

/* Silver - 2nd */
.lb-podium-2 {
    background: linear-gradient(180deg, rgba(192,192,192,0.06) 0%, rgba(5,7,16,0.95) 100%);
    border: 1px solid rgba(192,192,192,0.15);
    order: 1;
    margin-top: 20px;
}
.lb-podium-2 .lb-podium-rank { color: #c0c0c0; text-shadow: 0 0 10px rgba(192,192,192,0.3); }

/* Bronze - 3rd */
.lb-podium-3 {
    background: linear-gradient(180deg, rgba(205,127,50,0.06) 0%, rgba(5,7,16,0.95) 100%);
    border: 1px solid rgba(205,127,50,0.15);
    order: 3;
    margin-top: 20px;
}
.lb-podium-3 .lb-podium-rank { color: #cd7f32; text-shadow: 0 0 10px rgba(205,127,50,0.3); }

.lb-podium-crown {
    font-size: 22px;
    margin-bottom: 6px;
}
.lb-podium-rank {
    font-size: 36px;
    font-weight: bold;
    font-family: philosopher, sans-serif;
    margin-bottom: 10px;
}
.lb-podium-badge {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.lb-podium-name {
    color: #ffdda9;
    font-size: 15px;
    font-family: philosopher, sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.lb-podium-class {
    color: #b0a89e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.lb-podium-fame {
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    font-family: philosopher, sans-serif;
}
.lb-podium-fame small {
    font-size: 10px;
    color: #696868;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: 2px;
    font-weight: normal;
}
.lb-podium-race-logo {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 2px;
    object-fit: contain;
    opacity: 0.8;
}

/* ── Table ── */
.lb-table-wrap {
    border: 1px solid rgba(200,128,82,0.08);
    border-radius: 6px;
    overflow: hidden;
}
.lb-table {
    width: 100%;
    border-collapse: collapse;
}
.lb-table thead th {
    background: rgba(200,128,82,0.06);
    color: #b0a89e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(200,128,82,0.1);
    font-weight: 600;
}
.lb-table thead th:first-child { text-align: center; width: 60px; }

.lb-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
}
.lb-table tbody tr:hover {
    background: rgba(200,128,82,0.04);
}
.lb-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    color: #d0c9c0;
    vertical-align: middle;
}

/* Rank column */
.lb-rank {
    text-align: center;
    font-weight: bold;
    font-family: philosopher, sans-serif;
    font-size: 15px;
}
.lb-rank-gold   { color: #ffd700; }
.lb-rank-silver { color: #c0c0c0; }
.lb-rank-bronze { color: #cd7f32; }
.lb-rank-normal { color: #696868; }

/* Player cell */
.lb-player {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lb-player-flag { width: 18px; height: 12px; vertical-align: middle; }
.lb-player-name {
    color: #ffdda9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.lb-player-name:hover { color: #fff; }
.lb-player-status {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.lb-player-status.online  { background: #4ac08d; box-shadow: 0 0 6px rgba(74,192,141,0.5); }
.lb-player-status.offline { background: #333; }

/* Class cell */
.lb-class {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lb-class-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.lb-class-name { font-size: 12px; }

/* Race tag */
.lb-race-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lb-race-kr {
    background: rgba(77,166,255,0.1);
    color: #4da6ff;
    border: 1px solid rgba(77,166,255,0.15);
}
.lb-race-mk {
    background: rgba(255,68,68,0.1);
    color: #ff4444;
    border: 1px solid rgba(255,68,68,0.15);
}
.lb-race-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Guild */
.lb-guild a {
    color: #b0a89e;
    text-decoration: none;
    transition: color 0.2s;
}
.lb-guild a:hover { color: #c88052; }

/* Level / Fame */
.lb-level {
    color: #a97fff;
    font-weight: bold;
    font-family: philosopher, sans-serif;
}
.lb-fame {
    color: #ffd700;
    font-weight: bold;
    font-family: philosopher, sans-serif;
}

/* ── Hover Tooltip ── */
.lb-tooltip {
    position: absolute;
    background: rgba(5,7,16,0.97);
    border: 1px solid rgba(200,128,82,0.2);
    border-radius: 6px;
    padding: 16px 20px;
    width: 220px;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    pointer-events: none;
}
.lb-tooltip-name {
    color: #ffdda9;
    font-size: 16px;
    font-family: philosopher, sans-serif;
    font-weight: bold;
    margin-bottom: 10px;
}
.lb-tooltip-badge {
    width: 60px; height: 60px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.lb-tooltip-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 12px;
}
.lb-tooltip-label { color: #696868; }
.lb-tooltip-value { color: #d0c9c0; font-weight: 600; }

/* ── Pagination ── */
.lb-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 25px;
}
.lb-page-btn {
    padding: 8px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200,128,82,0.1);
    border-radius: 4px;
    color: #696868;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}
.lb-page-btn:hover {
    color: #ffdda9;
    border-color: rgba(200,128,82,0.3);
    background: rgba(200,128,82,0.06);
}
.lb-page-btn.active {
    color: #ffdda9;
    border-color: rgba(200,128,82,0.4);
    background: rgba(200,128,82,0.12);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .lb-podium { flex-direction: column; align-items: center; }
    .lb-podium-card { order: unset !important; margin-top: 0 !important; }
    .lb-header { flex-direction: column; text-align: center; }
    .lb-search-input { width: 100%; }
    .lb-table { font-size: 12px; }
    .lb-table thead th, .lb-table tbody td { padding: 8px 8px; }
}
