/* ===== MODERN NAVIGATION STYLES ===== */
/* File: assets/front/css/modern-navbar.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f3efe7;
    color: #161501;
    overflow-x: hidden;
    padding-top: 40px; /* Account for benefit bar */
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #1a1f2e;
}
::-webkit-scrollbar-thumb {
    background: #ffb347;
    border-radius: 10px;
}

/* Benefit Bar */
.benefit-bar {
    background: #FF6A00;
    color: rgb(245, 242, 240);
    text-align: center;
    font-size: 13px;
    padding: 8px 10px;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
}

/* Modern Navbar - Dark Frosted Glass Effect */
.navbar-modern {
    position: fixed;
    top: 40px; /* Below benefit bar */
    left: 0;
    width: 100%;
    padding: 0.8rem 2rem;
    background: rgba(0, 0, 0, 0.65); /* Darker black base */
    backdrop-filter: blur(0px); /* Restored blur for glass effect */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled state - Frosted bathroom glass effect */
.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Logo Styles */
.logo-modern {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-modern img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(19, 19, 18, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-modern img:hover {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(248, 148, 7, 0.85));
}

.logo-modern span {
    background: linear-gradient(135deg, #FFF6E5, #FFD6A5);
    background-clip: text;
    -webkit-background-clip: text;
    color: white;
    font-weight: 800;
    font-size: 1.9rem;
}

/* Navigation Links */
.nav-links-modern {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links-modern a {
    color: #FF6A00;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links-modern a:hover {
    color: #ff8533;
}

/* Cart Icon */
.cart-icon-modern {
    position: relative;
    font-size: 1.2rem;
    cursor: pointer;
    color: #FF6A00;
}

.cart-count-modern {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #FF6A00;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
    color: #fff;
}

/* Menu Toggle (Mobile) */
.menu-toggle-modern {
    display: none;
    font-size: 1.6rem;
    color: #FF6A00;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    transition: transform 0.2s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle-modern:active {
    transform: scale(0.95);
}

/* Mobile Menu */
.mobile-menu-modern {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(6, 8, 18, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-modern.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 106, 0, 0.3);
}

.mobile-menu-header h4 {
    color: #FF6A00;
    font-size: 1.3rem;
    margin: 0;
}

.mobile-menu-close {
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mobile-menu-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.6rem 0;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.mobile-menu-links a:hover {
    color: #FF6A00;
    padding-left: 8px;
}

.mobile-menu-links a:active {
    opacity: 0.7;
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    display: none;
    cursor: pointer;
}

.mobile-overlay.active {
    display: block;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .mobile-menu-modern,
    .mobile-overlay {
        display: none;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar-modern {
        padding: 0.8rem 1.5rem;
        top: 40px;
    }
    
    .logo-modern img {
        width: 35px;
        height: 35px;
    }
    
    .nav-links-modern {
        gap: 1.5rem;
    }
    
    .nav-links-modern a {
        font-size: 0.85rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .benefit-bar {
        font-size: 10px;
        padding: 8px 10px;
        line-height: 1.4;
        position: fixed;
        top: 0;
        z-index: 1002;
    }
    
    .navbar-modern {
        padding: 0.6rem 1rem;
        top: 38px;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
    }
    
    .navbar-modern.scrolled {
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(12px);
    }
    
    .menu-toggle-modern {
        display: flex;
    }
    
    .nav-links-modern {
        display: none;
    }
    
    .logo-modern img {
        width: 32px;
        height: 32px;
    }
    
    .logo-modern span {
        font-size: 1rem;
    }
}