/* Navigation Styles - Unified for all pages */
/* Exact copy from main page (index.html) */

/* Ensure body has proper padding for fixed navigation */
body {
    padding-top: 80px !important;
}

/* Navigation container */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

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

/* Safari fallback for gap support */
@supports not (gap: 2rem) {
    .nav-links > * + * {
        margin-left: 2rem;
    }
}

.nav-links a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #7c3aed;
}

.nav-links a.active {
    color: #7c3aed;
}

.auth-section {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Auth Button Styles - Exact copy from main page */
.btn-auth-login,
.btn-auth-register {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-auth-login {
    color: #667eea;
    padding: 10px 24px;
    border: 2px solid #667eea;
    border-radius: 25px;
    font-weight: 500;
}

.btn-auth-login:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-auth-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    margin-left: 16px;
}

.btn-auth-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #4a5568;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Desktop and larger screens */
@media (min-width: 1025px) {
    .nav-links {
        gap: 2rem !important;
        flex-direction: row !important;
    }
}

/* Tablet and small desktop */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
        flex-direction: row;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-links.mobile-active {
        max-height: 400px;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .auth-section {
        margin-right: 10px;
    }
    
    .btn-auth-login,
    .btn-auth-register {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .btn-auth-register {
        margin-left: 8px;
    }
}

/* Additional fixes for consistency */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7c3aed;
    transition: width 0.3s ease;
}

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