/* =====================================================
   GLAMZN NEWS - ULTRA MODERN MINIMAL HEADER
   Design inspiré de : BBC News, The Guardian, Medium
   ===================================================== */

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   NIVEAU 1 : TOP BAR MINIMAL
   ===================================================== */

.glamzn-topbar-pro {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.dark .glamzn-topbar-pro {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

/* Force colors in dark mode */
html.dark .glamzn-topbar-pro,
body.dark .glamzn-topbar-pro,
[data-theme="dark"] .glamzn-topbar-pro {
    background: #0f172a !important;
    border-bottom-color: #1e293b !important;
}

.glamzn-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Left: Date & Weather */
.glamzn-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.glamzn-datetime-compact,
.glamzn-weather-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    transition: color 0.3s ease;
}

.dark .glamzn-datetime-compact,
.dark .glamzn-weather-compact {
    color: #d1d5db;
}

/* Force light colors in dark mode */
html.dark .glamzn-datetime-compact,
html.dark .glamzn-weather-compact,
body.dark .glamzn-datetime-compact,
body.dark .glamzn-weather-compact,
[data-theme="dark"] .glamzn-datetime-compact,
[data-theme="dark"] .glamzn-weather-compact {
    color: #d1d5db !important;
}

.glamzn-datetime-compact i,
.glamzn-weather-compact i {
    font-size: 14px;
    opacity: 0.7;
}

.glamzn-datetime-compact .separator {
    color: #d1d5db;
    margin: 0 4px;
}

.glamzn-location-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glamzn-location-btn:hover {
    background: #f3f4f6;
    color: #4F46E5;
}

.dark .glamzn-location-btn:hover {
    background: #1f2937;
    color: #818cf8;
}

/* Right: Social Icons */
.glamzn-topbar-right {
    display: flex;
    gap: 8px;
}

.glamzn-social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 50%;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 16px;
}

.glamzn-social-icon:hover {
    background: #f3f4f6;
    color: #4F46E5;
}

.dark .glamzn-social-icon {
    color: #9ca3af;
}

.dark .glamzn-social-icon:hover {
    background: #1f2937;
    color: #818cf8;
}

/* =====================================================
   NIVEAU 2 : MAIN NAVBAR - ULTRA CLEAN
   ===================================================== */

.glamzn-main-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    /* position: sticky; DISABLED - User requested no sticky */
    /* top: 0; */
    z-index: 999;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.dark .glamzn-main-navbar {
    background: #111827;
    border-bottom-color: #1f2937;
}

/* Force colors in dark mode */
html.dark .glamzn-main-navbar,
body.dark .glamzn-main-navbar,
[data-theme="dark"] .glamzn-main-navbar {
    background: #111827 !important;
    border-bottom-color: #1f2937 !important;
}

.glamzn-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 32px;
}

/* Mobile Menu */
.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;
    color: #374151;
    transition: all 0.2s;
    font-size: 20px;
}

.glamzn-mobile-trigger:hover {
    background: #f9fafb;
    border-color: #4F46E5;
    color: #4F46E5;
}

.dark .glamzn-mobile-trigger {
    border-color: #374151;
    color: #d1d5db;
}

.dark .glamzn-mobile-trigger:hover {
    background: #1f2937;
    border-color: #818cf8;
    color: #818cf8;
}

/* Logo - À gauche */
.glamzn-logo-section {
    flex-shrink: 0;
    min-width: 180px; /* Add minimum width */
}

.glamzn-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.glamzn-logo img {
    height: 36px;
    width: auto;
}

.glamzn-logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark .glamzn-logo-text {
    color: #fff;
}

.glamzn-logo-text .text-primary {
    color: #4F46E5;
}

/* Categories Section - Intégrée dans la navbar */
.glamzn-categories-section {
    flex: 1;
    overflow: visible !important;
    position: relative;
}

.glamzn-categories-section .glamzn-categories-menu {
    overflow-x: visible; /* Changed from auto to visible for dropdown */
    overflow-y: visible !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.glamzn-categories-section .glamzn-categories-menu::-webkit-scrollbar {
    display: none;
}

.glamzn-categories-section .glamzn-categories-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    min-height: auto;
}

