/* ======================================= */
/* ÜYELER SAYFASI STİLLERİ                 */
/* (Kurumsal Şablon Stillerine Uyumlu)     */
/* ======================================= */
/* Ana Sayfa Konteyneri */
.uyeler-sayfa-container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto; /* Üst ve altta boşluk bırakır */
    padding: 20px;
    background-color: #ffffff; /* Sayfa içeriği için beyaz zemin */
    border-radius: 8px;
}

.uyeler-sayfa-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

/* 4 Sütunlu Satır Düzeni */
.uyeler-sayfa-row {
    display: flex;
    flex-wrap: wrap; 
    justify-content: flex-start;
    margin-bottom: 20px;
}

/* Firma Kutucuğu (Card) Stili */
.uyeler-sayfa-card {
    flex: 1 1 23%; /* Her kart 4 tanesi sığacak şekilde genişlik alır */
    max-width: 23%; 
    margin: 1%; 
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    /* Kart yüksekliği, ikonlar eklendiği için biraz artırıldı */
    height: 165px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* İçeriği dikeyde daha iyi dağıtır */
    align-items: center;
}

.uyeler-sayfa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.uyeler-sayfa-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
    /* KARE olması için border-radius kaldırıldı */
    border-radius: 0; 
}

.uyeler-sayfa-no-logo {
    width: 70px;
    height: 70px;
    background-color: #007bff;
    color: white;
    /* KARE olması için border-radius kaldırıldı */
    border-radius: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 8px;
}


.uyeler-sayfa-company-name {
    font-size: 0.85em;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    /* İkonlar için biraz daha boşluk bırakmak üzere margin sıfırlandı */
    margin: 5px 0 0 0; 
}

.uyeler-sayfa-empty {
    /* Boş kartları görünmez yapar */
    visibility: hidden; 
    border: none;
    box-shadow: none;
    background-color: transparent;
    cursor: default;
}

/* ================================================================= */
/* YENİ SOSYAL MEDYA İKONLARI - KART İÇİ */
/* ================================================================= */

.uyeler-sayfa-social-icons-container {
    margin-top: 5px; /* Firma adıyla ikonlar arasındaki boşluk */
    display: flex;
    justify-content: center;
    gap: 12px; 
}

.uyeler-sayfa-social-icons-container .social-icon {
    text-decoration: none;
    font-size: 1.2em; /* İkon boyutu biraz küçültüldü */
    transition: transform 0.2s;
    color: #444; /* Varsayılan koyu renk */
}

.uyeler-sayfa-social-icons-container .social-icon:hover {
    transform: scale(1.2);
}

/* İkonlara doğru renkleri verelim */
.uyeler-sayfa-social-icons-container .instagram {
    color: #E4405F; 
}
.uyeler-sayfa-social-icons-container .facebook {
    color: #3B5998; 
}
.uyeler-sayfa-social-icons-container .x {
    color: #1DA1F2; 
}


/* ================================================================= */
/* POP-UP (Modal) Stili */
/* ================================================================= */

.uyeler-sayfa-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
}

.uyeler-sayfa-modal-content {
    background-color: #fff;
    margin: 10% auto; 
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 450px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.uyeler-sayfa-close-btn {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
}

.uyeler-sayfa-close-btn:hover,
.uyeler-sayfa-close-btn:focus {
    color: #000;
    cursor: pointer;
}

/* Modal İçeriği Stili */
.uyeler-sayfa-modal-details h3 {
    color: #007bff;
    padding-bottom: 10px;
    margin-top: 5px;
}

/* Modal İçeriği Stili - Pop-up içindeki logo da kare oldu */
.uyeler-sayfa-modal-details img, 
.uyeler-sayfa-modal-details .uyeler-sayfa-no-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: block;
    /* KARE olması için border-radius kaldırıldı */
    border-radius: 0; 
}

.uyeler-sayfa-modal-details p {
    margin: 8px 0;
    text-align: left;
    padding-left: 10%;
}


