/**
 * ONE NIGHTCLUB DUBAI - Navigation Styles
 * Version: 1.0.0
 * Last Updated: 2025-09-26
 */

/* Enhanced Navigation Styles */

/* Header positioning and styling */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(18, 18, 18, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header.hidden {
    transform: translateY(-100%);
}

/* Header inner container */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo styling */
.logo {
    flex-shrink: 0;
    z-index: 1001;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Main navigation */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list li {
    margin: 0 10px;
    position: relative;
}

.nav-list a {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
    background: rgba(106, 17, 203, 0.1);
}

/* Navigation item underline effect */
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 20px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 20px;
    flex-shrink: 0;
}

.current-lang {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    justify-content: center;
}

.current-lang:hover {
    background: rgba(106, 17, 203, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.current-lang::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.language-switcher:hover .current-lang::after {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    min-width: 120px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    margin: 0;
}

.lang-dropdown a {
    display: block;
    padding: 8px 15px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: rgba(106, 17, 203, 0.2);
    color: var(--primary-color);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 15px;
        height: 70px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .menu-toggle {
        display: flex;
        order: 3;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-list a {
        display: block;
        width: 100%;
        padding: 15px 30px;
        font-size: 16px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list a:hover,
    .nav-list a.active {
        background: rgba(106, 17, 203, 0.2);
        transform: translateX(5px);
    }
    
    .nav-list a::after {
        display: none;
    }
    
    .language-switcher {
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    
    .current-lang {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 40px;
    }
    
    .lang-dropdown {
        right: 0;
        min-width: 100px;
    }
    
    .lang-dropdown a {
        padding: 6px 12px;
        font-size: 12px;
        border-bottom: none;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .header-inner {
        height: 60px;
        padding: 0 10px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav-list {
        width: 90%;
        padding-top: 80px;
    }
    
    .nav-list a {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .current-lang {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 35px;
    }
    
    .menu-toggle {
        width: 25px;
        height: 25px;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2px;
    }
}

/* Navigation overlay for mobile */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-overlay {
        display: block;
    }
    
    .menu-open .menu-overlay {
        display: block;
    }
}

/* Smooth scroll behavior for navigation links */
html {
    scroll-behavior: smooth;
}

/* Focus states for keyboard navigation */
.keyboard-navigation .nav-list a:focus,
.keyboard-navigation .current-lang:focus,
.keyboard-navigation .menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 20px;
}

/* Navigation animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.nav-list.opening {
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-list.closing {
    animation: slideOutRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Navigation item stagger animation for mobile */
@media (max-width: 768px) {
    .nav-list.active li {
        opacity: 0;
        animation: fadeInUp 0.3s ease forwards;
    }
    
    .nav-list.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-list.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-list.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-list.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-list.active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-list.active li:nth-child(6) { animation-delay: 0.6s; }
}

/* Breadcrumb navigation */
.breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list .current {
    color: #ffffff;
    font-weight: 500;
}

/* Sticky navigation enhancements */
.site-header.sticky {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* RTL support for navigation */
[dir="rtl"] .nav-list a::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(-6px, 6px);
}

[dir="rtl"] .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(-6px, -6px);
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .site-header {
        background: #000000;
        border-bottom: 2px solid #ffffff;
    }
    
    .nav-list a {
        color: #ffffff;
        border: 1px solid transparent;
    }
    
    .nav-list a:hover,
    .nav-list a.active {
        background: #ffffff;
        color: #000000;
        border: 1px solid #ffffff;
    }
    
    .current-lang {
        background: #ffffff;
        color: #000000;
        border: 2px solid #ffffff;
    }
}