.glamzn-categories-section .glamzn-category-item {
    position: relative;
    flex-shrink: 0;
}

.glamzn-categories-section .glamzn-category-link {
    display: flex;
    align-items: center;
    gap: 3px; /* Reduced from 4px */
    padding: 8px 10px; /* Reduced from 10px 16px */
    font-size: 13px; /* Reduced from 14px */
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    border-radius: 8px;
    background: transparent;
}

.dark .glamzn-categories-section .glamzn-category-link {
    color: #9ca3af;
}

/* Background hover effect - full coverage */
.glamzn-categories-section .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;
}

.dark .glamzn-categories-section .glamzn-category-link::before {
    background: rgba(165, 180, 252, 0.12);
}

/* Underline effect */
.glamzn-categories-section .glamzn-category-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4F46E5, #6366F1);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    z-index: 0;
}

.dark .glamzn-categories-section .glamzn-category-link::after {
    background: linear-gradient(90deg, #818cf8, #a5b4fc);
}

/* Hover states */
.glamzn-categories-section .glamzn-category-link:hover,
.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-link {
    color: #4F46E5 !important;
}

.dark .glamzn-categories-section .glamzn-category-link:hover,
.dark .glamzn-categories-section .glamzn-category-item:hover .glamzn-category-link {
    color: #818cf8 !important;
}

.glamzn-categories-section .glamzn-category-link:hover::before,
.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-link::before {
    opacity: 1;
}

.glamzn-categories-section .glamzn-category-link:hover::after,
.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-link::after {
    width: calc(100% - 32px);
}

/* Dropdowns in navbar categories - IMPROVED */
.glamzn-categories-section .glamzn-category-item {
    position: relative;
}

.glamzn-navbar-content {
    position: relative;
    overflow: visible !important;
}

/* Add invisible bridge between link and dropdown */
.glamzn-categories-section .glamzn-category-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    z-index: 99998;
    pointer-events: auto;
    display: none;
}

.glamzn-categories-section .glamzn-category-item:hover::after {
    display: block;
}

.glamzn-categories-section .glamzn-category-dropdown {
    position: absolute;
    top: calc(100% + 12px) !important;
    left: 0;
    min-width: 240px;
    max-width: 320px;
    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: 99999 !important;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.dark .glamzn-categories-section .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);
}

/* Show dropdown with slight delay to prevent flicker */
.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-dropdown,
.glamzn-categories-section .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 */
.glamzn-categories-section .glamzn-category-dropdown:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.glamzn-categories-section .glamzn-category-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glamzn-categories-section .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-categories-section .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-categories-section .glamzn-category-dropdown a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.dark .glamzn-categories-section .glamzn-category-dropdown a {
    color: #e5e7eb;
}

.glamzn-categories-section .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-categories-section .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-categories-section .glamzn-category-dropdown a::before {
    color: #a5b4fc;
}

/* Modern arrow indicator at top */
.glamzn-categories-section .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-categories-section .glamzn-category-dropdown::after {
    background: rgba(31, 41, 55, 0.98);
    border-left-color: #374151;
    border-top-color: #374151;
}

/* Add subtle animation for each item */
.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-dropdown li {
    animation: slideInItem 0.3s ease forwards;
    opacity: 0;
}

.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(1) { animation-delay: 0.05s; }
.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(2) { animation-delay: 0.08s; }
.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(3) { animation-delay: 0.11s; }
.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(4) { animation-delay: 0.14s; }
.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(5) { animation-delay: 0.17s; }
.glamzn-categories-section .glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(n+6) { animation-delay: 0.2s; }

/* =====================================================
   "PLUS" MENU - MEGA DROPDOWN STYLE
   ===================================================== */

.glamzn-more-categories {
    position: relative;
}

.glamzn-more-link {
    font-weight: 700;
    color: #4F46E5 !important;
}

.dark .glamzn-more-link {
    color: #818cf8 !important;
}

.glamzn-more-dropdown {
    min-width: 600px !important;
    max-width: 800px !important;
    padding: 20px !important;
}