/* ========================
/* Üyeler Sayfası
/* ========================

/* Üyeler Sayfası Genel Stil */
.uyeler-bolumu { padding: 40px 0; background: #f9f9f9; }

/* Alfabetik Bar */
.uyeler-alfabe-nav {
    position: sticky;
    top: 80px; /* Header yüksekliğine göre ayarla */
    background: white;
    display: flex;
    overflow-x: auto;
    padding: 15px;
    gap: 10px;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    justify-content: center;
}

.uyeler-alfabe-nav button {
    border: none;
    background: #eee;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.uyeler-alfabe-nav button:hover { background: #007bff; color: white; }

/* Harf Grupları ve Grid */
.uyeler-harf-baslik {
    font-size: 2.5rem;
    color: #ddd;
    margin: 40px 0 20px;
    font-weight: 800;
    border-bottom: 2px solid #eee;
}

.uyeler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.uyeler-kart {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #eee;
}

.uyeler-kart:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* Logo Yoksa Avatar */
.uyeler-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

/* Modal (Pop-up) */
.uyeler-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.uyeler-modal-kart {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    text-align: center;
}

.uyeler-modal-kapat {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

.uyeler-wa-btn {
    display: block;
    background: #25d366;
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

/* Sade Kart Tasarımı */
.uyeler-kart-sade {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.uyeler-modal-overlay {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999; /* En üstte durması için */
    justify-content: center;
    align-items: center;
}

.uyeler-kart-sade:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #6610f2; /* AKKDER kırmızısı */
}

.uyeler-firma-adi-sade {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* Modal İç Tasarımı */
.modal-ic-icerik { text-align: center; padding: 10px; }
.modal-avatar { 
    width: 80px; height: 80px; background: #6610f2; color: #fff; 
    border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; font-size: 35px; margin: 0 auto 15px;
}
.modal-bilgi-satiri { margin-bottom: 12px; font-size: 16px; color: #555; }
.modal-bilgi-satiri i { color: #6610f2; margin-right: 10px; width: 20px; }
.modal-wa-button {
    display: inline-block; background: #25d366; color: #fff; 
    padding: 12px 25px; border-radius: 50px; text-decoration: none; 
    margin-top: 20px; font-weight: 600;
}

/* Mobil Alfabe Navigasyon Düzenlemesi */
#alphabet-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 15px; /* Kenarlardan biraz boşluk bırakalım */
    gap: 10px;
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
    position: sticky;
    top: 70px;
    z-index: 100;
    justify-content: flex-start !important; /* Her zaman en baştan (A'dan) başla */
    scroll-behavior: smooth;
    text-align: left;
}

#alphabet-nav::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari için kaydırma çubuğunu gizle (daha temiz görünüm) */
#alphabet-nav::-webkit-scrollbar {
    display: none;
}

.alfabe-btn {
    flex: 0 0 auto; /* Butonların daralmasını engelle */
    min-width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.alfabe-btn:active {
    background: #6610f2;
    color: #fff;
}

/* Firmalar listesi içindeki her bir kart için otomatik gecikme */
.uyeler-liste-konteyner .firma-karti { /* Sınıf isminiz farklıysa güncelleyin */
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.5s ease forwards;
}

/* İlk 10 kart için şelale etkisi (nth-child kullanarak) */
.uyeler-liste-konteyner .firma-karti:nth-child(1) { animation-delay: 0.1s; }
.uyeler-liste-konteyner .firma-karti:nth-child(2) { animation-delay: 0.2s; }
.uyeler-liste-konteyner .firma-karti:nth-child(3) { animation-delay: 0.3s; }
.uyeler-liste-konteyner .firma-karti:nth-child(4) { animation-delay: 0.4s; }
.uyeler-liste-konteyner .firma-karti:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal için daha pürüzsüz açılış */
.uyeler-modal-overlay {
    transition: opacity 0.3s ease;
}
.uyeler-modal-kart {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}