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

#page-myprofile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 10px;
}

#page-myprofile::-webkit-scrollbar { width: 6px; }
#page-myprofile::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

/* --- 1. HEADER & COVER PHOTO --- */
.egp-header-banner {
    position: relative;
    background: #111;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: profileFadeIn 0.5s ease-out;
}

.egp-cover-photo {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.egp-cover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: 0.3s ease;
    backdrop-filter: blur(2px);
}
.egp-cover-photo:hover .egp-cover-overlay { opacity: 1; }
.egp-cover-overlay span { font-size: 13px; font-weight: 600; margin-top: 5px; }

/* --- 2. MAIN INFO & AVATAR --- */
.egp-main-info {
    display: flex;
    align-items: flex-end;
    padding: 0 25px 25px 25px;
    margin-top: -55px; /* Kəsik (Overlap) effekti - Avatar Coverin üstünə çıxır */
    gap: 20px;
    position: relative;
    z-index: 2;
}

.egp-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 6px solid #111; /* Bannerin alt rəngi ilə eyni olmalıdır */
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.egp-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.egp-status-dot {
    position: absolute;
    bottom: 5px; right: 5px;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 4px solid #111;
    z-index: 3;
}
.egp-status-dot.online { background: #00ff88; box-shadow: 0 0 10px #00ff88; }
.egp-status-dot.offline { background: #555; }

/* Profil Şəklinin Üzərinə Gələndə (Hover) */
.egp-avatar-overlay-btn {
    position: absolute;
    bottom: 0; left: 0; right: 0; top: 0;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2;
}
.egp-avatar-wrap:hover .egp-avatar-overlay-btn { opacity: 1; }
.egp-avatar-overlay-btn .material-icons { color: #fff; font-size: 32px; }

.egp-user-titles { flex-grow: 1; padding-bottom: 10px; }
.egp-user-titles h2 { margin: 0 0 5px 0; font-size: 26px; color: #fff; font-weight: 800; letter-spacing: 0.5px;}

.egp-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.egp-badge.egb-member { background: rgba(255,255,255,0.1); color: #ccc; }
.egp-badge.egb-vip { background: rgba(255,215,0,0.1); color: var(--accent); border: 1px solid var(--accent); }

/* --- 3. LAYOUT & CARDS --- */
.egp-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.egp-card {
    background: rgba(255,255,255,0.02);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    
    /* Giriş animasiyası üçün başlanğıc vəziyyət */
    opacity: 0;
    transform: translateY(15px);
    animation: profileCardFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.egp-card-title {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
}

.egp-bio-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

/* Şəxsi Məlumatlar Siyahısı */
.egp-info-list { display: flex; flex-direction: column; gap: 18px; }
.egp-info-item { display: flex; align-items: center; gap: 15px; }
.egp-info-item .material-icons { color: var(--accent); font-size: 22px; opacity: 0.9; }
.egp-info-item div { display: flex; flex-direction: column; }
.egp-info-item small { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 3px; font-weight: 600;}
.egp-info-item span { font-size: 14px; color: #fff; font-weight: 600; }

/* Boş Vəziyyət (Empty State) */
.egp-empty-state { text-align: center; padding: 40px 0; opacity: 0.7; }
.egp-empty-state p { margin: 15px 0 0 0; font-size: 13px; color: #888; }

/* --- 4. ANİMASİYALAR --- */
@keyframes profileFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes profileCardFadeIn { to { opacity: 1; transform: translateY(0); } }

/* Kartların sırayla axaraq gəlməsi */
.egp-col-left .egp-card:nth-child(1) { animation-delay: 0.10s; }
.egp-col-left .egp-card:nth-child(2) { animation-delay: 0.20s; }
.egp-col-right .egp-card:nth-child(1) { animation-delay: 0.15s; }
.egp-col-right .egp-card:nth-child(2) { animation-delay: 0.25s; }




/* --- Email Modal Premium Styles --- */
.email-change-box {
    width: 400px !important;
    background: linear-gradient(145deg, #161616 0%, #0a0a0a 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.1) !important;
    padding: 40px !important;
    border-radius: 24px !important;
    text-align: center;
}

.modal-title-premium {
    font-size: 18px;
    letter-spacing: 1.5px;
    color: #ffd700;
    margin-bottom: 25px;
    justify-content: center;
    font-weight: 800;
}

/* Stepper (Nöqtələr) */
.email-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.step-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: 0.3s;
}
.step-dot.active { background: #ffd700; box-shadow: 0 0 10px #ffd700; }
.step-line { width: 30px; height: 2px; background: rgba(255,255,255,0.05); }

.step-description {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* İkonlu İnputlar */
.premium-input-group {
    position: relative;
    margin-bottom: 12px;
}
.premium-input-group .material-icons {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #555;
}
.premium-input-group .egc-input {
    padding-left: 45px !important;
    height: 50px;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}

/* Kod Girişi (000000) */
.premium-code-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 2px dashed rgba(255,215,0,0.2);
    border-radius: 12px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    color: #ffd700;
    margin-bottom: 20px;
    font-weight: 800;
    outline: none;
    transition: 0.3s;
}
.premium-code-input:focus { border-color: #ffd700; background: rgba(255,215,0,0.05); }

/* Düymə Effektləri */
.action-glow:hover { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
.final-success-btn { background: #00ff88 !important; color: #000 !important; font-weight: 800 !important; }

.btn-ghost-cancel {
    background: none; border: none;
    color: #555; font-size: 12px; font-weight: 600;
    margin-top: 20px; cursor: pointer; transition: 0.2s;
}
.btn-ghost-cancel:hover { color: #fff; }






/* ==========================================================================
   EGAME.AZ - PROFIL SƏHİFƏSİ (MY PROFILE) MOBİL UYĞUNLAŞDIRMASI (RESPONSIVE)
   ========================================================================== */

/* --- 1. PLANŞETLƏR VƏ KİÇİK EKRANLAR (Max: 1024px) --- */
@media screen and (max-width: 1024px) {
    /* İki sütunlu dizaynı ləğv edib alt-alta salırıq */
    .egp-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* --- 2. MOBİL TELEFONLAR (Max: 768px) --- */
@media screen and (max-width: 768px) {
    
    #page-myprofile {
        height: auto !important; /* Sabit hündürlüyü sərbəst buraxırıq */
        padding-right: 0 !important; /* Mobildə scrollbar məsafəsinə ehtiyac yoxdur */
    }

    /* --- Banner (Arxa plan şəkli) və Avatar --- */
    .egp-header-banner {
        border-radius: 12px !important;
    }
    
    .egp-cover-photo {
        height: 120px !important; /* Mobildə çox yer tutmasın */
    }

    .egp-main-info {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 15px 20px 15px !important;
        margin-top: -45px !important; /* Avatarı yuxarı çəkmək üçün məsafəni azaltdıq */
    }

    .egp-avatar-wrap {
        width: 90px !important;
        height: 90px !important;
        border-width: 4px !important; /* Kənarı daha incə edirik */
    }

    .egp-status-dot {
        width: 14px !important;
        height: 14px !important;
        bottom: 4px !important;
        right: 4px !important;
        border-width: 3px !important;
    }

    /* --- İstifadəçi Məlumatları və Düymələr --- */
    .egp-user-titles h2 {
        font-size: 20px !important;
        margin-top: 5px !important;
    }

    .egp-level-box {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 15px !important;
    }
    
    #btn-edit-profile {
        width: 100% !important; /* Düymə tam eninə yayılsın */
        justify-content: center !important;
        padding: 12px !important;
        font-size: 12px !important;
    }

    /* --- Kartlar (Haqqında, Statistika, Son Oyunlar) --- */
    .egp-card {
        padding: 20px 15px !important; /* Mobildə daxili boşluqları kiçiltdik */
        border-radius: 12px !important;
        margin-bottom: 15px !important;
    }

    .egp-card-title {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }

    /* Şəxsi məlumat siyahısı mobildə sıxışmasın deyə fontları uyğunlaşdıraq */
    .egp-info-list { gap: 12px !important; }
    .egp-info-item span { font-size: 13px !important; }
    
    /* Statistika Rəqəmləri */
    .egp-col-right .egp-card > div[style*="display: grid"] {
        gap: 10px !important; /* 15px-dən 10px-a endiririk */
    }
    .egp-col-right .egp-card > div[style*="display: grid"] > div {
        padding: 10px !important; /* İç boşluğu azaltdıq */
    }
    #prof-stat-level, #prof-stat-xp {
        font-size: 22px !important; /* Rəqəmlər çox böyük görünməsin */
    }

    /* --- MODAL (Profili Redaktə Et və Email) --- */
    #modal-edit-profile .modal-box,
    .email-change-box {
        width: 90% !important;
        max-width: 360px !important;
        padding: 25px 20px !important; /* Mobildə daxili boşluqlar yığcam olmalıdır */
    }
    
    /* Email Modalı içindəki Stepper */
    .email-steps-indicator { margin-bottom: 20px !important; }
    .step-line { width: 20px !important; }
    
    /* Doğum tarixi və Şəhər yan-yana sığmaya bilər, alt-alta edirik */
    #modal-edit-profile > div > div[style*="display:flex; gap:15px;"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Inputların mobildə daha rahat basılması üçün */
    .egc-input {
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    .premium-code-input {
        height: 50px !important;
        font-size: 20px !important;
        letter-spacing: 5px !important;
    }
}