/* ========================================
   NAVIGATION CSS - SEPARATE FILE
   Clean dropdown navigation
   ======================================== */

/* Header */
.header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    width: 100%;
}

.navbar {
    background: white;
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-section .logo {
    height: 60px;
    width: auto;
}

/* Main Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li > a {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu li > a:hover {
    color: #c41e3a;
    background: #f8f9fa;
}

/* Dropdown indicator arrow */
.has-dropdown > a::after {
    content: ' ▼';
    font-size: 0.6rem;
    margin-left: 4px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border-radius: 6px;
    min-width: 220px;
    padding: 10px 0;
    margin-top: 0;
    z-index: 9999;
    list-style: none;
    display: none;
}

/* Hover bridge - add padding to parent to prevent gap */
.has-dropdown {
    padding-bottom: 5px;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #fef5f6;
    color: #c41e3a;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-buttons a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.login-btn {
    background-color: #ffffff !important;
    color: #c41e3a !important;
    border: 2px solid #c41e3a !important;
}

.login-btn:hover {
    background-color: #c41e3a !important;
    color: #ffffff !important;
}

.signup-btn {
    background-color: #c41e3a !important;
    color: #ffffff !important;
    border: 2px solid #c41e3a !important;
}

.signup-btn:hover {
    background-color: #a01628 !important;
    border-color: #a01628 !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: white;
    border: 3px solid #c41e3a;
    border-radius: 8px;
    font-size: 2rem;
    cursor: pointer;
    color: #c41e3a;
    padding: 8px 14px;
    min-width: 50px;
    min-height: 50px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        z-index: 999;
        overflow-y: auto;
        max-height: calc(100vh - 90px);
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li > a {
        width: 100%;
        padding: 15px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        margin-top: 10px;
        padding-left: 20px;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
    }

    .auth-buttons {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        padding: 20px;
        flex-direction: column;
        gap: 12px;
        z-index: 998;
        overflow-y: auto;
        max-height: calc(100vh - 90px);
    }

    .auth-buttons.active {
        display: flex !important;
    }

    .auth-buttons a {
        width: 100%;
        text-align: center;
    }
}
