/* multilingual.css - 다국어 지원을 위한 스타일 */

/* 언어 선택기 스타일 */
.lang-selector {
    position: relative;
    margin-left: 20px;
    z-index: 2000; /* 최상위 z-index로 설정 */
}

.current-lang {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #f3f3f3;
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.current-lang:hover {
    background-color: #e6e6e6;
}

.current-lang i {
    margin-left: 6px;
    font-size: 0.75rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 150px;
    display: none;
    z-index: 2500; /* 다른 요소보다 높은 z-index */
    overflow: hidden;
}

/* 클래스 기반 표시 */
.lang-selector.active .lang-dropdown {
    display: block !important;
}

/* 보조 수단으로 호버도 유지 */
.lang-selector:hover .lang-dropdown {
    display: block;
}

.lang-dropdown li {
    padding: 10px 15px;
    margin: 0;
    cursor: pointer !important;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%; /* 전체 너비 사용 */
    z-index: 3000; /* 최상위 z-index 사용 */
    position: relative;
}

.lang-dropdown li:hover {
    background-color: #f5f5f5;
}

.lang-dropdown img {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    object-fit: cover;
}

/* 언어 지원 배지 */
.language-support {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 12px 0;
}

.lang-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-badge.ko {
    background-color: #FFD8CC;
    color: #FF5722;
}

.lang-badge.en {
    background-color: #CCE5FF;
    color: #0066CC;
}

.lang-badge.ja {
    background-color: #FFE0B2;
    color: #E65100;
}

.lang-badge.zh {
    background-color: #FFCCBC;
    color: #D84315;
}

.lang-badge.coming-soon {
    background-color: #E0E0E0;
    color: #757575;
}

/* 서비스 가용성 스타일 */
.card.not-available {
    opacity: 0.7;
    position: relative;
}

.card.not-available::after {
    content: attr(data-unavailable-msg);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background-color: rgba(255, 99, 71, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 10;
}

.card.not-available .card-content {
    pointer-events: none;
}

/* 다국어 서비스 안내 섹션 */
.language-info {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.lang-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.lang-info-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.lang-info-card:hover {
    transform: translateY(-5px);
}

.lang-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.lang-icon.ko {
    background-color: #FFD8CC;
    color: #FF5722;
}

.lang-icon.en {
    background-color: #CCE5FF;
    color: #0066CC;
}

.lang-icon.ja {
    background-color: #FFE0B2;
    color: #E65100;
}

.lang-icon.zh {
    background-color: #FFCCBC;
    color: #D84315;
}

.lang-info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #333;
}

.lang-info-content p {
    color: #666;
    font-size: 0.9rem;
}

/* 언어별 폰트 최적화 */
html[lang="ko"] body {
    font-family: 'Noto Sans KR', sans-serif;
}

html[lang="en"] body {
    font-family: 'Noto Sans', sans-serif;
}

html[lang="ja"] body {
    font-family: 'Noto Sans JP', sans-serif;
}

html[lang="zh"] body {
    font-family: 'Noto Sans SC', sans-serif;
}

/* 활성화된 언어 스타일 */
.lang-dropdown li.active {
    background-color: #f0f0f0;
    font-weight: 700;
}

/* 언어 전환 시 트랜지션 효과 */
body {
    transition: opacity 0.3s ease;
}

body.lang-transition {
    opacity: 0.5;
}

/* 선택기 활성화 상태에서 드롭다운 강제 표시 */
.lang-selector.active .lang-dropdown,
.lang-selector:focus-within .lang-dropdown,
.lang-dropdown:hover {
    display: block !important;
}

/* ============================================
   푸터 레이아웃 수정 (새로 추가된 부분)
   ============================================ */

/* 푸터 레이아웃 전체 수정 */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

/* 푸터 로고와 연락처 영역 */
.footer-logo, .footer-contact {
    flex: 1;
    min-width: 250px;
}

/* 푸터 언어 지원 영역 - 아래쪽에 배치 */
.footer-lang-support {
    flex-basis: 100%;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* 푸터 언어 배지 컨테이너 - 수평 배열 및 가운데 정렬 */
.footer-lang-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

/* 푸터 언어 배지 스타일 */
.footer-lang-badges .lang-badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-lang-badges .lang-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 지원 언어 섹션 타이틀 스타일 */
.footer-lang-support h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* 현재 언어 강조 표시 */
.footer-lang-badges .lang-badge.active {
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .lang-selector {
        margin-left: 15px;
    }
    
    .current-lang {
        padding: 4px 10px;
    }
    
    .lang-dropdown {
        right: 0;
        width: 150px;
    }
    
    .lang-info-container {
        grid-template-columns: 1fr;
    }
    
    .lang-info-card {
        padding: 15px;
    }
    
    /* 모바일에서 언어 선택기 탭 영역 확장 */
    .lang-dropdown li {
        padding: 15px;
    }
    
    .current-lang {
        padding: 8px 12px;
    }
    
    /* 푸터 레이아웃 모바일 최적화 */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-logo, .footer-contact {
        flex: 0 0 100%;
    }
    
    .footer-lang-support {
        margin-top: 20px;
    }
    
    /* 모바일에서도 수평 배열 유지 */
    .footer-lang-badges {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .footer-lang-badges .lang-badge {
        padding: 5px 10px;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    /* 모바일에서 이메일 주소 스타일 개선 */
    .email {
        display: inline-block;
        margin-top: 5px;
        word-break: break-all;
    }
}

/* 더 작은 화면에서의 최적화 */
@media (max-width: 360px) {
    .footer-lang-badges {
        gap: 5px;
    }
    
    .footer-lang-badges .lang-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}
