/* features/01-header/header.css - 중복 제거 클린 버전 */

/* ==========================================
   🌟 1. 헤더 메인 레이아웃
========================================== */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo h1 {
    color: var(--text-primary);
    font-size: 1.5em;
    font-weight: 900;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==========================================
   🌟 2. 외부 링크 아이콘 스타일
========================================== */
.external-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.external-links img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    object-fit: contain;
}

.github-logo {
    background: white;
    border-radius: 50% !important; /* 깃허브 로고 동그랗게 강제 */
}

.external-links a:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

.text-icon-link {
    text-decoration: none;
}

.text-icon-link:hover .wdot-icon {
    transform: scale(1.1);
    background-color: #000;
}

.wdot-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background-color: #333;
    color: white;
    font-weight: 900;
    font-family: 'Verdana', sans-serif;
    font-size: 16px;
    border-radius: 50%;
    transition: transform 0.2s, background-color 0.2s;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ==========================================
   🌟 3. 테마 토글 버튼 스타일
========================================== */
.theme-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-btn:hover {
    background: var(--border-color);
    transform: scale(1.1) rotate(15deg);
}

/* ==========================================
   🌟 4. 언어 선택 토글 스위치 디자인
========================================== */
.lang-switch {
    display: flex;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.lang-switch input[type="radio"] {
    display: none;
}

.lang-switch label {
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85em;
    font-weight: 800;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.lang-switch input[type="radio"]:checked + label {
    background: var(--bg-surface);
    color: var(--accent-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}