/**
 * Header Component Styles
 * Additional styles for the header component
 */

.header-component {
    transition: all 0.3s ease;
}

.header-component nav {
    transition: padding 0.3s ease;
}

/* Active navigation link styles */
.header-component nav a.active {
    color: #1F2937;
    font-weight: 600;
}

.header-component[data-variant="transparent"] nav a.active {
    color: #FFFFFF;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

#mobile-menu.hidden {
    display: none;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky header shadow enhancement */
.header-component[data-variant="sticky"] {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-component[data-variant="fixed"] {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Hover effects for navigation links */
.header-component nav a:not(.cta-button):hover {
    position: relative;
}

.header-component nav a:not(.cta-button):hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    animation: underline 0.3s ease forwards;
}

@keyframes underline {
    to {
        transform: scaleX(1);
    }
}

/* CTA button enhancements */
.header-component .cta-button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.header-component .cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.header-component .cta-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Mobile menu button animation */
#mobile-menu-toggle svg {
    transition: transform 0.3s ease;
}

#mobile-menu-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

/* Focus states for accessibility */
.header-component a:focus,
.header-component button:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Logo hover effect */
.nav-logo-link img {
    max-height: 100px;
}

.header-component .logo-link {
    transition: transform 0.2s ease;
}

.header-component .logo-link:hover {
    transform: scale(1.05);
}

/* Scroll state styles */
body.scrolled header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.scrolled #header-logo {
    max-height: 72px;
}

@media (min-width: 1281px) and (max-width: 1439px) {
    body.scrolled #header-logo {
        max-height: 60px;
    }
}

/* Below 1024px: logo 80px default, 65px when scrolled */
@media (max-width: 1023px) {
    #header-logo {
        max-height: 80px;
    }

    body.scrolled #header-logo {
        max-height: 65px;
    }
}

/* Below 767px: logo 60px default, 50px when scrolled */
@media (max-width: 767px) {
    #header-logo {
        max-height: 60px;
    }

    body.scrolled #header-logo {
        max-height: 50px;
    }
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.language-link {
    text-decoration: none;
    transition: color 0.2s ease, font-weight 0.2s ease;
    color: #5E5E5E;
    font-size: 20px;
    font-weight: 400;
    line-height: 180%;
}

.language-link--active {
    font-weight: 600;
    color: #006767;
}

.language-link:hover {
    color: #3f3a3a;
}

.language-separator {
    color: #006767;
    font-size: 1rem;
    line-height: 1;
}

/* Language switcher smaller below 1024px */
@media (max-width: 1023px) {
    .language-switcher {
        gap: 0.35rem;
    }

    .language-switcher .language-links {
        gap: 0.5rem;
    }

    .language-icon {
        width: 34px;
        height: 34px;
    }

    .language-link {
        font-size: 16px;
    }

    .language-separator {
        font-size: 0.85rem;
    }
}

/* Language switcher even smaller at 480px and below */
@media (max-width: 480px) {
    .language-switcher {
        gap: 0.25rem;
    }

    .language-switcher .language-links {
        gap: 0.35rem;
    }

    .language-icon {
        width: 28px;
        height: 28px;
    }

    .language-link {
        font-size: 14px;
    }

    .language-separator {
        font-size: 0.75rem;
    }

    #header-logo {
        max-height: 40px;
    }

    body.scrolled #header-logo {
        max-height: 40px;
    }
}