/* Enhanced Navigation Styles for PascoWeather.com */

/* Navbar Base Styling */
.navbar-dark {
    background: linear-gradient(135deg, #0066cc, #004499) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Navigation Links */
.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    margin: 0 0.1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    font-weight: 600;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(0.25rem);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.dropdown-item i {
    width: 1.2rem;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Dropdown Toggle Arrow */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 102, 204, 0.95);
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.1rem 0;
    }
    
    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-left: 1rem;
        margin-top: 0.25rem;
    }
    
    .dropdown-item {
        color: #ffffff;
        padding: 0.5rem 1rem;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .theme-toggle {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Accessibility Improvements */
.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.dropdown-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* Animation for dropdown appearance */
.dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dark mode specific adjustments */
[data-theme="dark"] .dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

/* Navbar brand icon animation */
.navbar-brand i {
    transition: transform 0.3s ease;
}

.navbar-brand:hover i {
    transform: rotate(15deg);
}

/* Navigation responsiveness for very small screens */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }
    
    .dropdown-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}