/* Language Switcher Component - Rounded Rectangle Design */
.language-switcher {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.language-btn {
    min-width: 80px;
    height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.language-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    transition: left 0.5s ease;
    border-radius: 8px;
}

.language-btn:hover::before {
    left: 100%;
}

.language-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

/* No active state needed for single switcher */

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.language-btn:hover .flag-icon {
    border-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* Flag designs */
.flag-kr {
    background-image: url('https://page.gensparksite.com/v1/base64_upload/589d2ec6c72a00df9e1c98e4e4cd02c5');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flag-us {
    background: repeating-linear-gradient(
        to bottom,
        #B22234 0px,
        #B22234 1.4px,
        #FFFFFF 1.4px,
        #FFFFFF 2.8px
    );
    position: relative;
}

.flag-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 50%;
    background: #3C3B6E;
    border-radius: 1px 0 0 0;
}

/* Language text */
.language-btn .language-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.02em;
}

.language-btn:hover .language-text {
    color: #000;
}

/* Subtle pulse animation */
.language-btn {
    animation: languagePulse 5s infinite;
}

@keyframes languagePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        border-color: rgba(0, 0, 0, 0.15);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .language-switcher {
        bottom: 90px;
        left: 20px;
    }
    
    .language-btn {
        min-width: 70px;
        height: 36px;
        padding: 6px 10px;
        gap: 6px;
    }
    
    .flag-icon {
        width: 20px;
        height: 15px;
    }
    
    .language-text {
        font-size: 12px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .language-switcher {
        bottom: 90px;
        left: 15px;
    }
    
    .language-btn {
        min-width: 65px;
        height: 32px;
        padding: 5px 8px;
        gap: 5px;
    }
    
    .flag-icon {
        width: 18px;
        height: 14px;
    }
    
    .language-text {
        font-size: 11px;
    }
}

/* Pause animation on hover */
.language-btn:hover {
    animation-play-state: paused;
}