/* ============================================================
   profile.css — Estilos del editor de perfil — Eclipse Zone
   ============================================================ */

/* ── Botón editar perfil (inyectado bajo el avatar en accountModal) ─── */
#editProfileBtn {
    margin-top: 8px;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

#editProfileBtn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* ── Overlay del editor ──────────────────────────────────── */
#profileEditorOverlay {
    position: fixed;
    inset: 0;
    z-index: 10500;
    background: linear-gradient(135deg, rgba(0,0,0,0.93) 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: overlayFadeIn 0.2s ease;
}

#profileEditorOverlay .auth-box {
    max-width: 480px;
    width: 100%;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    padding-top: 0;           /* el banner ocupa ese espacio */
    scrollbar-width: thin;
}

#profileEditorOverlay .auth-box::-webkit-scrollbar { width: 3px; }
#profileEditorOverlay .auth-box::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* ── Banner del editor ───────────────────────────────────── */
#profileBannerPreview {
    width: calc(100% + 60px);   /* sangra hasta los bordes del auth-box (padding 30px c/lado) */
    margin-left: -30px;
    margin-top: -30px;          /* cubre el padding-top del auth-box */
    height: 90px;
    border-radius: 16px 16px 0 0;
    background-size: cover !important;
    background-position: center !important;
    transition: background 0.4s ease;
    flex-shrink: 0;
}

/* ── Avatar del editor ───────────────────────────────────── */
#profileAvatarPreview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card-bg, #1e1e2a);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

/* ── Previsualización live de avatar ─────────────────────── */
.pe-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -36px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

/* ── Banner del modal de cuenta (mostrar cuando el usuario YA tiene uno) */
.account-banner {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-top: -20px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 16px 16px 0 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* ── Inputs del editor ───────────────────────────────────── */
#profileEditorOverlay .auth-input {
    width: 100%;
    box-sizing: border-box;
}

/* ── Mensajes del editor ─────────────────────────────────── */
#pe_message {
    font-size: 0.85rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
    #profileEditorOverlay .auth-box {
        padding: 0 16px 20px;
    }
    #profileBannerPreview {
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-top: -0px;
        border-radius: 14px 14px 0 0;
    }
}
