/* static/css/nav.css */
/* Header and Navigation Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

/* FIX: Remove underline from brand link */
.nav-brand a {
    text-decoration: none; /* This removes the underline */
    color: inherit; /* Ensures color inheritance */
}

.nav-brand h1 span {
    color: #ffdd40;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile menu button (hidden by default) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Mobile Responsiveness for Navigation */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0.7rem;
    }
    
    .nav-menu a {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 880px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        padding: 1rem;
        z-index: 100;
        gap: 0.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 380px) {
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
    }
}
