/* ===================================================================
 * Language Switcher Styles
 * Purpose: Visual styling for EN/DE language switcher in navigation
 * =================================================================== */

/* Container - flexbox layout for flag links */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

/* Individual flag link wrapper */
.lang-flag {
    display: inline-block;
    width: 24px;
    height: 18px;
    border-radius: 3px;
    overflow: hidden;
    -webkit-transition: all 0.27s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -moz-transition: all 0.27s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -o-transition: all 0.27s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    -ms-transition: all 0.27s cubic-bezier(0.000, 0.000, 0.580, 1.000);
    transition: all 0.27s cubic-bezier(0.000, 0.000, 0.580, 1.000);
}

/* SVG flag icon - fills container */
.flag-icon {
    width: 100%;
    height: 100%;
    display: block;
}

/* Active language - full opacity, not clickable */
.lang-flag.active {
    opacity: 1;
    cursor: default;
    pointer-events: none;
}

/* Inactive language - faded, clickable */
.lang-flag:not(.active) {
    opacity: 0.5;
    cursor: pointer;
}

/* Hover effect on inactive flag */
.lang-flag:not(.active):hover {
    opacity: 0.85;
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -o-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* Focus styles for keyboard navigation accessibility */
.lang-flag:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.lang-flag.active:focus {
    outline: none; /* Active flag is not interactive */
}

/* Mobile adjustments at 1024px breakpoint */
@media only screen and (max-width: 1024px) {
    .lang-switcher {
        justify-content: center;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        margin-left: 0;
    }

    .lang-flag {
        width: 32px;
        height: 24px;
    }
}
