/* --- NAVBAR & TABS (Extracted from index.html) --- */

/* Navigation Buttons (General) */
.nav-btn {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(62, 39, 35, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
}

.nav-btn:hover {
    background: #3e2723;
    color: #fff;
    transform: scale(1.1);
}

/* --- TAB NAVIGATION (Desktop) --- */
.nav-tabs-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    padding: 6px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(62, 39, 35, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    text-decoration: none;
    color: #5d4037;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link:hover {
    color: #3e2723;
    background: rgba(62, 39, 35, 0.05);
}

.nav-link.active-tab {
    background: #3e2723;
    color: #fcfbf9;
    box-shadow: 0 4px 12px rgba(62, 39, 35, 0.15);
}

/* --- MOBILE SIDE MENU (Drawer) --- */
#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    z-index: 54;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: #fcfbf9;
    z-index: 55;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-left: 1px solid rgba(62, 39, 35, 0.1);
}

#mobile-menu.open {
    transform: translateX(0);
}

.menu-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(62, 39, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3e2723;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.menu-close-btn:hover {
    background: #3e2723;
    color: white;
    border-color: #3e2723;
    transform: scale(1.1);
}

/* Mobile Navigation Enhancements */
.mobile-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(62, 39, 35, 0.1);
}

/* Hamburger Animation */
#mobile-toggle div span {
    transform-origin: center;
}

/* Touch-friendly mobile menu items */
#mobile-menu a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(62, 39, 35, 0.05);
    margin-bottom: 8px;
    touch-action: manipulation;
}

#mobile-menu a:last-child {
    border-bottom: none;
}

/* Active page indicator in mobile menu */
#mobile-menu a.active-page {
    color: #8b5e34;
    font-weight: 600;
    position: relative;
}

#mobile-menu a.active-page::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #8b5e34;
    border-radius: 2px;
}