.glamzn-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.glamzn-more-category {
    padding: 16px;
    border-radius: 10px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.dark .glamzn-more-category {
    background: #111827;
}

.glamzn-more-category:hover {
    background: #f3f4f6;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.dark .glamzn-more-category:hover {
    background: #0f172a;
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.15);
}

.glamzn-more-category-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.dark .glamzn-more-category-title {
    color: #fff;
    border-bottom-color: #374151;
}

.glamzn-more-category-title:hover {
    color: #4F46E5;
    border-bottom-color: #4F46E5;
}

.dark .glamzn-more-category-title:hover {
    color: #818cf8;
    border-bottom-color: #818cf8;
}

.glamzn-more-subcategories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glamzn-more-subcategories li {
    margin: 0;
}

.glamzn-more-subcategories a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dark .glamzn-more-subcategories a {
    color: #9ca3af;
}

.glamzn-more-subcategories a:hover {
    color: #4F46E5;
    background: #ffffff;
    padding-left: 16px;
}

.dark .glamzn-more-subcategories a:hover {
    color: #818cf8;
    background: #1f2937;
}

/* Animation for mega menu items */
.glamzn-more-categories:hover .glamzn-more-category {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.glamzn-more-categories:hover .glamzn-more-category:nth-child(1) { animation-delay: 0.05s; }
.glamzn-more-categories:hover .glamzn-more-category:nth-child(2) { animation-delay: 0.1s; }
.glamzn-more-categories:hover .glamzn-more-category:nth-child(3) { animation-delay: 0.15s; }
.glamzn-more-categories:hover .glamzn-more-category:nth-child(4) { animation-delay: 0.2s; }
.glamzn-more-categories:hover .glamzn-more-category:nth-child(n+5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   MENU "POPULAIRES" - TOP 10 SOUS-CATÉGORIES
   ===================================================== */

.glamzn-popular-subcategories {
    position: relative;
}

.glamzn-popular-link {
    font-weight: 700;
    color: #ef4444 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.glamzn-popular-link i.bi-fire {
    color: #ef4444;
    animation: fireFlicker 2s ease-in-out infinite;
}

@keyframes fireFlicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.dark .glamzn-popular-link {
    color: #f87171 !important;
}

.glamzn-popular-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px !important; /* Fixed width instead of min/max */
    padding: 12px !important;
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1),
                0 0 1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    overflow: visible !important; /* No scroll */
}

.dark .glamzn-popular-dropdown {
    background: #1f2937;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 1px rgba(255, 255, 255, 0.1);
}

.glamzn-popular-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.dark .glamzn-popular-header {
    border-bottom-color: #374151;
}

.glamzn-popular-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark .glamzn-popular-header h4 {
    color: #fff;
}

.glamzn-popular-header p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.dark .glamzn-popular-header p {
    color: #9ca3af;
}

.glamzn-popular-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Simple link style for popular subcategories */
.glamzn-popular-link-simple {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Show ... if text is too long */
}

.glamzn-popular-link-simple:hover {
    background: #fff;
    color: #ef4444;
    border-left-color: #ef4444;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.dark .glamzn-popular-link-simple {
    color: #d1d5db;
    background: #1f2937;
}

.dark .glamzn-popular-link-simple:hover {
    background: #111827;
    color: #f87171;
    border-left-color: #f87171;
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.2);
}

.glamzn-popular-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced from 12px */
    padding: 8px 10px; /* Reduced from 12px */
    background: #f9fafb;
    border-radius: 8px; /* Reduced from 10px */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dark .glamzn-popular-item {
    background: #1f2937;
}

.glamzn-popular-item:hover {
    background: #fff;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    transform: translateY(-2px);
}

.dark .glamzn-popular-item:hover {
    background: #111827;
    border-color: #f87171;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.2);
}

.glamzn-popular-rank {
    font-size: 16px; /* Reduced from 20px */
    font-weight: 800;
    color: #ef4444;
    min-width: 28px; /* Reduced from 36px */
    height: 28px; /* Reduced from 36px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-radius: 6px; /* Reduced from 8px */
    flex-shrink: 0;
}

