* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f7fafc;
    color: #2d3748;
    line-height: 1.6;
    padding: 20px;
}

.alfabe-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.alfabe-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #3182ce;
    padding-bottom: 20px;
}

.alfabe-header h1 {
    color: #1a365d;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.ust-aciklama {
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.harfler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.harf-btn {
    background-color: #edf2f7;
    border: 2px solid #cbd5e0;
    color: #2d3748;
    padding: 20px 10px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.harf-btn:hover {
    background-color: #3182ce;
    border-color: #3182ce;
    color: #ffffff;
    transform: translateY(-2px);
}

.harf-btn.aktif {
    background-color: #6fa8dc;
    border-color: #6fa8dc;
    color: #ffffff;
}

.harf-btn.ozel {
    background: #e9b4c7;
    color: #1a202c;
}

.harf-btn.ozel:hover {
    background-color: #d47a98;
    border-color: #d47a98;
    color: #1a202c;
}

/* --- POP-UP MODAL MIMARISI (KİBARLAŞTIRILMIŞ YENİ BOYUTLAR) --- */
.detay-alani {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* Arkadaki siteyi kibarca karartır */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 15px;
}

/* Pop-up kutusunun kendisi (Genişliği 550px'den 460px'e çektik) */
.detay-kart {
    background: #ffffff;
    width: 100%;
    max-width: 460px; 
    max-height: 85vh; 
    overflow-y: auto; 
    border-radius: 14px;
    padding: 22px; /* İç boşlukları daralttık */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.detay-alani.gizli {
    display: none !important;
}

.popup-kapat-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.8rem; /* Çarpıyı biraz küçülttük */
    cursor: pointer;
    color: #a0aec0;
    line-height: 1;
}

.popup-kapat-btn:hover {
    color: #e53e3e;
}

/* Harf ve Başlık Alanını Küçülttük */
.buyuk-harf {
    font-size: 2.8rem; /* 4rem'den düşürdük */
    font-weight: bold;
    color: #2b6cb0;
    background: #ebf8ff;
    width: 75px; /* 100px'den düşürdük */
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid #bee3f8;
}

.detay-baslik h2 {
    font-size: 1.4rem; /* Başlığı daha kibar yaptık */
    color: #1a365d;
    margin-bottom: 3px;
}

/* İpucu ve Örnekler Alanı */
.harf-ipucu {
    font-size: 0.95rem;
    color: #2d3748;
    background: #edf2f7;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #2b6cb0;
    margin-bottom: 15px;
}

.ayrac {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin-bottom: 15px;
}

.detay-kart h3 {
    font-size: 1.1rem;
    color: #2d3748;
}

.ornekler-container {
    display: flex;
    flex-direction: column; /* Yan yana yerine alt alta daha kibar dursun */
    gap: 10px;
    margin-top: 10px;
}

.ornek-kutu {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ornek-metin strong {
    font-size: 1.15rem;
}

.ornek-metin span {
    font-size: 0.9rem;
}

.alfabe-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.cta-mesaj {
    font-size: 1.1rem;
    color: #2F4F4F;
    margin-bottom: 20px;
}

.paylasim-butonlari {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.social-btn {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    font-size: 0.9rem;
}

.instagram { background-color: #e1306c; }
.whatsapp { background-color: #25d366; }
.telegram { background-color: #0088cc; }
.facebook { background-color: #1877f2; }
.twitter { background-color: #1da1f2; }
.linkedin { background-color: #0077b5; }

.kunye-katmani {
    padding: 14px 10px;
}

.kunye-katmani-text {
    font-size: 0.95rem; /* biraz büyüttük */
    font-weight: 500;
    text-align: center;
    color: #1f2937; /* daha koyu = daha okunabilir */
    line-height: 1.5;
}

.kunye-katmani a {
    color: #1d4ed8; /* daha güçlü mavi (accessibility safe) */
    text-decoration: underline;
    font-weight: 600;
}

.kunye-katmani a:hover,
.kunye-katmani a:focus {
    color: #1e40af;
}

/* --- MOBİL EKRAN DÜZELTMELERİ --- */
@media (max-width: 768px) {
    body { 
        padding: 10px; 
    }
    
    .alfabe-container { 
        padding: 15px; 
    }
    
    .alfabe-header h1 { 
        font-size: 1.6rem; 
    }
    
    .harfler-grid { 
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); 
        gap: 8px; 
    }
    
    .harf-btn { 
        padding: 12px 5px; 
        font-size: 1.15rem; 
    }
    
    /* Pop-up başlık kısmını mobilde de yan yana tutalım */
    .detay-ust { 
        display: flex;
        flex-direction: row !important; 
        align-items: center; 
        gap: 15px; 
        text-align: left;
    }
    
    /* İŞTE DAĞINIKLIĞI ÇÖZEN YER: Mobilde de kelime ve buton alt alta GELMEYECEK, yan yana duracak */
    .ornek-kutu { 
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center !important; 
        gap: 10px;
        padding: 10px 12px;
    }
    
    .ornek-metin {
        text-align: left;
    }
    
    .ses-oynat-btn.kucuk {
        margin-top: 0 !important; /* Butonun yukarı kaymasını engeller */
    }
}

