/* ========================================
   GLAMZN NEWS - PROFESSIONAL HEADER STYLES
   Site de news moderne et professionnel
   ======================================== */

/* ============================================
   NIVEAU 1 : TOP BAR (Date, Météo, Social)
   ============================================ */

.glamzn-topbar-pro {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
}

/* Dark mode support for top bar */
.dark .glamzn-topbar-pro {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.glamzn-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glamzn-topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.glamzn-datetime-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.glamzn-datetime-compact .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

.glamzn-weather-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.glamzn-location-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glamzn-location-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.glamzn-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glamzn-social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.glamzn-social-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   NIVEAU 2 : MAIN NAVBAR (Logo, Search, User)
   ============================================ */

.glamzn-main-navbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    position: relative;
}

.dark .glamzn-main-navbar {
    background: #1f2937;
    border-bottom-color: #374151;
}

.glamzn-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Mobile Trigger */
.glamzn-mobile-trigger {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glamzn-mobile-trigger:hover {
    background: #f3f4f6;
    border-color: #4F46E5;
}

/* Logo Section */
.glamzn-logo-section {
    flex-shrink: 0;
}

.glamzn-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.glamzn-logo img {
    height: 40px;
    width: auto;
}

.glamzn-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1f2937;
}

.dark .glamzn-logo-text {
    color: white;
}

.glamzn-logo-text .text-primary {
    color: #4F46E5;
}

/* Search Section */
.glamzn-search-section {
    flex: 1;
    max-width: 500px;
}

.glamzn-search-form {
    position: relative;
    width: 100%;
}

.glamzn-search-input {
    width: 100%;
    height: 44px;
    padding: 0 48px 0 16px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.glamzn-search-input:focus {
    outline: none;
    border-color: #4F46E5;
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.glamzn-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4F46E5;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glamzn-search-btn:hover {
    background: #4338ca;
    transform: translateY(-50%) scale(1.05);
}

/* Navbar Actions */
.glamzn-navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glamzn-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 6px;
}

.glamzn-action-btn:hover {
    background: #f3f4f6;
    border-color: #4F46E5;
    color: #4F46E5;
}

.glamzn-login-trigger {
    padding: 0 16px;
    border-radius: 20px;
    width: auto;
    font-weight: 600;
}

/* User Dropdown */
.glamzn-user-dropdown {
    position: relative;
}

.glamzn-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #1f2937;
}

.dark .glamzn-user-trigger {
    background: #374151;
    border-color: #4b5563;
    color: white;
}

.glamzn-user-trigger:hover {
    border-color: #4F46E5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.glamzn-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.glamzn-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 8px;
    display: none;
    z-index: 1000;
}

.glamzn-user-dropdown:hover .glamzn-dropdown-menu {
    display: block;
}

.glamzn-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.glamzn-dropdown-menu a:hover {
    background: #f3f4f6;
    color: #4F46E5;
}

.glamzn-dropdown-menu hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* ============================================
   NIVEAU 3 : CATEGORIES NAVIGATION
   ============================================ */

.glamzn-categories-navbar {
    background: white;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.dark .glamzn-categories-navbar {
    background: #111827;
    border-bottom-color: #1f2937;
}

.glamzn-categories-menu {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.glamzn-categories-menu::-webkit-scrollbar {
    display: none;
}

.glamzn-categories-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    min-height: 52px;
}

.glamzn-category-item {
    position: relative;
    flex-shrink: 0;
}

.glamzn-category-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.dark .glamzn-category-link {
    color: #d1d5db;
}

/* Background hover effect - full coverage */
.glamzn-category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Underline effect */
.glamzn-category-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #6366F1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 3px;
    z-index: 0;
}

.glamzn-category-link:hover {
    color: #4F46E5 !important;
}

.glamzn-category-link:hover::before {
    opacity: 1;
}

.glamzn-category-link:hover::after {
    width: calc(100% - 36px);
}

.dark .glamzn-category-link:hover {
    color: #a5b4fc !important;
}

.dark .glamzn-category-link::before {
    background: rgba(165, 180, 252, 0.12);
}

/* Add invisible bridge to prevent dropdown from closing */
.glamzn-category-item::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
    z-index: 999;
    pointer-events: auto;
    display: none;
}

.glamzn-category-item:hover::before {
    display: block;
}

.glamzn-category-dropdown {
    position: absolute;
    top: calc(100% + 8px) !important;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 1px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin-top: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) !important;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
    z-index: 1000;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.dark .glamzn-category-dropdown {
    background: rgba(31, 41, 55, 0.98);
    border-color: #374151;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
                0 0 1px rgba(255, 255, 255, 0.1);
}

.glamzn-category-item:hover .glamzn-category-dropdown,
.glamzn-category-item:focus-within .glamzn-category-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition-delay: 0.15s;
}

/* Keep dropdown visible when hovering over it */
.glamzn-category-dropdown:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.glamzn-category-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glamzn-category-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

/* Add subtle hover icon */
.glamzn-category-dropdown a::before {
    content: '→';
    position: absolute;
    left: 8px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #4F46E5;
    font-weight: bold;
}

.glamzn-category-dropdown a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.dark .glamzn-category-dropdown a {
    color: #e5e7eb;
}

.glamzn-category-dropdown a:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.1));
    color: #4F46E5;
    padding-left: 28px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.dark .glamzn-category-dropdown a:hover {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(165, 180, 252, 0.15));
    color: #a5b4fc;
}

.dark .glamzn-category-dropdown a::before {
    color: #a5b4fc;
}

/* Modern arrow indicator at top */
.glamzn-category-dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    transform: rotate(45deg);
    z-index: -1;
}

.dark .glamzn-category-dropdown::after {
    background: rgba(31, 41, 55, 0.98);
    border-left-color: #374151;
    border-top-color: #374151;
}

/* ============================================
   STICKY BEHAVIOR - DISABLED per user request
   ============================================ */

.uc-navbar-sticky {
    /* DISABLED - User requested no sticky menu */
    /* position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hide topbar when sticky */
.uc-navbar-sticky .glamzn-topbar-pro {
    /* display: none; */
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .glamzn-search-section {
        max-width: 400px;
    }

    .glamzn-category-link {
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .glamzn-topbar-left {
        gap: 16px;
    }

    .glamzn-weather-compact {
        padding-left: 16px;
    }

    .glamzn-logo-text {
        font-size: 20px;
    }

    .glamzn-category-link {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .glamzn-topbar-pro {
        padding: 6px 0;
        font-size: 12px;
    }

    .glamzn-main-navbar {
        padding: 12px 0;
    }

    .glamzn-navbar-content {
        gap: 12px;
    }

    .glamzn-logo img {
        height: 32px;
    }

    .glamzn-logo-text {
        font-size: 18px;
    }

    .glamzn-action-btn,
    .glamzn-mobile-trigger {
        width: 36px;
        height: 36px;
    }

    .glamzn-categories-list {
        min-height: 48px;
        gap: 2px;
    }

    .glamzn-category-link {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .glamzn-datetime-compact {
        font-size: 11px;
        gap: 4px;
    }

    .glamzn-social-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}
