/**
 * Modern Language Switcher UI/UX
 * SuperPatch - Professional Design
 */

/* 🌍 Language Switcher v Hero Sekcii */
.hero-section .language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-switcher {
    position: relative;
    z-index: 10;
}

.language-switcher-wrapper {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 
                0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 140, 66, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-switcher-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 140, 66, 0.4);
    transform: translateY(-2px);
}

/* 🎯 Language Item */
.lang-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lang-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF8C42 0%, #FFB84D 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.lang-item:hover {
    color: #FF8C42;
    transform: translateY(-2px);
}

.lang-item.active {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB84D 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.lang-item.active::before {
    opacity: 1;
}

.lang-item:hover:not(.active) {
    background: rgba(255, 140, 66, 0.1);
}

/* 🚩 Flag Emoji */
.lang-flag {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* 🔤 Language Code */
.lang-code {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* 🌍 Footer Language Switcher */
.footer-languages {
    margin: 40px 0 30px 0;
    padding: 30px 0;
    border-top: 2px solid rgba(255, 140, 66, 0.2);
    text-align: center;
}

.footer-languages h4 {
    color: #FF8C42;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-languages .language-switcher {
    display: flex;
    justify-content: center;
}

.footer-languages .language-switcher-wrapper {
    display: inline-flex;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    .hero-section .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .language-switcher-wrapper {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .lang-item {
        padding: 6px 10px;
        gap: 4px;
    }
    
    .lang-code {
        display: none;
    }
    
    .lang-flag {
        font-size: 20px;
    }
    
    .footer-languages h4 {
        font-size: 16px;
    }
}

/* 🎯 Alternatívny dizajn - Dropdown (voliteľné) */
.language-switcher.dropdown .language-switcher-wrapper {
    flex-direction: column;
    position: absolute;
    min-width: 180px;
}

.language-switcher.dropdown .lang-item {
    justify-content: flex-start;
    width: 100%;
}

/* ✨ Hover Animations */
@keyframes language-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.lang-item.active {
    animation: language-pulse 2s ease-in-out infinite;
}

/* 🌟 Sparkle Effect on Active Language */
.lang-item.active::after {
    content: '✨';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    animation: sparkle-rotate 3s linear infinite;
}

@keyframes sparkle-rotate {
    0% { transform: rotate(0deg); opacity: 1; }
    50% { opacity: 0.5; }
    100% { transform: rotate(360deg); opacity: 1; }
}