.dark .glamzn-popular-rank {
    color: #f87171;
    background: linear-gradient(135deg, #1f2937, #374151);
}

/* Style spécial pour le top 3 */
.glamzn-popular-item:nth-child(1) .glamzn-popular-rank {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-size: 18px; /* Reduced from 22px */
}

.glamzn-popular-item:nth-child(2) .glamzn-popular-rank {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #fff;
    font-size: 17px; /* Reduced from 21px */
}

.glamzn-popular-item:nth-child(3) .glamzn-popular-rank {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-size: 16px; /* Reduced from 20px */
}

.glamzn-popular-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.glamzn-popular-name {
    font-size: 13px; /* Reduced from 14px */
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark .glamzn-popular-name {
    color: #fff;
}

.glamzn-popular-name:hover {
    color: #ef4444;
}

.dark .glamzn-popular-name:hover {
    color: #f87171;
}

.glamzn-popular-category {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dark .glamzn-popular-category {
    color: #9ca3af;
}

.glamzn-popular-category::before {
    content: '→';
    color: #ef4444;
}

.glamzn-popular-posts {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.glamzn-popular-posts::before {
    content: '📄';
}

/* Animation cascade pour les items */
.glamzn-popular-subcategories:hover .glamzn-popular-item {
    animation: popIn 0.4s ease forwards;
    opacity: 0;
}

.glamzn-popular-subcategories:hover .glamzn-popular-item:nth-child(1) { animation-delay: 0.05s; }
.glamzn-popular-subcategories:hover .glamzn-popular-item:nth-child(2) { animation-delay: 0.08s; }
.glamzn-popular-subcategories:hover .glamzn-popular-item:nth-child(3) { animation-delay: 0.11s; }
.glamzn-popular-subcategories:hover .glamzn-popular-item:nth-child(4) { animation-delay: 0.14s; }
.glamzn-popular-subcategories:hover .glamzn-popular-item:nth-child(5) { animation-delay: 0.17s; }
.glamzn-popular-subcategories:hover .glamzn-popular-item:nth-child(6) { animation-delay: 0.2s; }
.glamzn-popular-subcategories:hover .glamzn-popular-item:nth-child(7) { animation-delay: 0.23s; }
.glamzn-popular-subcategories:hover .glamzn-popular-item:nth-child(8) { animation-delay: 0.26s; }
.glamzn-popular-subcategories:hover .glamzn-popular-item:nth-child(9) { animation-delay: 0.29s; }
.glamzn-popular-subcategories:hover .glamzn-popular-item:nth-child(10) { animation-delay: 0.32s; }

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .glamzn-popular-dropdown {
        min-width: 280px !important; /* Reduced from 360px */
        max-width: calc(100vw - 20px) !important; /* Ensure it fits in viewport */
        right: 10px !important;
    }

    .glamzn-popular-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   CATEGORY ICONS & ANIMATIONS
   ===================================================== */

/* Category icon base styles */
.glamzn-cat-icon {
    font-size: 14px; /* Reduced from 16px */
    margin-right: 4px; /* Reduced from 6px */
    transition: all 0.3s ease;
}

/* Pulse animation for Business */
.glamzn-cat-pulse:hover .glamzn-cat-icon {
    animation: categoryPulse 1s ease-in-out infinite;
}

@keyframes categoryPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* Bounce animation for Entertainment */
.glamzn-cat-bounce:hover .glamzn-cat-icon {
    animation: categoryBounce 0.6s ease-in-out infinite;
}

@keyframes categoryBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Shake animation for General News */
.glamzn-cat-shake:hover .glamzn-cat-icon {
    animation: categoryShake 0.5s ease-in-out infinite;
}

@keyframes categoryShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Heartbeat animation for Health */
.glamzn-cat-heartbeat:hover .glamzn-cat-icon {
    animation: categoryHeartbeat 1s ease-in-out infinite;
}

@keyframes categoryHeartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.2); }
    20%, 40% { transform: scale(1); }
}

/* Flash animation for Science */
.glamzn-cat-flash:hover .glamzn-cat-icon {
    animation: categoryFlash 1.5s ease-in-out infinite;
}

@keyframes categoryFlash {
    0%, 50%, 100% { opacity: 1; }
    25% { opacity: 0.3; }
    75% { opacity: 0.6; }
}

/* Swing animation for Sports */
.glamzn-cat-swing:hover .glamzn-cat-icon {
    animation: categorySwing 0.8s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes categorySwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

/* Glow animation for Technology */
.glamzn-cat-glow:hover .glamzn-cat-icon {
    animation: categoryGlow 1.5s ease-in-out infinite;
}

@keyframes categoryGlow {
    0%, 100% {
        filter: drop-shadow(0 0 2px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 8px currentColor);
    }
}

/* Hover effect for categories with icons */
.glamzn-category-link.has-icon:hover {
    transform: translateY(-1px);
}

/* Categories Mobile */
.glamzn-categories-mobile {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.dark .glamzn-categories-mobile {
    background: #111827;
    border-bottom-color: #1f2937;
}

/* Navbar Actions - Clean Icons */
.glamzn-navbar-actions {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    flex-shrink: 0; /* Prevent shrinking */
    min-width: fit-content; /* Ensure icons always visible */
}

.glamzn-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    position: relative;
}

.glamzn-action-btn:hover {
    background: #f9fafb;
    border-color: #4F46E5;
    color: #4F46E5;
}

.dark .glamzn-action-btn {
    border-color: #374151;
    color: #d1d5db;
}

.dark .glamzn-action-btn:hover {
    background: #1f2937;
    border-color: #818cf8;
    color: #818cf8;
}

/* Dark Mode Toggle - Clean Button */
.glamzn-darkmode-btn {
    cursor: pointer;
    position: relative;
}

.glamzn-darkmode-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 10;
}

.glamzn-darkmode-btn i {
    font-size: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Show moon icon by default (light mode) */
.glamzn-dark-icon {
    display: block;
}

.glamzn-light-icon {
    display: none;
}

/* Show sun icon in dark mode */
.dark .glamzn-dark-icon {
    display: none;
}

.dark .glamzn-light-icon {
    display: block;
}

html.dark .glamzn-dark-icon,
body.dark .glamzn-dark-icon,
[data-theme="dark"] .glamzn-dark-icon {
    display: none;
}

html.dark .glamzn-light-icon,
body.dark .glamzn-light-icon,
[data-theme="dark"] .glamzn-light-icon {
    display: block;
}

/* Animation on toggle */
.glamzn-darkmode-btn:active i {
    transform: rotate(180deg);
}

/* Login Button */
.glamzn-login-trigger {
    padding: 0 20px;
    border-radius: 8px;
    width: auto;
    font-weight: 600;
    font-size: 14px;
    gap: 8px;
}

.glamzn-login-trigger span {
    font-weight: 600;
}

/* User Dropdown - Minimal & Modern */
.glamzn-user-dropdown {
    position: relative;
}

/* Add bridge to prevent dropdown from closing */
.glamzn-user-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    z-index: 9998;
    pointer-events: auto;
    display: none;
}

.glamzn-user-dropdown:hover::before {
    display: block;
}

.glamzn-user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.dark .glamzn-user-trigger {
    border-color: #374151;
    color: #fff;
}

.glamzn-user-trigger:hover {
    background: #f9fafb;
    border-color: #4F46E5;
}

.dark .glamzn-user-trigger:hover {
    background: #1f2937;
    border-color: #818cf8;
}

.glamzn-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.dark .glamzn-user-avatar {
    border-color: #374151;
}

.glamzn-user-trigger i {
    font-size: 12px;
    opacity: 0.6;
}

/* Dropdown Menu */
.glamzn-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 8px;
    display: none;
    z-index: 1000;
}

