/* Navbar Styling - Orchid Design */

.navbar {
    background-color: #1a1a1a !important;
    border-bottom: none;
    padding: 0.75rem 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    overflow: visible !important;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem !important;
    gap: 1rem;
    min-height: auto !important;
}

/* Logo */
.navbar-brand {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
    color: white !important;
    font-weight: 600;
    font-size: 1.25rem;
    border-bottom: none !important;
}

.logo a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    color: white !important;
}

.logo-img {
    height: 15px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    color: white !important;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-item.active .dropdown-icon {
    transform: rotate(180deg);
}

.nav-link {
    color: #e0e0e0 !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    opacity: 1 !important;
}

.nav-link:hover {
    color: white !important;
    opacity: 1 !important;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #e0e0e0;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.login-link {
    color: #e0e0e0 !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 1 !important;
}

.login-link:hover {
    color: white !important;
    opacity: 1 !important;
}

/* Mega Dropdown */
.mega-dropdown {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    display: none;
}

.mega-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 500px;
    display: block;
    pointer-events: auto;
}

.mega-dropdown-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mega-dropdown-card {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.mega-dropdown-card:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card-icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    display: block;
}

.mega-dropdown-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.mega-dropdown-card p {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== TABLET BREAKPOINT (768px) ===== */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .nav-actions {
        gap: 1rem;
    }

    .nav-cta {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .mega-dropdown-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE BREAKPOINT (640px) ===== */
@media (max-width: 640px) {
    .navbar {
        padding: 0.5rem 0 !important;
    }

    .navbar .container {
        padding: 0 1rem;
        gap: 0;
    }

    .navbar-brand {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex: 1;
    }

    .logo-img {
        height: 12px;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Mobile menu styling */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        background-color: #1a1a1a;
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid #333;
        gap: 0;
        flex: none !important;
    }

    .nav-menu.active {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #333;
        position: relative;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        width: 100%;
        text-align: left;
        color: #e0e0e0 !important;
    }

    .nav-link:hover {
        background-color: #2a2a2a;
        color: white !important;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-end;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-cta {
        width: auto;
        padding: 0.5rem 1rem;
    }

    /* Mobile mega dropdown */
    .mega-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        border-top: 1px solid #e5e7eb;
        border-bottom: none;
    }

    .mega-dropdown.active {
        max-height: 70vh;
        overflow-y: auto;
    }

    .mega-dropdown-content {
        padding: 1rem;
    }

    .mega-dropdown-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mega-dropdown-card {
        padding: 1rem;
    }

    .card-icon-img {
        width: 36px;
        height: 36px;
    }

    .mega-dropdown-card h3 {
        font-size: 0.9rem;
    }

    .mega-dropdown-card p {
        font-size: 0.75rem;
    }
}
