/* =============================================
   HIGHSCORES PAGE STYLES
   Black Talon / Medieval RPG Theme

   All styles for the highscores page:
   - Content container with custom scrollbar
   - Class distribution bar
   - Top 3 podium (gold / silver / bronze)
   - Highscores table (modern card style)

   Extracted from newStyle.css lines 2043-2555.
   Uses design tokens from base/variables.css.

   Expected HTML:
   <div class="highscores-content">
     <div class="podium-container">
       <div class="podium-card podium-gold">...</div>
       <div class="podium-card podium-silver">...</div>
       <div class="podium-card podium-bronze">...</div>
     </div>
     <table class="scoreTable">...</table>
     <div class="class-distribution">...</div>
   </div>
   ============================================= */


/* -----------------------------------------
   CONTENT CONTAINER
   ----------------------------------------- */

.highscores-content {
    height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Custom scrollbar */
.highscores-content::-webkit-scrollbar {
    width: 8px;
}

.highscores-content::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
    border-radius: var(--radius-sm);
}

.highscores-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: var(--radius-sm);
}

.highscores-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.6);
}


/* -----------------------------------------
   CLASS DISTRIBUTION BAR
   ----------------------------------------- */

.class-distribution {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-base) var(--spacing-xl);
    padding: var(--spacing-base) var(--spacing-lg);
    margin-top: var(--spacing-lg);
    background: var(--color-bg-dark);
    border-radius: var(--radius-md);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.class-distribution .class-item {
    font-size: 13px;
    color: #aaa;
}

.class-distribution .class-item strong {
    color: var(--color-gold-light);
    margin-right: 3px;
}


/* -----------------------------------------
   TOP 3 PODIUM
   ----------------------------------------- */

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    padding: var(--spacing-lg) var(--spacing-base) var(--spacing-xl) var(--spacing-base);
    margin-bottom: var(--spacing-base);
}

.podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-base) 0 var(--spacing-base);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
    min-width: 140px;
}

.podium-card:hover {
    transform: translateY(-5px);
}

/* Gold - 1st Place */
.podium-gold {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.2) 0%, rgba(184, 134, 11, 0.3) 50%, rgba(139, 90, 43, 0.4) 100%);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-bottom: none;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), inset 0 0 30px rgba(255, 215, 0, 0.1);
    order: 2;
}

.podium-gold:hover {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), inset 0 0 30px rgba(255, 215, 0, 0.2);
}

/* Silver - 2nd Place */
.podium-silver {
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.2) 0%, rgba(128, 128, 128, 0.3) 50%, rgba(80, 80, 80, 0.4) 100%);
    border: 2px solid rgba(192, 192, 192, 0.4);
    border-bottom: none;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.2), inset 0 0 20px rgba(192, 192, 192, 0.1);
    order: 1;
}

.podium-silver:hover {
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.4), inset 0 0 20px rgba(192, 192, 192, 0.2);
}

/* Bronze - 3rd Place */
.podium-bronze {
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.2) 0%, rgba(139, 90, 43, 0.3) 50%, rgba(101, 67, 33, 0.4) 100%);
    border: 2px solid rgba(205, 127, 50, 0.4);
    border-bottom: none;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.2), inset 0 0 20px rgba(205, 127, 50, 0.1);
    order: 3;
}

.podium-bronze:hover {
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.4), inset 0 0 20px rgba(205, 127, 50, 0.2);
}


/* -----------------------------------------
   PODIUM RANK NUMBER
   ----------------------------------------- */

.podium-rank {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: none;
    box-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}


/* -----------------------------------------
   PODIUM OUTFIT / NAME / STATS
   ----------------------------------------- */

.podium-outfit {
    margin: 5px 0;
}

.podium-outfit img {
    max-height: 55px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
    transition: transform var(--transition-base);
}

.podium-card:hover .podium-outfit img {
    transform: scale(1.1);
}

