/* ============================================
   SHARED STYLES - NAVBAR + DARK MODE
   ============================================ */

/* Dark mode transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Navbar Desktop */
.navbar-desktop {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background:  rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .navbar-desktop {
    background:  rgba(22, 12, 44, 0.8);
    border-bottom-color: #2B1A4B;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 2rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.navbar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
}

.dark .navbar-logo-text {
    color: #EAEAEA;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.dark .navbar-link {
    color: #a092c4;
}

.navbar-link:hover {
    color: #4F46E5;
    transform:  translateY(-1px);
}

.dark .navbar-link:hover {
    color: #00F5A0;
}

.navbar-link.active {
    color: #4F46E5;
    font-weight: 600;
    border-bottom: 2px solid #4F46E5;
    padding-bottom: 4px;
}

.dark .navbar-link.active {
    color: #00F5A0;
    border-bottom-color: #00F5A0;
}

.navbar-link-emoji {
    font-size: 1.25rem;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(229, 231, 235, 0.8);
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s;
}

.dark .theme-toggle {
    background: #160C2C;
    border-color:  #2B1A4B;
    color: #a092c4;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(79, 70, 229, 0.1);
}

.dark .theme-toggle:hover {
    background: #2B1A4B;
}

.theme-toggle-icon {
    font-size: 1.25rem;
}

/* Mobile Bottom Nav */
.navbar-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.dark .navbar-mobile {
    background: rgba(22, 12, 44, 0.95);
    border-top-color: #2B1A4B;
}

.navbar-mobile-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 4rem;
    padding: 0 1rem;
}

.navbar-mobile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
    flex:  1;
    max-width: 5rem;
}

.dark .navbar-mobile-link {
    color: #a092c4;
}

.navbar-mobile-link:hover {
    color: #4F46E5;
}

.dark .navbar-mobile-link:hover {
    color: #00F5A0;
}

.navbar-mobile-link.active {
    color: #4F46E5;
}

.dark .navbar-mobile-link.active {
    color: #00F5A0;
}

.navbar-mobile-emoji {
    font-size: 1.5rem;
}

.navbar-mobile-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width:  768px) {
    .navbar-desktop {
        display: none;
    }
    
    .navbar-mobile {
        display: block;
    }
    
    /* Add bottom padding to body for mobile nav */
    body {
        padding-bottom: 5rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}