/**
 * TerfiGYS - Liderlik Tablosu Modüler CSS (assets/css/pages/leaderboard.css)
 */

/* Sayfa Gövdesi Kapsayıcısı (Kural 20) */
/* Kompakt Liderlik Tablosu Hero Kartı (Kompakt İnce Görünüm) */
.gd-lb-hero-compact {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.gd-lb-hero-compact .gd-page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-lb-hero-compact .gd-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.gd-lb-hero-compact .gd-page-subtitle {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Hero Header Kartı (Kural 7 Uyumlu) */
.gd-page-header {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--gd-border, #e2e8f0);
    padding: 16px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.gd-page-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}

.gd-page-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-page-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gd-page-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gd-text-main, #0f172a);
    margin: 0;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-page-subtitle {
    font-size: 0.875rem;
    color: var(--gd-text-muted, #64748b);
    margin: 0;
}

/* Kurum / Genel Sıralama Kapsam Duyuru Kartı */
.gd-scope-banner {
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.gd-scope-banner.corporate {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.gd-scope-banner.general {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.gd-scope-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gd-scope-banner.corporate .gd-scope-icon {
    background: #dbeafe;
    color: #2563eb;
}

.gd-scope-banner.general .gd-scope-icon {
    background: #f1f5f9;
    color: #475569;
}

.gd-scope-title {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 2px 0;
}

.gd-scope-desc {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

/* 🎯 1:1 EKRAN GÖRÜNTÜSÜ KATEGORİ VE PERİYOT FİLTRELEME ALANI */
.gd-lead-nav-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
}

/* 3'lü Kategori Büyük Kart Butonları */
.gd-lead-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.gd-lead-type-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-height: 52px;
}

.gd-lead-type-card:hover {
    border-color: #10b981;
    transform: translateY(-1px);
}

.gd-lead-type-card.active {
    background: #f0fdf4 !important;
    border: 1.5px solid #10b981 !important;
    color: #047857 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08) !important;
}

.gd-lead-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.2s ease;
}

.gd-lead-type-card.active .gd-lead-type-icon {
    color: #059669 !important;
}

.gd-lead-type-title {
    font-size: 13.5px;
    font-weight: 800;
    text-align: center;
}

/* Sol Hizasındaki Kompakt Kapsüllü Periyot Grubu */
.gd-lead-period-capsule {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    align-self: flex-start;
    box-sizing: border-box;
}

.gd-lead-period-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gd-lead-period-btn:hover {
    color: #0f172a;
}

.gd-lead-period-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

/* 🏆 TOP 3 PODYUM (1, 2, 3. SIRALAMA KARTLARI) */
.gd-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.gd-podium-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

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

/* 1. Altın Podyumu */
.gd-podium-card.rank-1 {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border: 2px solid #fde047;
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.15);
}

.gd-podium-card.rank-1 .gd-podium-crown {
    color: #eab308;
}

/* 2. Gümüş Podyumu */
.gd-podium-card.rank-2 {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #cbd5e1;
}

.gd-podium-card.rank-2 .gd-podium-crown {
    color: #94a3b8;
}

/* 3. Bronz Podyumu */
.gd-podium-card.rank-3 {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border: 2px solid #fdba74;
}

.gd-podium-card.rank-3 .gd-podium-crown {
    color: #f97316;
}

.gd-podium-badge {
    position: absolute;
    top: -12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gd-podium-card.rank-1 .gd-podium-badge { background: #eab308; }
.gd-podium-card.rank-2 .gd-podium-badge { background: #64748b; }
.gd-podium-card.rank-3 .gd-podium-badge { background: #ea580c; }

.gd-podium-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #334155;
    margin: 10px 0 8px 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.gd-podium-name {
    font-size: 15px;
    font-weight: 850;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.gd-podium-city {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.gd-podium-val {
    font-size: 17px;
    font-weight: 900;
    color: #2563eb;
    margin-top: 8px;
}

/* 📊 SIRALAMA TABLOSU KARTI */
.gd-lead-table-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.gd-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.gd-lead-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gd-lead-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.gd-lead-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.gd-lead-table tr:hover td {
    background: #f8fafc;
}

.gd-lead-table tr.gd-row-me td {
    background: #eff6ff !important;
    font-weight: 700;
}

.gd-rank-num {
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    width: 56px;
    min-width: 56px;
    text-align: left;
    padding-left: 20px !important;
}

/* Madalya Stilleri (1. Altın, 2. Gümüş, 3. Bronz) */
.gd-medal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.gd-medal-gold {
    color: #ca8a04;
}

.gd-medal-silver {
    color: #94a3b8;
}

.gd-medal-bronze {
    color: #b45309;
}

.gd-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gd-user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 📊 2'Lİ ALT BİLGİ GRID'İ */
.gd-lead-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.gd-info-card {
    background: #ffffff;
    border-radius: 0px !important;
    border: 1px solid #e2e8f0;
    padding: 18px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.gd-info-card-blue {
    border-left: 4px solid #2563eb !important;
}

.gd-info-card-slate {
    border-left: 4px solid #475569 !important;
}

.gd-info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 850;
    color: #0f172a;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.gd-info-card-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.gd-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.gd-info-item {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
}

.gd-info-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

@media (max-width: 768px) {
    .gd-podium-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gd-lead-info-grid {
        grid-template-columns: 1fr;
    }

    .gd-lead-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gd-mev-filter-group {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .gd-mev-filter-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
}
