/* ===================================
   LEADERBOARD STYLES
=================================== */

.leaderboard-main {
    background: #0f1419;
    min-height: 100vh;
    padding: 60px 0;
}

/* Filters */
.leaderboard-filters {
    background: #1a1f26;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #2d333b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    flex: 1;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.filter-title i {
    color: #e74c3c;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #252b33;
    border: 2px solid #2d333b;
    border-radius: 8px;
    color: #b3b9c5;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn:hover {
    background: #2d333b;
    border-color: #e74c3c;
    transform: translateY(-2px);
    color: #fff;
}

.filter-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* History Select Wrapper Styling (GÜNCELLENMİŞ) */
.history-select-wrapper {
    min-width: 250px;
}

.select-container {
    position: relative;
    background: #252b33;
    border: 2px solid #2d333b;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.select-container:hover {
    border-color: #e74c3c;
    transform: translateY(-2px);
}

.period-select {
    width: 100%;
    background: #252b33;
    border: none;
    color: #fff;
    padding: 14px 45px 14px 20px; /* Sağ tarafta ikon için boşluk */
    font-size: 15px;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
}

.period-select option {
    background: #1a1f26;
    color: #fff;
    padding: 10px;
}

.select-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b3b9c5;
    pointer-events: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.select-container:hover .select-icon {
    color: #e74c3c;
}

/* Rewards Info */
.rewards-info {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rewards-info__content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.rewards-info__icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    flex-shrink: 0;
}

.rewards-info__text h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.rewards-info__text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.rewards-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.reward-badge {
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reward-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.reward-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000;
}

.reward-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a55d 100%);
    color: #fff;
}

/* Leaderboards Grid (SİZİN TASARIMINIZ) */
.leaderboards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

/* Leaderboard Card */
.leaderboard-card {
    background: #1a1f26;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2d333b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leaderboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: #e74c3c;
}

.leaderboard-card__header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-card__title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-card__badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.leaderboard-card__body {
    padding: 30px 25px;
    background: #141920;
}

/* Podium */
.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.podium__place {
    flex: 1;
    max-width: 150px;
    text-align: center;
    position: relative;
}

.podium__place--first {
    order: 2;
    transform: scale(1.1);
}

.podium__place--second {
    order: 1;
}

.podium__place--third {
    order: 3;
}

.podium__crown {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    color: #ffd700;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.podium__medal {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.podium__place--first .podium__medal {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    font-size: 32px;
    width: 70px;
    height: 70px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.podium__place--second .podium__medal {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    font-size: 28px;
}

.podium__place--third .podium__medal {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a55d 100%);
    font-size: 28px;
}

.podium__medal i {
    color: #fff;
}

.podium__rank {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #0f1419;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #fff;
}

.podium__avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #2d333b;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.podium__place--first .podium__avatar {
    width: 100px;
    height: 100px;
    border-color: #ffd700;
    border-width: 4px;
}

.podium__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar Initials */
.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.podium__place--first .avatar-initials {
    font-size: 40px;
}

.avatar-initials--small {
    font-size: 18px;
}

.avatar-initials--xsmall {
    font-size: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.podium__info {
    margin-bottom: 15px;
}

.podium__username {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    word-break: break-word;
}

.podium__place--first .podium__username {
    font-size: 16px;
}

.podium__time {
    color: #7a8394;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.podium__stand {
    height: 80px;
    background: linear-gradient(to top, #252b33, #1a1f26);
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    border: 1px solid #2d333b;
    border-bottom: none;
}

.podium__stand--first {
    height: 100px;
    background: linear-gradient(to top, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.podium__stand--second {
    height: 70px;
    background: linear-gradient(to top, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05));
    border-color: rgba(192, 192, 192, 0.3);
}

.podium__stand--third {
    height: 60px;
    background: linear-gradient(to top, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05));
    border-color: rgba(205, 127, 50, 0.3);
}

.stand-number {
    font-size: 24px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
}

/* Rankings (4-10) */
.rankings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1a1f26;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #2d333b;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background: #252b33;
    transform: translateX(5px);
    border-color: #e74c3c;
}

.ranking-item__rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-number {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.ranking-item__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #2d333b;
}

.ranking-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Notice */
.category-notice {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e74c3c;
    font-size: 13px;
    font-weight: 600;
}

.category-notice i {
    font-size: 16px;
}

.ranking-item__info {
    flex: 1;
}

.ranking-item__username {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ranking-item__time {
    color: #7a8394;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #1a1f26;
    border-radius: 12px;
    border: 1px solid #2d333b;
}

.empty-state__icon {
    font-size: 80px;
    color: #2d333b;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.empty-state p {
    color: #7a8394;
    font-size: 16px;
}

/* Past Winners Section */
.past-winners-section {
    margin-top: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2d333b;
}

.section-header__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
}

.section-header__title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.section-header__subtitle {
    color: #7a8394;
    font-size: 14px;
    margin: 0;
}

.past-winners-period {
    background: #1a1f26;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #2d333b;
}

.period-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2d333b;
}

.period-header i {
    color: #e74c3c;
    font-size: 20px;
}

.period-header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-transform: capitalize;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.category-winners {
    background: #141920;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #2d333b;
}

.category-winners__header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e74c3c;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2d333b;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1f26;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid;
    transition: transform 0.2s ease;
}

.winner-item:hover {
    transform: translateX(3px);
}

.winner-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #2d333b;
}

.winner-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-item__info {
    flex: 1;
}

.winner-item__name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.winner-item__name .medal {
    font-size: 16px;
}

.winner-item__name strong {
    color: #fff;
    font-size: 14px;
}

.winner-item__stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7a8394;
}

.stat i {
    font-size: 11px;
}

.stat--reward {
    color: #e74c3c;
    font-weight: 600;
}

/* No Past Winners */
.no-past-winners {
    text-align: center;
    padding: 60px 20px;
    background: #1a1f26;
    border-radius: 12px;
    border: 1px solid #2d333b;
    margin-top: 40px;
}

.no-past-winners__icon {
    font-size: 60px;
    color: #2d333b;
    margin-bottom: 15px;
}

.no-past-winners h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 8px;
}

.no-past-winners p {
    color: #7a8394;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .leaderboards-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .history-select-wrapper {
        width: 100%;
        margin-top: 10px;
    }

    .podium {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .podium__place {
        max-width: 100%;
        width: 100%;
    }
    
    .podium__place--first,
    .podium__place--second,
    .podium__place--third {
        order: initial;
        transform: scale(1);
    }
    
    .podium__place--first {
        transform: scale(1.05);
    }
    
    .rewards-info__content {
        flex-direction: column;
        text-align: center;
    }
    
    .rewards-list {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .winners-grid {
        grid-template-columns: 1fr;
    }

    .section-header__title {
        font-size: 22px;
    }
}