/**
 * Optic Cabo - Menu Styles
 * menu-styles.css
 * Navigation menu styles with golden theme
 */

/* ==================== NAVBAR BASE ==================== */
.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.container-navbar {
    position: relative;
}

/* ==================== MENU TOGGLE (HAMBURGER) ==================== */
.navbar #menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.navbar #menu-toggle:hover {
    color: #D4AF37;
}

.navbar #menu-toggle.active {
    color: #D4AF37;
}

/* ==================== DESKTOP MENU ==================== */
.navbar .menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.navbar .menu li {
    margin: 0;
}

.navbar .menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    text-transform: capitalize;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    display: block;
    position: relative;
    border-radius: 5px;
}

/* Hover state - Golden */
.navbar .menu li a:hover {
    color: #D4AF37;
}

/* Active/Selected state - Golden */
.navbar .menu li a.active,
.navbar .menu li a:focus,
.navbar .menu li a.selected {
    color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.1);
}

/* Underline effect on hover */
.navbar .menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .menu li a:hover::after,
.navbar .menu li a.active::after {
    width: 80%;
}

/* ==================== MOBILE MENU ==================== */
@media (max-width: 768px) {
    .navbar #menu-toggle {
        display: block;
    }
    
    .navbar .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        z-index: 1000;
    }
    
    .navbar .menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 1rem 0;
    }
    
    .navbar .menu li {
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .navbar .menu li:last-child {
        border-bottom: none;
    }
    
    .navbar .menu li a {
        padding: 1rem 2rem;
    }

    .navbar .menu li a:hover,
    .navbar .menu li a.active {
        background-color: rgba(212, 175, 55, 0.1);
        color: #D4AF37;
    }

    .navbar .menu li a::after {
        display: none;
    }
}

/* ==================== LINK FOCUS STYLES (ACCESSIBILITY) ==================== */
.navbar .menu li a:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Remove default blue highlight on click/tap */
.navbar .menu li a {
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
}

/* Selection color */
::selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #1a1a2e;
}

::-moz-selection {
    background-color: rgba(212, 175, 55, 0.3);
    color: #1a1a2e;
}