/* Modern Header Navigation Styles */

/* Modern Navigation */
.navbar.navbar-wcp {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
}

.navbar.navbar-wcp.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 0.5rem 0 !important;
}

.navbar-brand {
    font-family: var(--wcp-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wcp-white) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--wcp-white) !important;
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--wcp-white) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem !important;
}

.nav-link.active {
    color: var(--wcp-accent) !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--wcp-accent);
    border-radius: 1px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--wcp-gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--wcp-white) !important;
    transform: translateY(-2px);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--wcp-shadow-lg);
    border-radius: 15px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: white;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    color: var(--wcp-dark);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--wcp-gradient-primary);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: var(--wcp-gradient-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    transform: scale(1.05);
    box-shadow: var(--wcp-shadow);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mobile Menu Enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        border-radius: 15px;
        box-shadow: var(--wcp-shadow-lg);
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        background: #f8fafc;
        margin: 0.5rem 0;
        border-radius: 10px;
    }
}

/* Scroll Effects */
.navbar-wcp {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.navbar-wcp.hidden {
    transform: translateY(-100%);
}

/* Brand Logo Animation */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(5deg) scale(1.1);
}

/* Active State */
.nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

/* Notification Badge */
.nav-link .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
    background: var(--wcp-danger);
    color: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Search Bar (if needed) */
.navbar-search {
    position: relative;
    margin: 0 1rem;
}

.navbar-search .form-control {
    border-radius: 25px;
    border: 2px solid #e5e7eb;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.navbar-search .form-control:focus {
    border-color: var(--wcp-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.navbar-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-selector .dropdown-toggle::after {
    display: none;
}

.language-selector .flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    margin-right: 0.5rem;
}

/* User Menu (for logged in users) */
.user-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: var(--wcp-gradient-primary);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-menu .dropdown-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--wcp-shadow-lg);
    color: white;
}

.user-menu .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
}

/* CTA Button */
.nav-cta {
    margin-left: 1rem;
}

.nav-cta .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--wcp-shadow-lg);
}

/* Two-line Navigation Text */
.nav-text-two-line {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: center;
}

.nav-text-two-line .line-1 {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-text-two-line .line-2 {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-text-two-line.text-danger .line-1,
.nav-text-two-line.text-danger .line-2 {
    color: #dc3545 !important;
}

/* Navigation Link Hover Effects for Two-line Text */
.nav-link:hover .nav-text-two-line .line-1,
.nav-link:hover .nav-text-two-line .line-2 {
    transform: translateY(-1px);
    transition: transform 0.3s ease;
}

/* Logo Styling */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Compact Hero Section for Non-Home Pages */
.compact-hero-section {
    background: var(--wcp-gradient-primary);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.compact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.compact-hero-content {
    position: relative;
    z-index: 2;
    color: var(--wcp-white);
}

.compact-hero-title {
    font-family: var(--wcp-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for compact hero */
@media (max-width: 768px) {
    .compact-hero-section {
        padding: 2rem 0;
    }
    
    .compact-hero-title {
        font-size: 2rem;
    }
    
    .compact-hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .compact-hero-section {
        padding: 1.5rem 0;
    }
    
    .compact-hero-title {
        font-size: 1.75rem;
    }
    
    .compact-hero-subtitle {
        font-size: 0.95rem;
    }
}