.dark .glamzn-dropdown-menu {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.glamzn-user-dropdown:hover .glamzn-dropdown-menu,
.glamzn-dropdown-menu:hover {
    display: block;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glamzn-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.dark .glamzn-dropdown-menu a {
    color: #d1d5db;
}

.glamzn-dropdown-menu a:hover {
    background: #f9fafb;
    color: #4F46E5;
}

.dark .glamzn-dropdown-menu a:hover {
    background: #111827;
    color: #818cf8;
}

.glamzn-dropdown-menu a i {
    font-size: 18px;
    opacity: 0.7;
}

.glamzn-dropdown-menu hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.dark .glamzn-dropdown-menu hr {
    border-top-color: #374151;
}

/* =====================================================
   NIVEAU 3 : CATEGORIES - MINIMAL & ELEGANT
   ===================================================== */

.glamzn-categories-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.dark .glamzn-categories-navbar {
    background: #111827;
    border-bottom-color: #1f2937;
}

.glamzn-categories-navbar > div {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.glamzn-categories-menu {
    overflow-x: auto;
    overflow-y: visible !important;
    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;
    gap: 0;
    min-height: 50px;
}

.glamzn-category-item {
    position: relative;
    flex-shrink: 0;
}

.glamzn-category-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    border-radius: 8px;
}

.dark .glamzn-category-link {
    color: #9ca3af;
}

/* 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;
}

.dark .glamzn-category-link::before {
    background: rgba(165, 180, 252, 0.12);
}

/* Underline effect */
.glamzn-category-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #6366F1);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    z-index: 0;
}

.dark .glamzn-category-link::after {
    background: linear-gradient(90deg, #818cf8, #a5b4fc);
}

.glamzn-category-link:hover {
    color: #4F46E5 !important;
}

.dark .glamzn-category-link:hover {
    color: #a5b4fc !important;
}

.glamzn-category-link:hover::before {
    opacity: 1;
}

.glamzn-category-link:hover::after {
    width: calc(100% - 40px);
}

.glamzn-category-link i {
    font-size: 10px;
    opacity: 0.5;
    transition: transform 0.2s;
}

.glamzn-category-item:hover .glamzn-category-link i {
    transform: rotate(180deg);
}

/* Add invisible bridge between link and dropdown */
.glamzn-category-item::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 9998;
    pointer-events: auto;
    display: none;
}

.glamzn-category-item:hover::before {
    display: block;
}

/* Category Dropdown - Professional Design */
.glamzn-category-dropdown {
    position: absolute;
    top: calc(100% + 8px) !important;
    left: 0;
    min-width: 240px;
    max-width: 320px;
    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: 9999 !important;
    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);
}

