/* ========================================
   PREMIUM NAVIGATION & HEADER
   ======================================== */

/* Smooth Scrolling (CSS-based) */
html {
    scroll-behavior: smooth;
}

/* Fixed Sticky Header */
.header-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-premium.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.12);
}

.navbar-premium-new {
    padding: 15px 0;
    transition: padding 0.3s ease;
}

.header-premium.scrolled .navbar-premium-new {
    padding: 10px 0;
}

/* Logo */
.logo-premium {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 20px;
}

/* Desktop Navigation */
.nav-menu-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-top-row {
    gap: 16px;
}

.nav-menu-premium .nav-item-premium {
    position: relative;
}

.nav-item-search {
    margin-left: 10px;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-search-form:focus-within {
    background: #ffffff;
    border-color: rgba(0, 184, 148, 0.35);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.12);
}

.nav-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    color: #2D3436;
    width: 160px;
}

.nav-search-input::placeholder {
    color: #a0a0a0;
}

.nav-search-btn {
    border: none;
    background: transparent;
    color: #00B894;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-search-btn:hover {
    transform: scale(1.05);
}

.nav-menu-premium .nav-link-premium {
    color: #2D3436;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    cursor: pointer;
}

.nav-menu-premium .nav-link-premium:hover,
.nav-menu-premium .nav-link-premium.active {
    color: #00B894;
    background: rgba(0, 184, 148, 0.1);
}

.nav-menu-premium .nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    transition: width 0.3s ease;
}

.nav-menu-premium .nav-link-premium:hover::after,
.nav-menu-premium .nav-link-premium.active::after {
    width: 60%;
}

/* CTA Button */
.btn-nav-cta {
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    cursor: pointer;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.3);
    color: white;
}

/* Secondary CTA Button */
.btn-nav-cta-secondary {
    background: transparent;
    color: #00B894;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #00B894;
    display: inline-block;
    cursor: pointer;
}

.btn-nav-cta-secondary:hover {
    background: #00B894;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 4px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
}

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

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

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

.drawer-search-form {
    padding: 10px 20px 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.drawer-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f3f5;
    border-radius: 14px;
    padding: 10px 14px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.drawer-search-inner:focus-within {
    background: #ffffff;
    border-color: rgba(0, 184, 148, 0.35);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.12);
}

.drawer-search-inner i {
    color: #00B894;
}

.drawer-search-inner input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 15px;
}

.drawer-search-clear {
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.drawer-search-clear:hover {
    color: #F5576C;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-drawer.active {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    padding: 25px 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 800;
    color: #2D3436;
}

.drawer-close {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    color: #2D3436;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    background: #e9ecef;
    border-color: #00B894;
    color: #00B894;
}

.drawer-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.drawer-menu .nav-item-premium {
    border-bottom: 1px solid #f0f0f0;
}

.drawer-menu .nav-link-premium {
    color: #2D3436;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drawer-menu .nav-link-premium i {
    margin-right: 15px;
    font-size: 18px;
    width: 25px;
}

.drawer-menu .nav-link-premium:hover,
.drawer-menu .nav-link-premium.active {
    background: rgba(0, 184, 148, 0.1);
    color: #00B894;
    padding-left: 30px;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

/* Drawer Menu Links */
.drawer-menu-link {
    color: #2D3436;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.drawer-menu-link:hover {
    background: rgba(0, 184, 148, 0.1);
    color: #00B894;
    padding-left: 25px;
}

.drawer-menu-link i:first-child {
    margin-right: 15px;
    font-size: 18px;
    width: 25px;
}

.drawer-menu-link.logout-link {
    color: #F5576C;
}

.drawer-menu-link.logout-link:hover {
    background: rgba(245, 87, 108, 0.1);
    color: #F5576C;
}

.drawer-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 8px 0;
}

.drawer-logout-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.drawer-cta {
    display: block;
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drawer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
    color: white;
}

.drawer-cta-secondary {
    display: block;
    background: transparent;
    color: #00B894;
    border: 2px solid #00B894;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drawer-cta-secondary:hover {
    background: #00B894;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
}

/* Custom User Dropdown */
.custom-user-dropdown {
    position: relative;
}

.custom-user-btn {
    background: linear-gradient(135deg, #00B894 0%, #F5576C 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2);
}

.custom-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}

.custom-user-btn .dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-user-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #2D3436;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.custom-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    color: #00B894;
    padding-left: 25px;
}

.custom-dropdown-item i {
    font-size: 16px;
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-dropdown-item.logout-btn {
    color: #F5576C;
}

.custom-dropdown-item.logout-btn:hover {
    background: rgba(245, 87, 108, 0.1);
    color: #F5576C;
}

.custom-dropdown-item-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.custom-dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 991px) {

    .nav-menu-premium,
    .btn-nav-cta,
    .custom-user-dropdown {
        display: none;
    }

    .nav-item-search {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .logo-premium {
        font-size: 22px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .mobile-drawer {
        width: 260px;
    }

    .drawer-search-inner {
        min-width: 120px;
        padding: 7px 10px;
    }

    .drawer-search-inner input {
        width: 90px;
        font-size: 13px;
    }
}

/* Custom Category Dropdown */
.custom-category-dropdown {
    position: relative;
}

.custom-category-btn {
    background: transparent;
    color: #2D3436;
    padding: 8px 15px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.custom-category-btn:hover {
    color: #00B894;
}

.custom-category-btn .category-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-category-btn.active .category-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-category-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 8px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 400px;
    overflow-y: auto;
}

.custom-category-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-category-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #2D3436;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.custom-category-item:hover {
    background: rgba(0, 184, 148, 0.1);
    color: #00B894;
    padding-left: 25px;
}

.custom-category-item i {
    font-size: 18px;
    width: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Category Submenu */
.mobile-category-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-category-submenu.active {
    max-height: 500px;
}

.mobile-category-submenu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-category-submenu .submenu-link {
    padding-left: 40px;
    font-size: 14px;
}

.mobile-category-submenu .submenu-link i {
    font-size: 16px;
}

.mobile-category-submenu .bi-chevron-down.rotate {
    transform: rotate(180deg);
}

/* Responsive Category Dropdown */
@media (max-width: 991px) {
    .custom-category-dropdown {
        display: none;
    }
}

/* Prevent scroll jump */
section {
    scroll-margin-top: 70px;
}
