/* Universal Header Component Styles */
.universal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.universal-header.transparent {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

.universal-header.solid {
    background: #FFFFFF;
    backdrop-filter: none;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo Section */
.header__logo-container {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.header__logo-text {
    font-family: var(--font, 'Montserrat', sans-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--contentPrimaryColor, #1A1A1A);
    transition: all 0.3s ease;
    cursor: pointer;
}

.header__logo-text:hover {
    transform: scale(1.05);
    color: var(--themePrimaryColor, #10B07C);
}

/* Back Button */
.header__back-button {
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--contentPrimaryColor, #1A1A1A);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    padding: 8px;
    margin: -8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header__back-button:hover {
    transform: translateX(-2px);
    color: var(--themePrimaryColor, #10B07C);
    background: rgba(16, 176, 124, 0.1);
    border-color: var(--themePrimaryColor, #10B07C);
    box-shadow: 0 4px 12px rgba(16, 176, 124, 0.2);
}

.header__back-button:active {
    transform: translateX(-1px) scale(0.95);
}

.header__back-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
}

/* Menu Section (placeholder for spacing) */
.header__menu-section {
    width: 40px;
    height: 40px;
}

/* Progress Indicator (optional) */
.header__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--themePrimaryColor, #10B07C);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--themePrimaryColor, #10B07C), #00D9FF);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 0 0;
    z-index: 101;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .header__progress {
        transition: width 0.1s ease;
    }
}

/* Title in header (optional) */
.header__title {
    font-family: var(--font, 'Montserrat', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--contentPrimaryColor, #1A1A1A);
    text-align: center;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .universal-header {
        padding: 12px 16px;
    }
    
    .header__logo-text {
        font-size: 18px;
    }
    
    .header__back-button {
        width: 40px;
        height: 40px;
        padding: 10px;
        margin: -10px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .header__back-button:hover,
    .header__back-button:active {
        background: transparent;
        border: none;
        color: var(--themePrimaryColor, #10B07C);
    }
    
    .header__title {
        font-size: 16px;
        max-width: 150px;
    }
    
    .header__menu-section {
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .header__back-button {
        width: 40px;
        height: 40px;
        padding: 9px;
        margin: -9px;
    }
}

@media (min-width: 1024px) {
    .universal-header {
        padding: 20px 40px;
    }
    
    .header__logo-text {
        font-size: 22px;
    }
    
    .header__back-button {
        width: 40px;
        height: 40px;
        padding: 10px;
        margin: -10px;
    }
    
    .header__menu-section {
        width: 44px;
        height: 44px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .universal-header {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: rgba(75, 85, 99, 0.5);
    }
    
    .universal-header.solid {
        background: #1A1A1A;
        border-bottom-color: #374151;
    }
    
    .header__back-button,
    .burger-dash {
        color: #FFFFFF;
    }
    
    .header__title {
        color: #FFFFFF;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .universal-header,
    .header__logo,
    .header__back-button,
    .header__burger-button,
    .burger-dash,
    .header__progress {
        transition: none;
    }
}

/* Focus states for accessibility */
.header__back-button:focus,
.header__burger-button:focus {
    outline: 2px solid var(--themePrimaryColor, #10B07C);
    outline-offset: 2px;
}

/* Loading state */
.universal-header.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation classes - disabled for page transitions */
.header-slide-down {
    transform: translateY(0);
    opacity: 1;
}

.header-slide-up {
    transform: translateY(-100%);
    opacity: 0;
} 