﻿/* Header Component Styles */
/* Glass Header Design with iOS-style glassmorphism */

/* Glass effect applied directly to MudAppBar */
.mud-appbar.glass-header {
    background: rgba(248, 250, 252, 0.85) !important;
    backdrop-filter: blur(24px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.1);
    border-bottom: 1px solid rgba(203, 213, 225, 0.5);
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.8) inset,
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mud-appbar.glass-header.scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(28px) saturate(180%) brightness(1.05);
    -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.05);
    border-bottom: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.9) inset,
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Enhanced fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .mud-appbar.glass-header {
        background: rgba(248, 250, 252, 0.95) !important;
        border-bottom: 1px solid rgba(203, 213, 225, 0.8);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mud-appbar.glass-header.scrolled {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(203, 213, 225, 1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Brand styling */
.brand-logo {
    background: linear-gradient(135deg, var(--google-blue, #1976d2), var(--google-blue-600, #1565c0)) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.brand-text span {
    display: inline-block;
    transition: color 0.3s ease;
}

/* Desktop navigation items */
.glass-nav-item {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    transition: all 0.2s ease !important;
    padding: 8px 16px !important;
    margin: 0 4px !important;
    position: relative;
    font-weight: 500;
    text-transform: none;
    color: var(--google-blue, #1976d2) !important;
}

.glass-nav-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* CTA Buttons */
.glass-button {
    background: rgba(26, 115, 232, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 115, 232, 0.2) !important;
    border-radius: 16px !important;
    color: var(--google-blue, #1976d2) !important;
    transition: all 0.2s ease !important;
    padding: 8px 16px !important;
    font-weight: 500;
    text-transform: none;
}

.glass-button:hover {
    background: rgba(26, 115, 232, 0.2) !important;
    border-color: rgba(26, 115, 232, 0.3) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.glass-button-primary {
    background: rgba(26, 115, 232, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 115, 232, 0.3) !important;
    color: white !important;
    border-radius: 16px !important;
    padding: 8px 16px !important;
    font-weight: 500;
    text-transform: none;
    transition: all 0.2s ease !important;
}

.glass-button-primary:hover {
    background: rgba(26, 115, 232, 1) !important;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.3);
    transform: translateY(-1px);
}

/* Mobile navigation styles */
.mobile-nav-item {
    background: rgba(26, 115, 232, 0.05) !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    padding: 12px 16px !important;
    text-align: left !important;
    justify-content: flex-start !important;
}

.mobile-nav-item:hover {
    background: rgba(26, 115, 232, 0.1) !important;
    transform: translateX(4px);
}

.mobile-cta-button {
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
}

/* Mobile drawer glass effect */
.mud-drawer {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mud-appbar.glass-header {
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }
    
    .glass-nav-item {
        padding: 6px 12px !important;
        margin: 0 2px !important;
    }
}

/* Remove old styles that are no longer needed */
.nav-link,
.nav-link::after,
#header,
.mud-toolbar,
.mud-toolbar-content {
    /* These styles are now handled by MudAppBar directly */
}
