/**
 * Google Translate Widget Styles
 * 유료 Google Cloud Translation API를 사용한 번역 위젯 스타일
 */

#google-translate-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    min-width: 200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#google-translate-widget .gt-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#google-translate-widget .gt-widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#google-translate-widget .gt-widget-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 1;
    transition: color 0.2s;
}

#google-translate-widget .gt-widget-close:hover {
    color: #333;
}

#google-translate-widget .gt-widget-body {
    margin-bottom: 10px;
}

/* 커스텀 언어 선택 목록 (select 대신) */
#google-translate-widget .gt-language-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

#google-translate-widget .gt-lang-option {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    color: #333;
    transition: color 0.2s, background 0.2s;
}

#google-translate-widget .gt-lang-option:hover {
    background: #f5f5f5;
}

#google-translate-widget .gt-lang-option.active {
    color: #4285f4;
    font-weight: 500;
}

#google-translate-widget .gt-lang-option:focus {
    outline: none;
}

#google-translate-widget .gt-lang-separator {
    display: block;
    height: 1px;
    background: #eee;
    margin: 0;
}

#google-translate-widget .gt-widget-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
    text-align: center;
}

#google-translate-widget .gt-widget-status {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

#google-translate-widget .gt-widget-status.loading {
    color: #4285f4;
}

#google-translate-widget .gt-widget-status.error {
    color: #ea4335;
}

#google-translate-widget .gt-widget-status.success {
    color: #34a853;
}

/* 위젯 토글 버튼 (페이지에 고정) */
#google-translate-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9998;
    width: 50px;
    height: 50px;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#google-translate-toggle:hover {
    background: #357ae8;
    transform: scale(1.1);
}

#google-translate-toggle.active {
    background: #ea4335;
}

/* 반응형 디자인 */
@media (max-width: 1650px) {
	#google-translate-toggle{
		top:0.5rem;
		right:0.5rem;
	}
}

@media (max-width: 1420px) {
	#google-translate-toggle{top:1rem; right:3.5rem;}
}
@media (max-width: 768px) {
    #google-translate-widget {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    #google-translate-toggle {
        top:0.7rem; right:2.9rem;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}


/* 번역 중 표시 */
.gt-translating {
    opacity: 0.6;
    pointer-events: none;
}

.gt-translating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10000;
}

