/* ============================================
   Advanced Multi-Navigation System
   Sparkle Beauty Lounge
   ============================================ */

/* --- Top Navbar (Desktop/Tablet) --- */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    /* Gold border */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    transition: transform 0.3s ease;
}

.top-navbar .logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #F4E5B2 0%, #D4AF37 50%, #B8941F 100%);
    /* Gold Gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-navbar .logo:hover {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.utility-icons {
    position: absolute;
    right: 40px;
    display: flex;
    gap: 20px;
}

.utility-icon-btn {
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.utility-icon-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    transform: rotate(15deg);
}

/* --- Bottom Navbar (Mobile-First) --- */
#sparkle-nav {
    position: fixed !important;
    bottom: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 95% !important;
    max-width: 480px !important;
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 2px solid var(--gold-primary) !important;
    border-radius: 50px !important;
    padding: 8px 15px !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.3) !important;
    z-index: 2147483647 !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
}

/* .bottom-navbar.nav-hidden {
    transform: translate(-50%, 150%);
} */

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--gold-primary);
}

.nav-item span {
    display: none;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-item.active span {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-item.active i {
    transform: translateY(-5px);
    filter: drop-shadow(0 5px 5px rgba(255, 215, 0, 0.4));
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold-primary);
}

/* Floating Book Button in Bottom Nav */
.nav-item.book-btn {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-top: -35px;
    /* Float above */
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    border: 4px solid #0f0f0f;
    /* Match bg to cutout */
    color: #000;
}

.nav-item.book-btn i {
    font-size: 1.6rem;
    margin: 0;
}

.nav-item.book-btn span {
    display: none;
}

.nav-item.book-btn.active span {
    display: none;
    /* Keep book button icon-only or handles separately */
}

.nav-item.book-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

/* --- Right Sidebar (Account/Quick Access) --- */
.right-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    /* Hidden by default */
    width: 320px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 3000;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 2px solid var(--gold-primary);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.right-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.sidebar-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-primary);
    margin: 0;
    font-size: 1.8rem;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.sidebar-link i {
    width: 25px;
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.sidebar-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateX(5px);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 20px 0;
    opacity: 0.3;
}

/* --- Account Button in Top Nav --- */
.nav-extra {
    position: absolute;
    right: 40px;
}

.account-btn {
    background: linear-gradient(135deg, #1a1a1a, #000);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 8px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.account-btn i {
    font-size: 1.2rem;
}

.account-btn:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

/* --- Side Navbar --- */
/* Sidebar removed */

/* --- Floating "My Bookings" FAB --- */
.fab-bookings {
    position: fixed;
    bottom: 100px;
    /* Above bottom nav */
    right: 20px;
    background: var(--gold-dark);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: scale(0);
    /* Start hidden */
    animation: fab-pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1s;
    /* Show after 1s */
}

@keyframes fab-pop-in {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fab-bookings:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    background: var(--gold-primary);
    color: #000;
}

.fab-pulse {
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .top-navbar {
        justify-content: center;
        height: 70px;
        padding: 0 15px;
    }

    .top-navbar .logo {
        font-size: 1.5rem;
        /* Smaller font for mobile */
        max-width: 70%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Fix for hero text being cut off */
    .hero-section .container {
        padding-top: 120px !important;
    }

    .hero-title,
    .display-large {
        font-size: 3rem !important;
        /* Reduce font size on mobile */
    }

    .nav-extra {
        right: 15px;
    }

    .account-btn span {
        display: none;
    }

    .account-btn {
        padding: 8px;
        width: 38px;
        height: 38px;
        justify-content: center;
        background: rgba(20, 20, 20, 0.8);
        /* Semi-transparent background */
    }

    .account-btn i {
        font-size: 1.1rem;
    }

    #sparkle-nav {
        width: 100% !important;
        /* Full width minus padding */
        max-width: 100% !important;
        bottom: 0 !important;
        /* Stick to bottom */
        padding: 10px 0 !important;
        border-radius: 20px 20px 0 0 !important;
        /* Rounded top corners only */
        border-bottom: none !important;
        left: 0 !important;
        transform: none !important;
        background: rgba(10, 10, 10, 0.98) !important;
        /* Less transparent */
        gap: 0;
        justify-content: space-evenly !important;
    }

    .nav-item {
        padding: 5px 2px;
        flex: 1;
    }

    /* Hide labels on mobile to avoid layout shifts */
    .nav-item span,
    .nav-item.active span {
        display: none !important;
    }

    .nav-item.active i {
        transform: translateY(-2px);
        /* Subtle lift */
    }

    .nav-item.book-btn {
        margin-top: -45px;
        /* Push up more */
        border: 4px solid #000;
        /* Match background */
        width: 55px;
        height: 55px;
    }

    .right-sidebar {
        width: 100%;
        /* Full width on mobile */
        max-width: none;
        right: -100%;
        border-left: none;
        padding: 80px 20px 20px;
        /* More top padding for close btn */
    }

    .right-sidebar.active {
        right: 0;
    }

    .sidebar-header {
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
    }

    .fab-bookings {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .top-navbar {
        display: flex;
        justify-content: center;
    }

    #sparkle-nav {
        width: 480px !important;
        bottom: 30px !important;
    }
}