/* =========================
   PREMIUM PROFILE MODAL STİLLERİ
   ========================= */

/* Modal Arka Plan Perdesi (Diğerleriyle uyumlu) */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 1; transition: opacity 0.3s ease;
}
.modal.hidden { opacity: 0; pointer-events: none; }

/* Profil Kartı */
.profile-card {
    background: #0f172a; /* Koyu Lacivert/Siyah */
    width: 90%; max-width: 450px;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center;
    display: flex; flex-direction: column; gap: 25px;
}

/* Kapatma Butonu X */
.close-modal-btn {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: #64748b;
    font-size: 1.5rem; cursor: pointer; transition: 0.3s;
}
.close-modal-btn:hover { color: #fff; transform: rotate(90deg); }

/* Başlık Alanı */
.profile-header h2 { font-size: 1.8rem; color: #fff; margin-bottom: 5px; }
.profile-header p { color: #94a3b8; font-size: 0.95rem; }

/* Kullanıcı Bilgisi Kutusu */
.user-info-box {
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Büyük Avatar */
.large-avatar {
    width: 90px; height: 90px; border-radius: 50%;
    background: #334155; border: 3px solid #ffd700; /* Altın Çerçeve */
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 2rem;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.3); overflow: hidden;
}

/* E-posta Yazısı */
.user-email-display { color: #ffd700; font-size: 1.1rem; font-weight: 600; }

/* Avatar Seçimi (Placeholder) */
.avatar-selection-placeholder p { color: #64748b; margin-bottom: 15px; font-size: 0.9rem; }
.avatar-grid { display: flex; justify-content: center; gap: 15px; }
.avatar-option {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.05); border: 2px solid transparent;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; cursor: pointer; transition: 0.3s;
}
.avatar-option:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); }
.avatar-option.active { 
    border-color: #ffd700; background: rgba(255, 215, 0, 0.1); 
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); 
}

/* Alt Butonlar */
.profile-footer { display: flex; gap: 15px; margin-top: 10px; }

/* Kaydet Butonu (Altın) */
.btn-save {
    flex: 1;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #000; border: none; padding: 12px; border-radius: 12px;
    font-weight: 800; cursor: pointer; transition: 0.3s;
}
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2); }

/* Çıkış Butonu (Kırmızımsı) */
.btn-logout {
    flex: 1;
    background: rgba(239, 68, 68, 0.1); /* Şeffaf Kırmızı */
    color: #ef4444; border: 1px solid #ef4444;
    padding: 12px; border-radius: 12px;
    font-weight: 700; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-logout:hover { background: #ef4444; color: #fff; }

/* =========================
   ADMIN ÖZEL STİLLERİ (GOD MODE)
   ========================= */

/* Admin Çerçevesi (Hem Header hem Profil Modalı için) */
.admin-frame {
    border: 3px solid #ff4757 !important; /* Kırmızımsı özel renk */
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
    animation: adminGlow 1.5s infinite alternate;
    position: relative;
}

/* Taç İkonu (Opsiyonel: Avatarın köşesine küçük taç ekler) */
.admin-frame::after {
    content: '👑';
    position: absolute;
    top: -10px; right: -10px;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    animation: bounce 2s infinite;
}

/* Parlama Animasyonu */
@keyframes adminGlow {
    from { box-shadow: 0 0 10px rgba(255, 71, 87, 0.5); border-color: #ff4757; }
    to { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); border-color: #ffd700; } /* Altına dönüşür */
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* =========================
   ADMIN ROZETİ (TEXT BADGE)
   ========================= */

.admin-badge {
    background: linear-gradient(135deg, #ff4757 0%, #ffd700 100%); /* Kırmızıdan Altına Geçiş */
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px; /* Hap şeklinde yuvarlak */
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase; /* BÜYÜK HARF */
    letter-spacing: 1.5px;
    margin-top: 12px;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badgePulse 2s infinite alternate;
}

/* Hafif yanıp sönme efekti */
@keyframes badgePulse {
    from { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4); }
    to { transform: scale(1.05); box-shadow: 0 5px 25px rgba(255, 215, 0, 0.6); }
}