/* ==========================================================================
   EGAME.AZ - SETTINGS PANEL (PREFIXED & PREMIUM VIP)
   ========================================================================== */

.egs-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.egs-settings-card {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.egs-settings-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-color: rgba(255, 215, 0, 0.15);
}

/* --- AVATAR YÜKLƏMƏ --- */
.egs-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.egs-avatar-preview-box {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.egs-avatar-preview-box:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.egs-avatar-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.egs-avatar-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    transform: translateY(100%);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.egs-avatar-preview-box:hover .egs-avatar-overlay {
    transform: translateY(0);
}

.egs-avatar-overlay span { font-size: 11px; font-weight: 600; margin-top:2px; }

/* --- DİGƏR ELEMENTLƏR --- */
.egs-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 20px 0;
}

/* --- PREMIUM iOS STİLİ SWITCH DÜYMƏLƏR --- */
.egs-preference-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.egs-preference-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.egs-pref-info h4 { margin: 0 0 5px 0; font-size: 13px; color: #fff; font-weight: 600; }
.egs-pref-info p { margin: 0; font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.egs-premium-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.egs-premium-switch input { opacity: 0; width: 0; height: 0; }

.egs-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255,255,255,0.1);
    transition: .4s;
    border: 1px solid rgba(255,255,255,0.05);
}

.egs-slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 2px; bottom: 2px;
    background-color: #aaa;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.egs-premium-switch input:checked + .egs-slider {
    background-color: rgba(0, 255, 136, 0.15);
    border: 1px solid #00ff88;
}

.egs-premium-switch input:checked + .egs-slider:before {
    transform: translateX(20px);
    background-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.egs-slider.egs-round { border-radius: 34px; }
.egs-slider.egs-round:before { border-radius: 50%; }
.egs-premium-switch input:disabled + .egs-slider { opacity: 0.3; cursor: not-allowed; }
.egs-premium-switch input:disabled + .egs-slider:before { background-color: #555; }




/* --- 9. AYARLAR SƏHİFƏSİ ÜÇÜN GİRİŞ ANİMASİYASI (STAGGERED FADE-IN) --- */
.egs-settings-card {
    /* Köhnə transition qalır, sadəcə başlanğıc vəziyyətini gizli edirik */
    opacity: 0;
    transform: translateY(15px);
    animation: settingsCardFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

/* Kartların bir-birinin ardınca sırayla ekrana gəlməsi üçün gecikmə (delay) */
.egs-settings-card:nth-child(1) { animation-delay: 0.05s; }
.egs-settings-card:nth-child(2) { animation-delay: 0.15s; }
.egs-settings-card:nth-child(3) { animation-delay: 0.25s; }
.egs-settings-card:nth-child(4) { animation-delay: 0.35s; }

/* Inputların içinin auto-fill zamanı ağarmasının (Browser defoltunun) qarşısını alaq */
.egs-settings-card input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(0,0,0,0.5) inset !important;
    -webkit-text-fill-color: white !important;
}










.egs-toggle-group {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.egs-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #888;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s all ease;
    text-transform: uppercase;
}

.egs-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* AKTİV OLAN DÜYMƏ (Sənin seçdiyin) */
.egs-toggle-btn.active {
    background: var(--accent); /* Sənin yaşıl/qızılı rəngin */
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}







/* ==========================================================================
   EGAME.AZ - AYARLAR (SETTINGS) MOBİL UYĞUNLAŞDIRMASI (RESPONSIVE)
   ========================================================================== */

@media screen and (max-width: 768px) {
    
    /* 1. Kartların daxili boşluqlarını (padding) mobildə yığcamlaşdırırıq */
    .egs-settings-card {
        padding: 20px 15px !important;
    }

    /* Mobildə hover yuxarı qalxma effektini ləğv edirik ki, barmaqla basanda ekran titrəməsin */
    .egs-settings-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: rgba(255,255,255,0.05) !important;
    }

    /* 2. AVATAR DƏYİŞDİRMƏ (TOUCH UX) */
    /* Telefonda "Hover" olmadığı üçün kamera ikonunu həmişə açıq (yarı şəffaf) saxlayırıq */
    .egs-avatar-preview-box {
        width: 100px !important;
        height: 100px !important;
    }
    
    .egs-avatar-overlay {
        transform: translateY(0) !important; /* Həmişə görünsün */
        background: rgba(0, 0, 0, 0.6) !important; /* Bir az daha şəffaf edirik ki, üz görünsün */
        padding: 6px 0 !important;
    }
    .egs-avatar-overlay .material-icons { font-size: 18px !important; }
    .egs-avatar-overlay span { font-size: 9px !important; }

    /* 3. İKİ MƏRHƏLƏLİ SEÇİMLƏR VƏ SWİTCH DÜYMƏLƏRİ */
    .egs-preference-row {
        padding: 12px 0 !important;
    }
    
    /* Uzun yazılar Switch düyməsini divara sıxışdırmasın deyə limit qoyuruq */
    .egs-pref-info {
        padding-right: 15px;
    }
    .egs-pref-info h4 { font-size: 13px !important; }
    .egs-pref-info p { font-size: 10px !important; line-height: 1.3 !important; }

    /* 4. SEÇİM QRUPU (Toggle Group - Hər kəs, Dostlar, Heç kim) */
    .egs-toggle-group {
        padding: 3px !important;
    }
    
    /* Mobildə yan-yana 3 düymə sığsın deyə yazıları kiçildir və paddinqi yığırıq */
    .egs-toggle-btn {
        font-size: 10px !important;
        padding: 10px 5px !important;
        border-radius: 6px !important;
        letter-spacing: 0px !important;
    }

    /* 5. GİRİŞ (INPUT) SAHƏLƏRİ */
    /* Parol dəyişmə və Status inputları mobildə daha rahat basılsın */
    .egc-input {
        padding: 14px 15px !important;
        font-size: 14px !important;
    }
    
    .egc-send-btn {
        padding: 14px !important;
        font-size: 12px !important;
    }
}

/* Çox kiçik ekranlar üçün (iPhone SE) */
@media screen and (max-width: 380px) {
    .egs-pref-info h4 { font-size: 12px !important; }
    .egs-toggle-btn { font-size: 9px !important; }
}