/* ==========================================================
   Hedgehog Security — Leaderboard Page Stylesheet
   Attack High Score Leaderboard styling.
   ========================================================== */

/* ── HEADER ─────────────────────────────────────────────── */
.leaderboard-header {
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: var(--hero-gradient);
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
    text-align: center;
}

.leaderboard-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-icon {
    font-size: 4rem;
    color: #ffaa00;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(255, 170, 0, 0.4);
}

.leaderboard-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.leaderboard-subtitle {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent-primary);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.leaderboard-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto;
}

/* ── SECTIONS ───────────────────────────────────────────── */
.leaderboard-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ── LEADERBOARD TABLE ──────────────────────────────────── */
.leaderboard-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.leaderboard-table thead {
    background: rgba(0, 255, 136, 0.05);
}

.leaderboard-table th {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.leaderboard-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    vertical-align: middle;
}

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

/* ── RANK HIGHLIGHTS ────────────────────────────────────── */
.leaderboard-rank-gold {
    background: rgba(255, 215, 0, 0.05);
}

.leaderboard-rank-silver {
    background: rgba(192, 192, 192, 0.04);
}

.leaderboard-rank-bronze {
    background: rgba(205, 127, 50, 0.04);
}

.leaderboard-rank {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    width: 60px;
}

.leaderboard-medal {
    font-size: 1.4rem;
}

.leaderboard-ip {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.leaderboard-ip a {
    color: #ff3366;
    text-decoration: none;
    transition: color 0.2s ease;
}

.leaderboard-ip a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.leaderboard-score {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: #ffaa00;
    text-align: center;
}

.leaderboard-attempts {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.leaderboard-types {
    font-family: var(--font-mono);
    text-align: center;
    color: var(--text-muted);
}

.leaderboard-last-seen {
    font-family: var(--font-mono);
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── SCORING GRID ───────────────────────────────────────── */
.leaderboard-scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.leaderboard-scoring-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 170, 0, 0.04);
    border: 1px solid rgba(255, 170, 0, 0.12);
    border-radius: 8px;
}

.leaderboard-scoring-weight {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: #ffaa00;
    min-width: 30px;
    text-align: center;
}

.leaderboard-scoring-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .leaderboard-header {
        padding-top: 80px;
        min-height: 40vh;
    }

    .leaderboard-scoring-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
