/* 언어 선택 UI 스타일 */

.language-switcher {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 10000;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-switcher:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 28px;
    transition: all 0.3s ease;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.lang-btn.active {
    opacity: 1;
    background: rgba(103, 126, 234, 0.15);
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #667eea;
    border-radius: 2px;
}

/* 국기 이미지 스타일 */
.flag-img {
    width: 24px;
    height: auto;
    display: block;
    border-radius: 3px;
    user-select: none;
    pointer-events: none;
}

/* 툴팁 */
.lang-btn[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10001;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .language-switcher {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        gap: 6px;
    }

    .lang-btn {
        padding: 4px 8px;
    }

    .flag-img {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        bottom: 8px;
        right: 8px;
        padding: 5px 8px;
        gap: 4px;
    }

    .lang-btn {
        padding: 3px 6px;
    }

    .flag-img {
        width: 18px;
    }
}

/* 애니메이션 */
@keyframes languageSwitch {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1);
    }
}

.lang-btn.switching {
    animation: languageSwitch 0.4s ease;
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
    .language-switcher {
        background: rgba(44, 62, 80, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-btn.active {
        background: rgba(103, 126, 234, 0.25);
    }
}
