/* 언어 선택 국기 스타일 */

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-flags {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 20px;
    position: relative;
}

.lang-flag:hover {
    border-color: #5AABA5;
    background: #fff;
    transform: scale(1.1);
}

.lang-flag.active {
    border-color: #5AABA5;
    background: #fff;
    box-shadow: 0 2px 8px rgba(90, 171, 165, 0.3);
}

.lang-flag.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #5AABA5;
    border-radius: 50%;
}

/* 국기 이모지 스타일 */
.lang-flag-icon {
    font-size: 20px;
    line-height: 1;
}

/* 툴팁 */
.lang-flag::before {
    content: attr(data-lang);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

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

/* 모바일 대응 */
@media (max-width: 768px) {
    .lang-flag {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .lang-flags {
        gap: 8px;
    }
}
