/**
 * Header Navigation Styles
 * OS 19/Jul
 * Clean, monochromatic navigation with dropdown menus
 */

/* Critical: Fix Tailwind gap utility */
.gap-x-\[32px\] {
    gap: 0 32px !important;
}

.gap-x-\[40px\] {
    gap: 0 40px !important;
}

/* Main Navigation Styles */
.main-navigation {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
}

.main-navigation > * {
    margin: 0 16px;
}

.main-navigation > *:first-child {
    margin-left: 0;
}

.main-navigation > *:last-child {
    margin-right: 0;
}

.nav-item {
    position: relative;
    display: block;
}

.nav-link {
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 16px;
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: lowercase;
    font-weight: 300;
}

/* Hover underline effect - removed */

/* Dropdown Styles */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #f0ece8;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 50;
    text-transform: lowercase;
}

/* Align right for last item (My Den) */
.nav-item:last-child .dropdown {
    left: auto;
    right: 0;
}

/* Show dropdown on hover */
.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown links */
.dropdown a {
    display: block;
    padding: 10px 16px;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-family: 'Poppins';
    font-weight: 200;
}

.dropdown a:hover {
    background-color: #f5f5f5;
}

/* Divider in dropdown */
.dropdown hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

/* Live indicator pulse animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.text-red-500 {
    color: #ef4444;
    animation: pulse 2s ease-in-out infinite;
}

/* Padlock style */
.nav-link .text-sm {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Hide desktop nav on mobile, show hamburger */
@media (max-width: 768px) {
    .main-navigation {
        display: none !important;
    }
    
    .mob-nav-button {
        display: flex !important;
    }
}

/* Show desktop nav on larger screens, hide hamburger */
@media (min-width: 769px) {
    .main-navigation {
        display: flex !important;
    }
    
    .mob-nav-button {
        display: none !important;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    
    .nav-section:last-child {
        border-bottom: none;
    }
    
    .nav-section h3 {
        color: #4a4a4a;
        text-decoration: none;
        padding: 8px 0;
        transition: color 0.2s ease;
        font-size: 1em;
        text-transform: uppercase;
        font-family: 'Poppins';
        font-weight: 600;
    }
    
    .nav-section a {
        color: #4a4a4a;
        text-decoration: none;
        padding: 8px 0;
        transition: color 0.2s ease;
        font-size: 1em;
        text-transform: lowercase !important;
        font-family: 'Poppins';
        font-weight: 300;
    }
    
    .nav-section a:hover {
        color: #000;
    }
    
    /* OS 01-Sep-2025: Make Read, Practice, Watch bold and uppercase in mobile menu */
    .nav-section a.mobile-section-header {
        text-transform: uppercase !important;
        font-weight: 700 !important;
    }
.mob-nav{
    background: linear-gradient(45deg, #ffffff, #f0ece8);
}
.nav-section.start-here {
    margin-top: -20px;
}
}

/* Clean up header structure */
header .inside {
    background: transparent;
    border-radius: 0;
    transition: none;
    padding: 0;
}

/* Override problematic scrolled styles from main.css */
header.scrolled .inside {
    transform: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Header height adjustments */
header .wrapper {
    padding-top: 40px !important; 
    padding-bottom: 27px !important;
    transition: padding 0.3s ease;
}

/* Further reduce height when scrolled */
header.scrolled .wrapper {
    padding-top: 20px !important;  /* Additional 15% reduction */
    padding-bottom: 15px !important; /* Additional 15% reduction */
}

/* Header sticky behavior */
header.sticky {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-radius: 0px 0px 10px 10px;
}

/* Utility navigation for logged out users */
.nav-link.subscribe-btn {
    border: 1px solid #e1dfdd;
    border-radius: 50px;
    background: linear-gradient(45deg, #f0ece8, #f0f0f06e);
    padding: 10px 24px;
    transition: opacity 0.3s ease;
    margin-left: 8px;
    font-weight: 500;
}

.nav-link.subscribe-btn:hover {
    opacity: 0.8;
}

.nav-link.subscribe-btn::after {
    display: none;
}

/* Focus states for accessibility */
.nav-link:focus,
.dropdown a:focus {
  
    outline-offset: 2px;
}

/* Prevent layout shift on hover */
.nav-item {
    will-change: transform;
}

/* Arrow indicator for dropdowns */
.nav-link[aria-expanded="true"]::before {
    content: '▴';
    position: absolute;
    right: -16px;
    font-size: 0.75rem;
}
.nav-item.start-here {
    border: 1px solid #e1dfdd;
    border-radius: 50px;
    background: linear-gradient(45deg, #f0ece8, #f0f0f06e);
}
/* Active page indicator */
.nav-link.active {
    font-weight: 400;
}

/* Typography improvements */
.nav-item {
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .main-navigation {
        gap: 24px !important;
    }
}

/* Smooth transitions for all interactive elements */
.nav-item,
.nav-link,
.dropdown,
.dropdown a {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
} 