/* Player Name */
.podium-name {
    margin: 5px 0 3px 0;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.podium-name a {
    text-decoration: none;
    transition: all var(--transition-base);
}

.podium-gold .podium-name a {
    color: var(--color-gold-light);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.podium-gold .podium-name a:hover {
    color: var(--color-text-primary);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.podium-silver .podium-name a {
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
}

.podium-silver .podium-name a:hover {
    color: var(--color-text-primary);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.podium-bronze .podium-name a {
    color: var(--color-gold-medium);
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.4);
}

.podium-bronze .podium-name a:hover {
    color: var(--color-gold-light);
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.podium-name img {
    vertical-align: middle;
    margin-right: 5px;
}

/* Vocation */
.podium-vocation {
    font-size: var(--font-size-xs);
    color: #aaa;
    margin-bottom: 5px;
}

/* Level */
.podium-level {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    font-weight: 500;
}

.podium-proficiency {
    color: #00ff3c;
    margin-left: 5px;
    text-shadow: 0 0 8px rgba(0, 255, 60, 0.4);
}

/* Points */
.podium-points {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 3px;
    font-family: var(--font-mono);
}


/* -----------------------------------------
   PODIUM BASE PLATFORMS
   ----------------------------------------- */

.podium-base {
    width: calc(100% + 30px);
    margin: 10px -15px 0 -15px;
    border-radius: 0;
}

.podium-base-gold {
    height: 55px;
    background: linear-gradient(180deg, #b8860b 0%, #8b6914 50%, #654a0e 100%);
    border-top: 2px solid var(--color-gold-light);
    box-shadow: inset 0 5px 15px rgba(255, 215, 0, 0.3);
}

.podium-base-silver {
    height: 38px;
    background: linear-gradient(180deg, #808080 0%, #606060 50%, #404040 100%);
    border-top: 2px solid #c0c0c0;
    box-shadow: inset 0 5px 15px rgba(192, 192, 192, 0.2);
}

.podium-base-bronze {
    height: 25px;
    background: linear-gradient(180deg, #8b5a2b 0%, #6b4423 50%, #4a2f18 100%);
    border-top: 2px solid #cd7f32;
    box-shadow: inset 0 5px 15px rgba(205, 127, 50, 0.2);
}


/* -----------------------------------------
   HIGHSCORES-SPECIFIC COLUMN STYLES
   (Base .scoreTable styles are in components/tables.css)
   ----------------------------------------- */

/* Rank Number */
.scoreTable .rankColumn {
    width: 60px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--color-gold-light);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Level/Proficiency Display */
.scoreTable tr.special td p {
    margin: 0;
    display: inline;
}

.scoreTable .vocationColumn {
    text-align: center;
    color: var(--color-text-secondary);
}

.scoreTable .levelColumn {
    text-align: center;
    font-weight: 600;
    color: var(--color-text-primary);
}

.scoreTable .levelColumn .proficiency {
    color: #00ff3c;
    margin-left: 5px;
    font-weight: normal;
    text-shadow: 0 0 8px rgba(0, 255, 60, 0.3);
}

.scoreTable .pointsColumn {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #999;
    padding-right: var(--spacing-lg);
}

/* Guild Column */
.scoreTable .guildColumn {
    text-align: center;
    color: var(--color-text-secondary);
}

.scoreTable .guildColumn a {
    color: #88aaff;
    text-decoration: none;
    transition: all var(--transition-base);
}

.scoreTable .guildColumn a:hover {
    color: #aaccff;
    text-shadow: 0 0 8px rgba(136, 170, 255, 0.4);
}

.scoreItem {
    padding: var(--spacing-md) var(--spacing-base);
    border: none;
    box-shadow: none;
}


/* -----------------------------------------
   RESPONSIVE: Podium
   ----------------------------------------- */

@media (max-width: 768px) {
    .podium-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 6px;
        padding: 15px 8px 10px;
    }

    .podium-card {
        min-width: 0;
        flex: 1;
        padding: 8px 5px 0;
    }

    .podium-medal {
        font-size: 18px;
        margin: 3px 0;
    }

    .podium-outfit img {
        max-height: 40px;
    }

    .podium-name {
        font-size: 10px;
        margin: 3px 0 2px;
    }

    .podium-vocation {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .podium-level {
        font-size: 10px;
    }

    .podium-points {
        font-size: 9px;
    }

    .podium-rank {
        width: 22px;
        height: 22px;
        font-size: 16px;
        top: -8px;
    }

    .podium-base {
        width: calc(100% + 12px);
        margin: 6px -6px 0;
    }

    .podium-base-gold {
        height: 40px;
    }

    .podium-base-silver {
        height: 28px;
    }

    .podium-base-bronze {
        height: 18px;
    }
}
