/**
 * Eau System Header Styles
 *
 * Styles for system page adjustments and profile dropdown.
 * The site Elementor header is used on all pages.
 *
 * @since 1.57.5
 * @since 1.77.0 Removed custom header styles; now uses site Elementor header
 */

/* ==========================================================================
   System Page: Hide theme fallback header and duplicate page titles
   ========================================================================== */

/* Hide the Hello Elementor fallback header on system pages
   (we inject the Elementor header template directly) */
body.eau-system-page #site-header.site-header {
    display: none !important;
}

/* Hide the Hello Elementor fallback footer on system pages */
body.eau-system-page #site-footer.site-footer {
    display: none !important;
}

/* System pages render their own titles in the content area */
body.eau-system-page .entry-title,
body.eau-system-page .page-title,
body.eau-system-page h1.entry-title,
body.eau-system-page .elementor-page-title,
body.eau-system-page article > header,
body.eau-system-page .entry-header {
    display: none !important;
}

/* ==========================================================================
   Profile Dropdown
   ========================================================================== */

/* Make the profile element a positioning context */
.list-icon-my-profile {
    position: relative !important;
}

/* Dropdown container - hidden by default */
.eau-profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    z-index: 99999;
    padding: 6px 0;
    margin-top: 4px;
}

/* Bridge element to prevent gap between trigger and dropdown */
.eau-profile-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

/* Show dropdown on hover */
.list-icon-my-profile:hover .eau-profile-dropdown {
    display: block;
}

/* Dropdown items */
.eau-profile-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 16px !important;
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.eau-profile-dropdown-item:hover {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    text-decoration: none !important;
}

.eau-profile-dropdown-item:visited {
    color: #374151 !important;
}

.eau-profile-dropdown-item svg {
    flex-shrink: 0;
    color: #6b7280;
}

.eau-profile-dropdown-item:hover svg {
    color: #374151;
}
