/* ==================== */
/* MAIN NAVBAR STYLES */
/* ==================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: #1e40af;
}

.nav-logo .nav-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #3b82f6;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #1e40af, #3b82f6);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.auth-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login {
    background: transparent;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.login:hover {
    background: rgba(59, 130, 246, 0.1);
}

.signup {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: white;
    border: none;
}

.signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1e40af;
    cursor: pointer;
}

.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}

.content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.content p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== */
/* SECONDARY NAVBAR STYLES */
/* ==================== */
.navbar-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
    position: sticky;
    padding: 0.8rem 5%;
    margin: 1rem 5% 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.secondary-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.search-container {
    display: flex;
    flex: 1;
    max-width: 700px;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px 0 0 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.search-btn {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.search-btn:hover {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35);
}

.search-btn:hover::before {
    left: 100%;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #cbd5e1;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.category-nav {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.9rem;
}

.category-nav a:hover {
    color: var(--primary);
}

.category-nav a.active {
    color: var(--primary);
}

.category-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #1e40af, #3b82f6);
}

/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */

@media (max-width: 900px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .auth-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .auth-buttons {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 5px 20px rgba(30, 64, 175, 0.1);
        z-index: 1000;
        width: 100%;
        align-items: center;
    }
    
    .auth-buttons.active {
        display:grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        top: calc(100% + 180px);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-logo .nav-img {
        width: 35px;
        height: 35px;
    }
    
    .nav-logo span {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        font-size: 1.3rem;
    }
    
    .content h1 {
        font-size: 2rem;
    }
    
    .content p {
        font-size: 1rem;
    }
}