/**
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * ⚡ APC System - Header Stylesheet
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * 📁 파일명: /www/_acc/css/header.css
 * 📌 버전: v2.0
 * 📅 작성일: 2025-12-24
 * 📝 설명: ★ Top Nav Bar 대응 추가 (기존 v1.9 유지)
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * Sticky Header Wrapper
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
}

/* ★★★ [v2.0] Top Nav Bar 대응 ★★★ */
body.has-top-nav .sticky-header-wrapper {
    top: 50px;
}

@media (max-width: 768px) {
    body.has-top-nav .sticky-header-wrapper {
        top: 48px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * Sticky Header (기존 v1.9)
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sticky-header {
    background: linear-gradient(135deg, #f59e0b 0%, #FF6B35 50%, #E91E63 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 0;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-center {
    text-align: center;
}

.sticky-header h1 {
    font-size: 1.8em;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.sticky-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9em;
}

/* Hero 슬로건 */
.sticky-header p.hero-slogan {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 10px 0 14px 0;
    line-height: 1.4;
    max-width: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .sticky-header p.hero-slogan {
    color: rgba(255, 255, 255, 0.9);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * 헤더 우측 컨트롤 (다크모드 + 언어)
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.header-controls {
    position: absolute;
    right: 5px;
    top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}

.theme-toggle-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle-btn .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle-btn .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle-btn .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle-btn .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * Hero 통계 영역
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s;
}

.hero-stat-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-stat-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.hero-stat-icon i {
    color: #fff7ed;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.hero-stat-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * 언어 드롭다운
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lang-dropdown {
    position: relative;
}

.lang-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lang-toggle-btn .icon-globe {
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.lang-toggle-btn .lang-current-flag {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.75rem;
    background: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-theme="dark"] .lang-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .lang-toggle-btn .lang-current-flag {
    background: var(--surface, #1e293b);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #fef3c7;
}

.lang-option.active {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.lang-option .lang-flag {
    font-size: 1.2rem;
}

.lang-option .lang-name {
    flex: 1;
}

.lang-option .lang-check {
    color: #f59e0b;
    font-size: 0.85rem;
}

[data-theme="dark"] .lang-menu {
    background: var(--surface, #1e293b);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .lang-option {
    color: var(--text, #f1f5f9);
    border-bottom-color: var(--border, #334155);
}

[data-theme="dark"] .lang-option:hover {
    background: var(--banana-light, #374151);
}

[data-theme="dark"] .lang-option.active {
    background: var(--banana-light, #374151);
    color: var(--banana-text, #fcd34d);
}

[data-theme="dark"] .lang-option .lang-check {
    color: var(--accent, #fbbf24);
}