/* ==========================================================================
  File: base.css
  Purpose: 전역 리셋, 컬러 토큰(다크/라이트 테마), 공통 버튼/링크/유틸 등
  Contains:
    - Reset & Base Typography
    - CSS 변수(테마 토큰)
    - 공통 버튼 스타일, 링크, 유틸리티 클래스
  Depends on: (없음) — 가장 먼저 로드
  Import order: 1 / 3
========================================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans KR, Pretendard, Arial, Apple SD Gothic Neo, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}

/* ===== Theme Tokens ===== */
:root {
  /* Tones inspired by Toss/Upbit */
  --bg: #0b0e13;
  --fg: #e8edf3;
  --muted: #98a1b3;
  --surface: #12161d;
  --surface-2: #1a2030;
  --border: #2a3242;
  --brand: #2b74ff;
  --brand-2: #1d4ed8;
  --accent: #15c681;
  --accent-2: #0ea371;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 6px 18px rgba(0,0,0,.22);
  --shadow-soft: 0 2px 8px rgba(0,0,0,.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

.light {
  --bg: #f7f9fc;
  --fg: #0f172a;
  --muted: #5b6478;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --border: #e5eaf1;
  --brand: #1f5eff;
  --brand-2: #1541b8;
  --accent: #0fb572;
  --accent-2: #0a8a57;
  --danger: #e23d3d;
  --warning: #e49814;
  --shadow: 0 6px 16px rgba(0,0,0,.08);
  --shadow-soft: 0 2px 6px rgba(0,0,0,.06);
}

/* ===== Buttons (generic) ===== */
button {
  cursor: pointer;
  border: 0;
  border-radius: var(--radius-md);
  padding: 9px 13px;
  transition: transform .05s ease, background .2s ease, box-shadow .2s ease;
}
button:active { transform: translateY(1px); }
button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: var(--shadow-soft);
}
button.primary:hover { filter: brightness(1.05); }
button.ghost {
  background: var(--surface-2); color: var(--fg); border: 1px solid var(--border);
}
button.ghost:hover { border-color: var(--brand); }
button.w100 { width: 100%; }

/* ===== Links & Utilities ===== */
.stock-link { color: var(--brand); text-decoration: underline; cursor: pointer; }
.stock-link:hover { color: var(--accent); }
.muted { color: var(--muted); }
