/* ========================================
   UNIFIED TOP NAVIGATION - From Landing Page
   Import this CSS file on ALL pages for consistent navigation
   ======================================== */

/* Top Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    transition: all 250ms ease-in-out;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    transition: transform 250ms ease-in-out;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    padding: 0.75rem 1.25rem;
    color: #d4b896;
    text-decoration: none;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 250ms ease-in-out;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-cart {
    position: relative;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 250ms ease-in-out;
}

.nav-cart:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.cart-count-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ff6b35, #ff9500);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9999px;
    display: none;
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.5);
}

/* Account Dropdown */
.nav-account-dropdown {
    position: relative;
}

.nav-account-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    color: #1a0f00;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
    transition: all 250ms ease-in-out;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.6);
}

.nav-account-btn svg {
    transition: transform 250ms ease-in-out;
}

.nav-account-dropdown.active .nav-account-btn svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(26, 31, 46, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 250ms ease-in-out;
    z-index: 1000;
}

.nav-account-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #d4b896;
    text-decoration: none;
    transition: all 200ms ease-in-out;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffffff;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
}

.dropdown-item.logout {
    color: #ff4d4d;
}

.dropdown-item.logout:hover {
    background: rgba(255, 77, 77, 0.1);
}

/* Login/Register buttons */
.nav-login,
.nav-register {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 250ms ease-in-out;
}

.nav-login {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffd700;
}

.nav-login:hover {
    background: #ffd700;
    color: #1a0f00;
    transform: translateY(-2px);
}

.nav-register {
    background: linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    color: #1a0f00;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.nav-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.6);
}

.language-switcher {
    position: relative;
}

.language-select {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 250ms ease-in-out;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffd700;
}

.language-select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.language-select option {
    background: rgba(15, 10, 5, 0.95);
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 250ms ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

    .nav-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .nav-account,
    .nav-logout {
        display: none;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .language-select {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .nav-cart {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a0f00;
}

::-webkit-scrollbar-thumb {
    background: #6b4423;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}
