/* Navigation Styles - Centralized for all pages */

.nav-menu {
    position: sticky;
    top: 0;
    background: #0a0e27;
    z-index: 100;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1e3a8a;
}

.nav-logo-link {
    margin-right: 30px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    height: 45px;
    width: auto;
    min-width: 220px;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .nav-logo {
        height: 35px;
        min-width: 180px;
    }
    
    .nav-logo-link {
        margin-right: 15px;
        margin-bottom: 10px;
    }
}

.nav-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 2px solid #3b82f6;
    border-radius: 8px;
    color: #f9fafb;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-button:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.nav-button.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.auth-link {
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: 2px solid #10b981;
}

.auth-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 2px solid #3b82f6;
    border-radius: 8px;
    color: #f9fafb;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dropdown-button:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: linear-gradient(135deg, #1f2937, #111827);
    border: 2px solid #3b82f6;
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.dropdown.active .dropdown-content {
    display: block;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #f9fafb;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border-bottom: 1px solid #374151;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    padding-left: 25px;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    margin: 8px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        padding: 15px 10px;
        gap: 8px;
    }

    .nav-button,
    .dropdown-button,
    .auth-link {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .dropdown-content {
        min-width: 200px;
        left: auto;
        right: 0;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-button,
    .dropdown,
    .auth-link {
        width: 100%;
        text-align: center;
    }

    .dropdown-button {
        justify-content: center;
    }

    .dropdown-content {
        position: static;
        margin-top: 5px;
        width: 100%;
    }
}
