/* ============================================================
    MENÚ PREMIUM FONDITOS — ESTRUCTURA BASE
============================================================ */

.f-menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 3000;
}

.f-menu-button {
    background: none;
    border: none;
    color: var(--header-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 12px;
    
    /* Tamaño base para móvil */
    font-size: 26px;
    padding: 8px;
}

/* REALCE PARA ESCRITORIO */
@media (min-width: 1024px) {
    .f-menu-button {
        font-size: 36px !important;
        padding: 10px !important;
    }
}

.f-menu-button:active {
    transform: scale(0.9);
    background: var(--hover-bg);
}

.f-menu-panel {
    position: absolute;
    top: 55px;
    right: 0;
    width: 240px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    
    /* ⭐ BLUR MÍNIMO ⭐ */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.f-menu-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ============================================================
   TEMAS AUTOMÁTICOS (FONDO MÁS SÓLIDO PARA VISIBILIDAD)
============================================================ */

/* Modo claro - Más blanco, menos transparente */
html.system-light .f-menu-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Modo oscuro - Más oscuro, menos transparente */
html.system-dark .f-menu-panel {
    background: rgba(28, 32, 36, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Colores de texto */
html.system-light .f-menu-link,
html.system-light .f-menu-section-title,
html.system-light .f-user-name {
    color: #1d1d1f; /* Negro tipo Apple para máximo contraste */
}

html.system-dark .f-menu-link,
html.system-dark .f-menu-section-title,
html.system-dark .f-user-name {
    color: #ffffff; /* Blanco puro para fondo oscuro */
}

/* Hovers */
html.system-light .f-menu-link:hover { background: rgba(0, 0, 0, 0.05); }
html.system-dark .f-menu-link:hover { background: rgba(255, 255, 255, 0.08); }

/* ============================================================
   ELEMENTOS INTERNOS DEL PANEL
============================================================ */

.f-menu-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    padding: 10px 15px 5px;
    opacity: 0.5;
}

.f-menu-link {
    padding: 12px 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateX(10px);
}

.f-menu-link i { font-size: 19px; opacity: 0.8; }

.f-menu-link:hover {
    transform: translateX(4px);
}

.f-menu-divider {
    height: 1px;
    margin: 8px 10px;
    background: rgba(128, 128, 128, 0.15);
}

.f-logout { color: #ff453a !important; }

/* Animación de links al abrir */
.f-menu-panel.is-active .f-menu-link {
    opacity: 1;
    transform: translateX(0);
}

/* Delays escalonados */
.f-menu-link:nth-child(1) { transition-delay: 0.04s; }
.f-menu-link:nth-child(2) { transition-delay: 0.08s; }
.f-menu-link:nth-child(3) { transition-delay: 0.12s; }
.f-menu-link:nth-child(4) { transition-delay: 0.16s; }
.f-menu-link:nth-child(5) { transition-delay: 0.20s; }

/* ============================================================
   USUARIO / AVATAR
============================================================ */

.f-menu-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(128, 128, 128, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(128, 128, 128, 0.1);
}

.f-user-avatar {
    width: 38px;
    height: 38px;
    background: rgba(128, 128, 128, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.f-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.f-user-name {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.f-user-status {
    font-size: 11px;
    font-weight: 600;
    color: #34c759;
    display: flex;
    align-items: center;
    gap: 4px;
}

.f-user-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
}