/* Ana Kapsayıcı */
.agl-kapsayici {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --- NAVİGASYON --- */
.agl-navigasyon {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.agl-harf {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
}

/* AKTİF HARFLER (İçerik var) - MAVİ ZEMİN */
.agl-harf.aktif {
    background-color: #005bee; /* Mavi Renk */
    color: #ffffff;
    border: 1px solid #005bee;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 91, 238, 0.2);
}

.agl-harf.aktif:hover {
    background-color: #0044aa;
    transform: translateY(-2px);
}

/* PASİF HARFLER (İçerik yok) - GRİ VE SİLİK */
.agl-harf.pasif {
    background-color: #f8f9fa;
    color: #d1d1d1;
    border: 1px solid #e9ecef;
    cursor: default;
    pointer-events: none;
}

/* --- İÇERİK ALANI --- */
.agl-icerik {
    /* Masaüstünde 2 Sütun */
    column-count: 2;
    column-gap: 40px;
}

/* Harf Grubu Kutusu */
.agl-grup {
    background: #fff;
    margin-bottom: 30px;
    /* Kutunun bölünmesini engeller */
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    
    display: inline-block;
    width: 100%;
}

/* Harf Başlığı (A, B, C...) */
.agl-grup-baslik {
    color: #005bee;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #005bee;
    display: block;
}

/* Liste */
.agl-liste {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.agl-liste li {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

.agl-liste a {
    display: block;
    padding: 10px 14px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    
    /* Uzun metinler taşmasın */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agl-liste a:hover {
    background: #eef2ff;
    color: #005bee;
    border-left-color: #005bee;
    padding-left: 18px;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .agl-icerik {
        column-count: 1; /* Mobilde tek sütun */
    }
    
    .agl-harf {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .agl-grup-baslik {
        font-size: 20px;
    }
}

/* Hata Mesajları */
.agl-hata, .agl-bilgi {
    padding: 15px;
    margin: 15px 0;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    border-radius: 4px;
}
.agl-bilgi {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}