/**
 * 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;
}

/* Vertical divider styling */
.bg-\[\#D0D0D0\] {
    background-color: #D0D0D0 !important;
}

/* Header Logo - 24px height, maintain aspect ratio */
header img[alt="Walk the Dragon"] {
    height: 24px !important;
    width: auto !important;
}

/* Search icon - lighter gray by default, black on hover */
header .wtd-search-toggle {
    color: #797979 !important;
    opacity: 1 !important;
    transition: color 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

header .wtd-search-toggle:hover {
    color: #000000 !important;
    opacity: 1 !important;
}

header .wtd-search-toggle svg {
    stroke: currentColor;
    margin: 0 !important;
}

/* Main Navigation Styles - Force exactly 32px gap between tabs */
.main-navigation {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
    row-gap: 32px !important;
    column-gap: 32px !important;
}

.main-navigation > * {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.main-navigation > *:not(:first-child) {
    margin-left: 0 !important;
}

.main-navigation .nav-item {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.main-navigation .nav-link {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

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

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

.nav-link:hover {
    color: #000000;
}

/* 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 container padding in header - use wrapper padding instead */
header .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

/* Ensure Corporate/Team section is visible when logged out */
header .wrapper > div:first-child {
    display: flex;
    align-items: center;
    gap: 40px;
}

@media (max-width: 767px) {
    header .wrapper > div:first-child.hidden {
        display: none !important;
    }
}

@media (min-width: 768px) {
    header .wrapper > div:first-child.hidden {
        display: flex !important;
    }
}

/* Corporate and Team links styling - ensure lowercase */
header .nav-link {
    text-transform: lowercase;
}

/* Vertical divider in header */
header .wrapper > div:first-child > div[style*="background-color: #D0D0D0"] {
    width: 1px !important;
    height: 32px !important;
    background-color: #D0D0D0 !important;
    flex-shrink: 0;
}

/* Mobile logo - only show on mobile, hide on desktop */
.mobile-logo-only {
    display: none !important;
}

@media (max-width: 767px) {
    .mobile-logo-only {
        display: block !important;
    }
    
    /* Hide desktop logo sections on mobile */
    header .wrapper > div:first-child.hidden {
        display: none !important;
    }
}

/* 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 - 32px padding, hug content, no rounded corners */
header {
    border-radius: 0 !important;
}

header .wrapper {
    padding: 24px 32px !important;
    transition: padding 0.3s ease;
}

/* Further reduce height when scrolled */
header.scrolled .wrapper {
    padding: 16px 32px !important;
}

/* Header sticky behavior - no rounded corners */
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: 0;
}

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

.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: 12px;
    background: linear-gradient(45deg, #f0ece8, #f0f0f06e);
}
/* Active page indicator - bottom border with center-outward animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #000000;
    transform: translateX(-50%);
    transition: width 0.3s ease, left 0.3s ease, transform 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

.nav-link.active::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

.nav-link.active {
    color: #000000;
    font-weight: 500;
}

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

/* Responsive adjustments - maintain 32px gap on desktop */
@media (min-width: 768px) {
    .main-navigation {
        gap: 32px !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);
} 