/**
 * BabyTums Premium Navbar - The Most Beautiful Navbar Ever
 * Modern, elegant, and feature-rich navigation system
 */

/* ===== PREMIUM NAVBAR BASE ===== */
.bt-premium-navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 217, 227, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.bt-premium-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(201, 217, 227, 0.1) 0%,
        rgba(249, 231, 235, 0.1) 25%,
        rgba(216, 246, 223, 0.1) 50%,
        rgba(234, 233, 213, 0.1) 75%,
        rgba(235, 236, 236, 0.1) 100%);
    pointer-events: none;
}

.bt-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
    z-index: 2;
}

/* ===== BRAND SECTION ===== */
.bt-brand-section {
    flex-shrink: 0;
}

.bt-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.bt-brand-link:hover {
    transform: scale(1.02);
    text-decoration: none;
}

.bt-logo-container {
    position: relative;
    margin-right: 1rem;
}

.bt-logo-img {
    height: 50px;
    width: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.bt-logo-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--bt-soft-blue), var(--bt-soft-pink), var(--bt-soft-green));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.bt-brand-link:hover .bt-logo-glow {
    opacity: 0.6;
}

.bt-brand-info {
    display: flex;
    flex-direction: column;
}

.bt-brand-name {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bt-text-primary);
    line-height: 1.2;
    margin: 0;
}

.bt-brand-tagline {
    font-size: 0.75rem;
    color: var(--bt-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== NAVIGATION CENTER ===== */
.bt-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.bt-nav-item {
    position: relative;
}

.bt-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--bt-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.bt-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bt-soft-blue), var(--bt-soft-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.bt-nav-link:hover::before,
.bt-nav-link.active::before {
    opacity: 0.1;
}

.bt-nav-link:hover {
    color: var(--bt-text-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bt-nav-link.active {
    color: var(--bt-text-primary);
    font-weight: 600;
    background: rgba(201, 217, 227, 0.2);
}

.bt-nav-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.bt-nav-text {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.bt-nav-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--bt-soft-blue), var(--bt-soft-pink));
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bt-nav-link:hover .bt-nav-indicator,
.bt-nav-link.active .bt-nav-indicator {
    transform: translateX(-50%) scaleX(1);
}

.bt-nav-link:hover .bt-nav-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== DROPDOWN MENUS ===== */
.bt-nav-dropdown {
    position: relative;
}

.bt-dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.bt-nav-dropdown:hover .bt-dropdown-arrow {
    transform: rotate(180deg);
}

.bt-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(201, 217, 227, 0.3);
    z-index: 1000;
}

.bt-nav-dropdown:hover .bt-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.bt-dropdown-content {
    padding: 0.5rem;
}

.bt-dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--bt-text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.bt-dropdown-link:hover {
    background: linear-gradient(135deg, var(--bt-soft-blue), var(--bt-soft-pink));
    color: var(--bt-text-primary);
    text-decoration: none;
    transform: translateX(4px);
}

.bt-dropdown-link i {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.bt-dropdown-link:hover i {
    opacity: 1;
}

/* ===== ACTION SECTION ===== */
.bt-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Language Switcher Icon Button Styling */
.language-switcher .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.language-switcher .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.language-switcher .btn-outline-light i {
    color: #0d2341;
    transition: all 0.3s ease;
}

.language-switcher .btn-outline-light:hover i {
    transform: rotate(15deg);
}

.language-switcher .dropdown-menu {
    min-width: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.language-switcher .dropdown-item {
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.language-switcher .dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 20px;
}

.language-switcher .dropdown-item.active {
    background-color: #0d6efd;
    color: #fff;
}

.language-switcher .dropdown-item.active:hover {
    background-color: #0b5ed7;
}

/* Language Switcher Positioning */
.language-switcher {
    display: inline-block;
}
.bt-search-btn {
    background: rgba(201, 217, 227, 0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bt-text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.bt-search-btn:hover {
    background: var(--bt-soft-blue);
    color: var(--bt-text-primary);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(201, 217, 227, 0.4);
}

.bt-cta-button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--bt-accent-coral), var(--bt-accent-peach));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(255, 159, 159, 0.3);
}

.bt-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.bt-cta-button:hover::before {
    left: 100%;
}

.bt-cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 159, 159, 0.4);
    text-decoration: none;
    color: white;
}

.bt-cta-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.bt-cta-text {
    font-weight: 600;
}

.bt-cta-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--bt-accent-coral), var(--bt-accent-peach));
    border-radius: 29px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.bt-cta-button:hover .bt-cta-glow {
    opacity: 0.6;
}

