/* =========================================================
   Navbar Component Styles
   Supports: Pages/Shared/_Navbar.cshtml
   ========================================================= */

.navbar {
    transition: var(--brand-transition, all 0.3s ease);
    background-color: var(--brand-bg-light, #ffffff) !important;
}

.navbar-navbar-brand-height {
    min-height: var(--brand-navbar-height, 72px);
}

.navbar-border-bottom-brand {
    border-bottom: 1px solid var(--brand-border-light, #e5e7eb);
}

.navbar-brand-text {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    color: var(--brand-text, #212529) !important;
}

.navbar-brand {
    transition: var(--brand-transition, all 0.3s ease);
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-toggler-custom {
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav-gap {
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--brand-text, #212529) !important;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--brand-transition, all 0.3s ease);
    position: relative;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    /* iOS: Better touch interaction */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--brand-primary, #0d6efd) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--brand-primary, #0d6efd);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-menu {
    border: 1px solid var(--brand-border-light, #e5e7eb);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border-radius: 0.375rem;
}

.dropdown-item {
    transition: var(--brand-transition, all 0.3s ease);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    /* iOS: Better touch interaction */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--brand-accent, #f8f9fa);
    color: var(--brand-primary, #0d6efd);
}

.navbar-cta-button {
    white-space: nowrap;
    transition: var(--brand-transition, all 0.3s ease);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 1rem;
        border-bottom: 1px solid var(--brand-border-light, #e5e7eb);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .d-flex {
        margin-top: 1rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .d-flex .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* iOS: Better dropdown on mobile */
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }
    
    .dropdown-item {
        border-bottom: 1px solid var(--brand-border-light, #e5e7eb);
        padding: 1rem 1.5rem;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
}

