/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.lang-flag {
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}

.lang-flag:hover {
    opacity: 1;
    transform: scale(1.1);
    border-color: var(--primary, #FEA116);
}

.lang-flag.active {
    opacity: 1;
    border-color: var(--primary, #FEA116);
    box-shadow: 0 0 10px rgba(254, 161, 22, 0.5);
}

/* Flag images using emoji or you can replace with actual images */
.lang-flag[data-lang="cs"] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="600" fill="%23fff"/><rect width="900" height="300" y="300" fill="%23d7141a"/><path d="M 450,300 L 0,0 V 600 z" fill="%2311457e"/></svg>');
}

.lang-flag[data-lang="uk"] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 600"><rect width="900" height="300" fill="%230057B7"/><rect width="900" height="300" y="300" fill="%23FFD700"/></svg>');
}

.lang-flag[data-lang="en"] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><clipPath id="t"><path d="M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"/></clipPath><path d="M0,0 v30 h60 v-30 z" fill="%23012169"/><path d="M0,0 L60,30 M60,0 L0,30" stroke="%23fff" stroke-width="6"/><path d="M0,0 L60,30 M60,0 L0,30" clip-path="url(%23t)" stroke="%23C8102E" stroke-width="4"/><path d="M30,0 v30 M0,15 h60" stroke="%23fff" stroke-width="10"/><path d="M30,0 v30 M0,15 h60" stroke="%23C8102E" stroke-width="6"/></svg>');
}

/* Responsive design for mobile */
@media (max-width: 991px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}

/* Add tooltips */
.lang-flag::after {
    content: attr(data-lang-name);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lang-flag:hover::after {
    opacity: 1;
}
