/* Enhanced Header Styles for Tourago Template */

/* Header Container */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.logo-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo */
.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Desktop Navigation */
.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.nav-item.active .nav-link {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.15);
}

.nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
    animation: fadeInDown 0.3s ease;
}

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

.dropdown-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border: none;
    background: none;
}

.dropdown-item:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

/* User Actions */
.user-actions {
    gap: 1rem;
}

.language-switcher .btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.login-section .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
}

.login-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    background: none;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

/* Mobile Offcanvas */
.offcanvas {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

.offcanvas-body {
    padding: 1.5rem;
}

.mobile-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
    border-radius: 8px;
}

.mobile-nav .nav-link i {
    width: 24px;
    text-align: center;
}

/* Mobile Services Collapse */
.mobile-nav .collapse .nav-link {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: none;
}

.mobile-nav .collapse .nav-link:hover {
    padding-left: 1rem;
}

/* Mobile Actions */
.mobile-actions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.mobile-actions h6 {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-actions .btn-group .btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.mobile-actions .btn-group .btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.mobile-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.mobile-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive Improvements */
@media (max-width: 991px) {
    .logo-nav-container {
        padding: 0.75rem 0;
    }

    .logo img {
        height: 40px;
    }

    .user-actions .language-switcher {
        display: none; /* Hide on mobile, show in offcanvas */
    }
}

@media (max-width: 768px) {
    .header {
        background: rgba(255, 255, 255, 0.98);
    }

    .user-actions .login-section .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Active page highlight */
.nav-item.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

/* Hover effects for better UX */
.nav-link:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.dropdown-item:hover i {
    color: #4f46e5;
    transform: translateX(5px);
}

/* Fix for backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
    .header {
        background: rgba(255, 255, 255, 0.98);
    }
}