/* ===== MOBILE NAVIGATION ===== */
.bt-mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    gap: 4px;
}

.bt-hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--bt-text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bt-mobile-toggle:hover .bt-hamburger-line {
    background: var(--bt-soft-blue);
}

.bt-mobile-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(201, 217, 227, 0.3);
    margin-top: 1rem;
}

.bt-mobile-menu {
    padding: 1.5rem 0;
}

.bt-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid rgba(201, 217, 227, 0.3);
    margin-bottom: 1rem;
}

.bt-mobile-header h3 {
    font-family: 'Comfortaa', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bt-text-primary);
    margin: 0;
}

.bt-mobile-close {
    background: none;
    border: none;
    color: var(--bt-text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bt-mobile-close:hover {
    background: var(--bt-soft-gray);
    color: var(--bt-text-primary);
}

.bt-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.bt-mobile-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--bt-text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.bt-mobile-link:hover,
.bt-mobile-link.active {
    background: linear-gradient(135deg, var(--bt-soft-blue), var(--bt-soft-pink));
    color: var(--bt-text-primary);
    text-decoration: none;
    transform: translateX(8px);
}

.bt-mobile-link i {
    margin-right: 1rem;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.bt-mobile-link:hover i,
.bt-mobile-link.active i {
    opacity: 1;
}

.bt-mobile-cta {
    padding: 1.5rem 1rem 0;
    border-top: 1px solid rgba(201, 217, 227, 0.3);
    margin-top: 1rem;
}

.bt-mobile-shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bt-accent-coral), var(--bt-accent-peach));
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 159, 159, 0.3);
}

.bt-mobile-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 159, 159, 0.4);
    text-decoration: none;
    color: white;
}

/* ===== SEARCH OVERLAY ===== */
.bt-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.bt-search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
}

.bt-search-box {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bt-search-input {
    flex: 1;
    padding: 1.5rem 2rem;
    border: none;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
}

.bt-search-input::placeholder {
    color: var(--bt-text-muted);
}

.bt-search-submit {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--bt-soft-blue), var(--bt-soft-pink));
    border: none;
    color: var(--bt-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bt-search-submit:hover {
    background: linear-gradient(135deg, var(--bt-accent-coral), var(--bt-accent-peach));
    color: white;
}

.bt-search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bt-search-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .bt-nav-center {
        display: none;
    }

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

    .bt-nav-actions {
        gap: 0.5rem;
    }

    .bt-cta-text {
        display: none;
    }

    .bt-cta-button {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .bt-cta-icon {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .bt-brand-tagline {
        display: none;
    }

    .bt-brand-name {
        font-size: 1.25rem;
    }

    .bt-logo-img {
        height: 40px;
    }

    .bt-nav-wrapper {
        padding: 0.75rem 0;
    }
}

@media (max-width: 480px) {
    .bt-search-toggle {
        display: none;
    }

    .bt-nav-actions {
        gap: 0.25rem;
    }
}

/* ===== SCROLL EFFECTS ===== */
.bt-premium-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(201, 217, 227, 0.5);
}

.bt-premium-navbar.scrolled .bt-nav-wrapper {
    padding: 0.5rem 0;
}

.bt-premium-navbar.scrolled .bt-logo-img {
    height: 40px;
}

/* ===== ACCESSIBILITY ===== */
.bt-nav-link:focus,
.bt-dropdown-link:focus,
.bt-mobile-link:focus,
.bt-cta-button:focus,
.bt-search-btn:focus {
    outline: 2px solid var(--bt-soft-blue);
    outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes navSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bt-premium-navbar {
    animation: navSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LOADING STATES ===== */
.bt-nav-link.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.5rem;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid var(--bt-soft-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
