/* ===================================
   RANKING PAGE STYLES
   =================================== */

/* Ranking Background */
.ranking-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/main_bg.png') top center no-repeat;
    background-size: cover;
    z-index: -1;
}

/* Ranking Hero Section */
.ranking-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    position: relative;
}

/* Logo artık hero-logo class'ı kullanıyor (style.css) */

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 200px;
    padding: 15px 40px;
    background: url('../images/icons_bg.png') center center no-repeat;
    background-size: contain;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-box .stat-icon {
    width: 35px;
    height: 35px;
}

.stat-box .stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
    filter: drop-shadow(0 0 5px rgba(201, 168, 108, 0.3));
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-box .stat-number {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: #c9a86c;
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.5);
}

.stat-box .stat-label {
    font-size: 10px;
    color: #7a7268;
}

/* ===================================
   RANKING TABLE
   =================================== */
.ranking-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Table Header */
.ranking-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: url('../images/headbar.png') center center no-repeat;
    background-size: 100% 100%;
    margin-bottom: 8px;
}

.ranking-col {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 600;
    color: #8a8078;
    text-transform: capitalize;
}

.col-rank {
    width: 80px;
    text-align: center;
}

.col-player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.col-level {
    width: 80px;
    text-align: center;
}

.col-skills {
    width: 120px;
    text-align: center;
}

.col-alignment {
    width: 100px;
    text-align: center;
}

.col-pts {
    width: 100px;
    text-align: right;
}

/* Ranking Rows */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ranking-row {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.row-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
    transition: all 0.3s ease;
}

.ranking-row:hover {
    transform: translateX(5px);
}

.ranking-row:hover .row-bg {
    filter: brightness(1.2);
}

.ranking-row .ranking-col {
    position: relative;
    z-index: 1;
    color: #9a9088;
    font-size: 12px;
}

/* Rank Numbers */
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    background: rgba(60, 50, 40, 0.8);
    border: 2px solid rgba(100, 90, 80, 0.5);
    color: #b0a090;
}

.rank-number.rank-1 {
    background: linear-gradient(135deg, #8B4513, #CD853F);
    border-color: #DAA520;
    color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.rank-number.rank-2 {
    background: linear-gradient(135deg, #2E5E3E, #4A7C5A);
    border-color: #6B8E6B;
    color: #90EE90;
    box-shadow: 0 0 15px rgba(144, 238, 144, 0.3);
}

.rank-number.rank-3 {
    background: linear-gradient(135deg, #3A5F7A, #5A8A9A);
    border-color: #7AB;
    color: #ADD8E6;
    box-shadow: 0 0 15px rgba(173, 216, 230, 0.3);
}

/* Player Avatar */
.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 108, 0.4);
    object-fit: cover;
    transition: all 0.3s ease;
}

.ranking-row:hover .player-avatar {
    border-color: rgba(201, 168, 108, 0.8);
    box-shadow: 0 0 15px rgba(201, 168, 108, 0.4);
    transform: scale(1.1);
}

.player-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: #c9a86c;
    transition: all 0.3s ease;
}

.ranking-row:hover .player-name {
    text-shadow: 0 0 10px rgba(201, 168, 108, 0.5);
}

/* Row Colors on hover */
.row-gold:hover .row-bg {
    filter: brightness(1.3) saturate(1.2);
}

.row-green:hover .row-bg {
    filter: brightness(1.3) saturate(1.2);
}

.row-blue:hover .row-bg {
    filter: brightness(1.3) saturate(1.2);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 992px) {
    .ranking-hero {
        padding-top: 100px;
    }

    .stats-bar {
        gap: 100px;
    }
}

@media (max-width: 900px) {
    .stats-bar {
        flex-wrap: wrap;
        gap: 30px;
    }

    .ranking-header,
    .ranking-row {
        padding: 10px 15px;
    }

    .col-skills,
    .col-alignment {
        display: none;
    }

    .col-player {
        min-width: 150px;
    }
}

@media (max-width: 600px) {
    .ranking-hero {
        padding-top: 80px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        background-size: cover;
        padding: 20px;
    }

    .stat-box .stat-number {
        font-size: 14px;
    }

    .stat-box .stat-label {
        font-size: 9px;
    }

    .col-level {
        display: none;
    }

    .ranking-section {
        padding: 0 10px 40px;
    }

    .ranking-header {
        padding: 10px;
    }

    .ranking-col {
        font-size: 10px;
    }

    .col-rank {
        width: 50px;
    }

    .col-pts {
        width: 80px;
    }

    .rank-number {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .player-avatar {
        width: 30px;
        height: 30px;
    }

    .player-name {
        font-size: 11px;
    }

    .ranking-row .ranking-col {
        font-size: 10px;
    }
}