Copy/* ===== CSS 변수 (다크모드 기본) ===== */
:root {
  --bg-base:       #0d1117;
  --bg-surface:    #161b22;
  --bg-elevated:   #1c2128;
  --bg-overlay:    rgba(22,27,34,0.95);
  --text-primary:  #e6edf3;
  --text-secondary:#8b949e;
  --text-muted:    #484f58;
  --border-default:#30363d;
  --border-subtle: #21262d;
  --orange:        #f7931a;
  --orange-dim:    #2a1500;
  --orange-border: #f7931a40;
  --blue:          #58a6ff;
  --blue-dim:      #0a1a2a;
  --blue-border:   #58a6ff40;
  --green:         #3fb950;
  --green-dim:     #0a2a0a;
  --green-border:  #3fb95040;
  --red:           #f85149;
  --input-bg:      #0d1117;
  --footer-bg:     #161b22;
  --transition:    0.3s ease;
}

/* ===== 라이트모드 오버라이드 ===== */
[data-theme="light"] {
  --bg-base:       #f6f8fa;
  --bg-surface:    #ffffff;
  --bg-elevated:   #f0f3f6;
  --bg-overlay:    rgba(255,255,255,0.95);
  --text-primary:  #1a1f2e;
  --text-secondary:#57606a;
  --text-muted:    #8c959f;
  --border-default:#d0d7de;
  --border-subtle: #e8ecef;
  --orange-dim:    #fff3e0;
  --blue-dim:      #e8f3ff;
  --green-dim:     #e6f9ec;
  --input-bg:      #f6f8fa;
  --footer-bg:     #ffffff;
}

/* ===== 기본 설정 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding-top: 70px;
}

/* ===== 기존 네비 숨김 ===== */
.nav {
  display: none !important;
}

/* ===== 헤더 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--orange);
  font-weight: bold;
  font-size: 1.3rem;
}

.logo span {
  color: var(--text-primary);
}

/* ===== 데스크톱 네비 ===== */
.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}

.desktop-nav a:hover {
  color: var(--orange);
}

/* ===== 토글 버튼 ===== */
.theme-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.desktop-only {
  display: flex;
}

/* ===== 햄버거 메뉴 ===== */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-menu span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== 모바일 메뉴 ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-default);
  box-shadow: -5px 0 25px rgba(0,0,0,0.6);
  transition: right 0.3s ease;
  z-index: 2000;
  padding: 2rem 0;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu button:first-child {
  align-self: flex-end;
  margin: 0 1.5rem 2rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1;
}

.mobile-menu a {
  display: block;
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-default);
  transition: var(--transition);
  font-size: 1.05rem;
}

.mobile-menu a:hover {
  background: var(--orange-dim);
  color: var(--orange);
  border-left: 3px solid var(--orange);
}

.mobile-menu button:last-child {
  margin: 1.5rem 1.5rem 0;
  padding: 1rem;
  width: calc(100% - 3rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.mobile-menu button:last-child:hover {
  background: var(--orange-dim);
  border-color: var(--orange);
  color: var(--orange);
}

/* ===== 오버레이 ===== */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 1500;
}

.overlay.active {
  display: block;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .desktop-nav,
  .desktop-only {
    display: none !important;
  }
  
  .hamburger-menu {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .header .container {
    padding: 0 1rem;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  body {
    padding-top: 60px;
  }
}
