/* ==========================================================================
   İl Sıralaması Modülü - Modüler Sayfa Stilleri (TERFIUI v5)
   ========================================================================== */

/* Kompakt İl Sıralaması Hero Kartı (Kompakt İnce Görünüm) */
.gd-il-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-il-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-il-hero-compact .gd-page-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

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

/* Sayfa Body Kapsayıcısı — site.css .gd-page-body ana omurgasına bağlı */

/* İki Sütunlu (%50 - %50) Grid Düzeni */
.gd-il-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
    width: 100%;
}

/* Sol & Sağ Kartlar */
.gd-il-map-card,
.gd-il-ranking-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01), 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* Harita Başlığı */
.gd-il-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-il-card-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Türkiye SVG Harita Stilleri */
.turkey-svg-container {
    width: 100%;
    height: auto;
    position: relative;
}

.turkey-svg-container svg {
    width: 100%;
    height: auto;
}

.turkey-svg-container svg g.turkey g {
    cursor: pointer;
}

.turkey-svg-container svg g.turkey g path {
    fill: #f1f5f9 !important;
    stroke: #cbd5e1 !important;
    stroke-width: 1;
    transition: fill 0.25s ease, filter 0.25s ease;
}

.turkey-svg-container svg g.turkey g:hover path {
    fill: #2563eb !important;
    filter: drop-shadow(0px 4px 8px rgba(37, 99, 235, 0.3));
}

.turkey-svg-container svg g.turkey g.active-city path {
    fill: #1d4ed8 !important;
    filter: drop-shadow(0px 4px 10px rgba(29, 78, 216, 0.4));
}

#map-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: opacity 0.15s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

/* Boş Durum / İl Seçin Bilgisi */
.gd-il-empty-state {
    text-align: center;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gd-il-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gd-il-empty-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.gd-il-empty-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}

.gd-il-empty-tip {
    background: #eff6ff;
    border: 1px dashed #bfdbfe;
    padding: 12px 18px;
    border-radius: 12px;
    color: #1e40af;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Şehir Sıralama Başlığı */
.gd-il-city-header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.gd-il-city-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gd-il-city-subtitle {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}

/* Sıralama Tablosu */
.gd-il-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.gd-il-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.gd-il-table th {
    padding: 12px 10px;
    text-align: left;
    color: #475569;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
}

.gd-il-table th.gd-il-th-center {
    text-align: center;
}

.gd-il-table th.gd-il-th-rank {
    width: 60px;
}

.gd-il-table td {
    padding: 12px 10px;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.gd-il-table td.gd-il-td-center {
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
    color: #475569;
}

.gd-il-table td.gd-il-td-correct {
    text-align: center;
    color: #10b981;
    font-weight: 700;
    font-size: 0.85rem;
}

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

/* Derece Rozetleri */
.gd-il-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.gd-il-rank-1 {
    background: linear-gradient(45deg, #fef3c7, #fde68a);
    color: #b45309;
}

.gd-il-rank-2 {
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

.gd-il-rank-3 {
    background: linear-gradient(45deg, #ffedd5, #fed7aa);
    color: #c2410c;
}

.gd-il-rank-default {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Kullanıcı Avatarı */
.gd-il-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.gd-il-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Başarı Oranı Rozeti */
.gd-il-rate-badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 4px 8px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Veri Bulunamadı / Yetersiz Veri Durumu */
.gd-il-no-data {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gd-il-no-data-icon {
    color: #cbd5e1;
}

.gd-il-no-data-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.gd-il-no-data-desc {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.6;
}

/* Sayfalama (Pagination) */
.gd-il-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.gd-il-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s ease;
}

.gd-il-page-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.gd-il-page-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .gd-il-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .gd-il-map-card,
    .gd-il-ranking-card {
        padding: 16px;
    }

    .gd-il-table th:nth-child(3),
    .gd-il-table td:nth-child(3) {
        display: none;
    }
}