/* Show dropdown on hover with delay */
.glamzn-category-item:hover .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 li {
    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;
}

/* Add subtle animation for each item */
.glamzn-category-item:hover .glamzn-category-dropdown li {
    animation: slideInItem 0.3s ease forwards;
    opacity: 0;
}

.glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(1) { animation-delay: 0.05s; }
.glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(2) { animation-delay: 0.08s; }
.glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(3) { animation-delay: 0.11s; }
.glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(4) { animation-delay: 0.14s; }
.glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(5) { animation-delay: 0.17s; }
.glamzn-category-item:hover .glamzn-category-dropdown li:nth-child(n+6) { animation-delay: 0.2s; }

@keyframes slideInItem {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================================
   STICKY BEHAVIOR - Smooth
   ===================================================== */

.uc-navbar-sticky .glamzn-topbar-pro {
    display: none;
}

.uc-navbar-sticky .glamzn-main-navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.dark .uc-navbar-sticky .glamzn-main-navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   RESPONSIVE - Mobile First
   ===================================================== */

@media (max-width: 1200px) {
    .glamzn-topbar-content,
    .glamzn-navbar-content,
    .glamzn-categories-navbar > div {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .glamzn-logo-text {
        font-size: 24px;
    }

    .glamzn-category-link {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .glamzn-topbar-pro {
        padding: 6px 0;
    }

    .glamzn-topbar-content {
        padding: 0 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .glamzn-topbar-left {
        flex: 1 1 100%;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .glamzn-datetime-compact {
        font-size: 11px;
        gap: 4px;
        flex-shrink: 0;
    }

    .glamzn-datetime-compact i {
        font-size: 12px;
    }

    .glamzn-weather-compact {
        font-size: 11px;
        gap: 4px;
        flex-shrink: 0;
    }

    .glamzn-weather-compact i {
        font-size: 12px;
    }

    .glamzn-location-btn {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .glamzn-topbar-right {
        flex: 1 1 100%;
        justify-content: center;
        gap: 4px;
        padding-top: 4px;
        border-top: 1px solid #f3f4f6;
    }

    .dark .glamzn-topbar-right {
        border-top-color: #1e293b;
    }

    .glamzn-social-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .glamzn-main-navbar {
        padding: 10px 0;
    }

    .glamzn-navbar-content {
        padding: 0 12px;
        gap: 12px;
    }

    .glamzn-logo-section {
        min-width: auto;
        flex: 1;
    }

    .glamzn-logo {
        gap: 8px;
    }

    .glamzn-logo img {
        height: 26px;
    }

    .glamzn-logo-text {
        font-size: 18px;
    }

    .glamzn-navbar-actions {
        gap: 4px;
        flex-shrink: 0;
    }

    .glamzn-action-btn,
    .glamzn-mobile-trigger {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .glamzn-user-avatar {
        width: 28px;
        height: 28px;
    }

    .glamzn-categories-list {
        gap: 0;
    }

    .glamzn-category-link {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .glamzn-main-navbar {
        padding: 8px 0;
    }

    .glamzn-navbar-content {
        padding: 0 10px;
        gap: 8px;
    }

    .glamzn-logo {
        gap: 6px;
    }

    .glamzn-logo img {
        height: 24px;
    }

    .glamzn-logo-text {
        font-size: 16px;
    }

    .glamzn-navbar-actions {
        gap: 3px;
    }

    .glamzn-action-btn,
    .glamzn-mobile-trigger {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .glamzn-user-avatar {
        width: 26px;
        height: 26px;
    }

    .glamzn-user-trigger span {
        display: none;
    }

    .glamzn-topbar-content {
        padding: 0 10px;
        gap: 6px;
    }

    .glamzn-datetime-compact,
    .glamzn-weather-compact {
        font-size: 10px;
        gap: 3px;
    }

    .glamzn-datetime-compact i,
    .glamzn-weather-compact i {
        font-size: 11px;
    }

    .glamzn-topbar-right {
        gap: 3px;
        padding-top: 3px;
    }

    .glamzn-social-icon {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .glamzn-main-navbar {
        padding: 6px 0;
    }

    .glamzn-navbar-content {
        padding: 0 8px;
        gap: 6px;
    }

    .glamzn-mobile-trigger {
        width: 32px;
        height: 32px;
        font-size: 16px;
        order: -1;
    }

    .glamzn-logo-section {
        order: 0;
    }

    .glamzn-logo {
        gap: 5px;
    }

    .glamzn-logo img {
        height: 22px;
    }

    .glamzn-logo-text {
        font-size: 14px;
        letter-spacing: -0.5px;
    }

    /* Optionally hide logo text on very small screens to save space */
    @media (max-width: 380px) {
        .glamzn-logo img {
            height: 28px;
        }

        .glamzn-logo-text {
            display: none;
        }
    }

    .glamzn-navbar-actions {
        gap: 2px;
        order: 1;
    }

    .glamzn-action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .glamzn-user-avatar {
        width: 24px;
        height: 24px;
    }

    .glamzn-user-trigger i {
        display: none;
    }

    .glamzn-topbar-pro {
        padding: 5px 0;
    }

    .glamzn-topbar-content {
        padding: 0 8px;
        gap: 5px;
    }

    .glamzn-datetime-compact,
    .glamzn-weather-compact {
        font-size: 9px;
        gap: 2px;
    }

    .glamzn-datetime-compact i,
    .glamzn-weather-compact i {
        font-size: 10px;
    }

    .glamzn-location-btn {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .glamzn-topbar-right {
        gap: 2px;
        padding-top: 3px;
    }

    .glamzn-social-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* =====================================================
   ANIMATIONS & TRANSITIONS
   ===================================================== */

.glamzn-categories-list,
.glamzn-navbar-actions,
.glamzn-topbar-right {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    .glamzn-topbar-pro,
    .glamzn-navbar-actions,
    .glamzn-mobile-trigger {
        display: none !important;
    }
}
