/**
 * navigation.css - Navigation and Dropdown Styles
 * Hamburger menu activates at 900px (covers iPad Air at 820px)
 */

/* ============================================
   MAIN NAVIGATION CONTAINER
   ============================================ */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    gap: 1.5rem;
}

/* ============================================
   LOGO
   ============================================ */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--brand-gold);
    text-decoration: none;
    font-family: var(--header-font-family);
    font-weight: bold;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 70px;
    width: auto;
}

.nav-logo-text {
    font-size: 1.8rem;
    white-space: nowrap;
}

.nav-logo:hover {
    color: var(--brand-gold);
}

/* ============================================
   MAIN MENU
   ============================================ */
.nav-menu {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: var(--light-text);
    font-weight: 400;
    font-size: 1rem;
    text-decoration: none;
    transition: color var(--transition-normal);
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--brand-gold);
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Dropdown arrow - inline after text */
.dropdown-toggle::after {
    content: "▼";
    font-size: 0.55em;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-toggle::after,
.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    z-index: var(--z-dropdown);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: var(--light-text);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color var(--transition-fast);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--brand-gold);
}

/* Desktop hover support - only above mobile breakpoint */
@media (min-width: 901px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Click support (JS adds .active class) */
.dropdown.active .dropdown-menu {
    display: block;
}

/* ============================================
   CART LINK
   ============================================ */
.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-count {
    background: var(--brand-gold);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-pill);
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    color: var(--brand-gold);
}

/* ============================================
   RESPONSIVE - 900px AND BELOW
   Hamburger menu activates (covers iPad Air 820px)
   ============================================ */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-logo-img {
        height: 60px;
    }
    
    .nav-logo-text {
        font-size: 1.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-md);
        align-items: stretch;
    }

    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
    }
    
    /* Mobile Dropdown */
    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-toggle::after {
        margin-left: auto;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 0;
        margin-top: 0;
        border-radius: 0;
    }

    .dropdown-menu a {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Cart link on mobile */
    .cart-link {
        justify-content: flex-start;
    }
}

/* ============================================
   RESPONSIVE - SMALL TABLETS (768px)
   ============================================ */
@media (max-width: 768px) {
    .nav-logo-img {
        height: 50px;
    }
    
    .nav-logo-text {
        font-size: 1.3rem;
    }
}

/* ============================================
   RESPONSIVE - PHONES (480px and below)
   ============================================ */
@media (max-width: 480px) {
    .nav-content {
        padding: 0.4rem 0;
    }
    
    .nav-logo-img {
        height: 40px;
    }
    
    .nav-logo-text {
        font-size: 1.1rem;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
}
