/* =========================================================
   이코노 라운지 (Econo Lounge) — 공통 스타일시트
   ---------------------------------------------------------
   모든 페이지가 이 파일을 공유합니다.
   색/폰트/간격은 :root 변수로 관리하세요.
   ========================================================= */

:root {
  /* 색상: 딥 잉크 네이비 + 따뜻한 앰버 포인트 */
  --ink: #15233b;
  --ink-soft: #2a3b57;
  --paper: #f7f5ef;
  --paper-card: #ffffff;
  --line: #e3ddd0;
  --amber: #d98a2b;
  --amber-soft: #f3e6d0;
  --teal: #1f7a6d;
  --teal-soft: #e1f0ed;
  --rust: #b5462f;
  --muted: #6b7280;
  --text: #1f2a3a;
  --shadow-sm: 0 1px 3px rgba(21,35,59,0.08), 0 1px 2px rgba(21,35,59,0.06);
  --shadow-md: 0 6px 20px rgba(21,35,59,0.10), 0 2px 6px rgba(21,35,59,0.06);
  --radius: 12px;
  --maxw: 1080px;

  --font-display: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  --font-body: -apple-system, "Pretendard", "Segoe UI", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 헤더 / 네비게이션 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21,35,59,0.97);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: 0.3px; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--amber), #b56f1d);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: var(--shadow-sm);
}
.brand .sub { font-family: var(--font-body); font-size: 11px; font-weight: 400; color: #9fb0c9; letter-spacing: 1px; text-transform: uppercase; margin-left: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #c7d2e2; font-size: 14.5px; padding: 8px 14px; border-radius: 8px; display: block; transition: all .15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.10); text-decoration: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ---------- 히어로 ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(217,138,43,0.18), transparent 60%),
    linear-gradient(160deg, #15233b 0%, #1d3151 55%, #243b5e 100%);
  color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
.hero h1 .accent { color: var(--amber); font-style: italic; }
.hero p { font-size: clamp(15px, 2.2vw, 18px); color: #cdd8e8; margin: 0 0 28px; max-width: 620px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .15s; text-decoration: none;
}
.btn-primary { background: var(--amber); color: #1a1206; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #e89a3e; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); text-decoration: none; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head .eyebrow { color: var(--amber); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 34px); margin: 8px 0 12px; color: var(--ink); line-height: 1.2; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- 지표 카드 그리드 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ind-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: all .18s; display: flex; flex-direction: column; min-height: 180px;
}
.ind-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; border-color: #d4cbb8; }
.ind-card .ic-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ind-card .ic-glyph {
  width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 21px; background: var(--amber-soft); color: var(--amber);
}
.ind-card h3 { font-family: var(--font-display); font-size: 19px; margin: 0; color: var(--ink); }
.ind-card .ic-desc { font-size: 14px; color: var(--muted); margin: 0 0 14px; flex: 1; }
.ind-card .ic-foot { font-size: 13px; color: var(--teal); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* ---------- 본문 콘텐츠 (소개/정책 등) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 40px); color: var(--ink); margin: 0 0 8px; line-height: 1.2; }
.prose .dek { font-size: 17px; color: var(--muted); margin: 0 0 32px; }
.prose h2 { font-family: var(--font-display); font-size: 24px; color: var(--ink); margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--amber-soft); }
.prose h3 { font-size: 18px; color: var(--ink-soft); margin: 24px 0 8px; }
.prose p { font-size: 15.5px; margin: 12px 0; color: var(--text); }
.prose ul { font-size: 15.5px; line-height: 1.9; padding-left: 22px; }
.prose ul li { margin-bottom: 6px; }
.prose .lead-box {
  background: var(--teal-soft); border-left: 4px solid var(--teal);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; font-size: 15.5px;
}

/* ---------- 지표 상세 페이지 ---------- */
.detail-head { background: linear-gradient(160deg, #15233b, #223956); color: #fff; padding: 44px 0 36px; }
.detail-head .breadcrumb { font-size: 13px; color: #9fb0c9; margin-bottom: 14px; }
.detail-head .breadcrumb a { color: #c7d2e2; }
.detail-head h1 { font-family: var(--font-display); font-size: clamp(26px, 4.5vw, 38px); margin: 0 0 10px; }
.detail-head .unit-tag { display: inline-block; font-size: 13px; background: rgba(217,138,43,0.22); color: #f3c98a; border: 1px solid rgba(217,138,43,0.4); padding: 4px 12px; border-radius: 20px; }

.detail-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }

.chart-panel { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.chart-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.chart-controls label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.chart-controls select {
  font-family: var(--font-body); font-size: 14px; padding: 8px 12px; border: 1px solid #c9cfd8;
  border-radius: 8px; background: #fff; color: var(--text);
}
.badges { margin-bottom: 6px; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 8px;
  margin: 0 10px 8px 0; background: var(--teal-soft); color: var(--teal); border: 1px solid #bfe0da;
}
.badge.down { background: #fbe6e1; color: var(--rust); border-color: #f0c5ba; }
.chart-box { position: relative; height: 340px; }
.chart-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }
.src-line { font-size: 12px; color: var(--muted); margin-top: 14px; }

.analysis-panel h2 { font-family: var(--font-display); font-size: 24px; color: var(--ink); margin: 0 0 4px; }
.analysis-block { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 24px 20px; box-shadow: var(--shadow-sm); margin-top: 14px; }
.analysis-block h3 { font-size: 16px; margin: 20px 0 6px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.analysis-block h3 .up-i { color: var(--teal); } .analysis-block h3 .down-i { color: var(--rust); }
.analysis-block p { font-size: 15px; margin: 6px 0; }

.related { margin-top: 10px; }
.related h4 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { font-size: 14px; padding: 8px 14px; background: var(--paper-card); border: 1px solid var(--line); border-radius: 20px; color: var(--ink-soft); }
.related-links a:hover { border-color: var(--amber); color: var(--amber); text-decoration: none; }

/* ---------- 면책 / 콜아웃 ---------- */
.disclaimer {
  background: #fcf6ea; border: 1px solid #ecd9a8; border-radius: 10px;
  padding: 16px 20px; font-size: 13.5px; color: #6f5a23; line-height: 1.7; margin: 24px 0;
}
.disclaimer strong { color: #574716; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--ink); color: #aeb9cc; padding: 44px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin: 0 0 12px; font-family: var(--font-body); letter-spacing: .5px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: #aeb9cc; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-about { font-size: 13.5px; line-height: 1.7; max-width: 320px; }
.footer-about .brand-sm { font-family: var(--font-display); font-size: 18px; color: #fff; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; font-size: 12.5px; color: #7e8aa0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- 광고 자리 ---------- */
.ad-slot { margin: 28px 0; min-height: 0; text-align: center; }
.ad-slot ins { margin: 0 auto; }

/* ---------- 캘린더 공통 ---------- */
.cal-panel { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.cal-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-controls label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.cal-controls select { font-family: var(--font-body); font-size: 14px; padding: 8px 12px; border: 1px solid #c9cfd8; border-radius: 8px; background: #fff; color: var(--text); }
.hc-status { color: var(--muted); font-size: 14px; padding: 24px; text-align: center; }
.cal-note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.6; background: #fcf6ea; border: 1px solid #ecd9a8; border-radius: 8px; padding: 10px 14px; }
.cal-note a { color: var(--teal); }

/* 휴장일 리스트 */
.hc-item { display: flex; align-items: center; gap: 16px; padding: 12px 4px; border-bottom: 1px solid #f0ece1; }
.hc-item:last-child { border-bottom: none; }
.hc-item.is-past { opacity: 0.45; }
.hc-date { flex-shrink: 0; width: 56px; text-align: center; background: var(--paper); border-radius: 8px; padding: 6px 0; border: 1px solid var(--line); }
.hc-mon { display: block; font-size: 11px; color: var(--rust); font-weight: 600; }
.hc-day { display: block; font-size: 20px; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.hc-info { flex: 1; min-width: 0; }
.hc-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.hc-sub { font-size: 12.5px; color: var(--muted); }
.hc-dd { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 52px; text-align: right; }
.hc-dd.hc-soon { color: var(--amber); }
.hc-dd.hc-past { color: #c9c3b4; font-weight: 400; }

/* 경제 캘린더 이벤트 */
.ec-item { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--paper-card); box-shadow: var(--shadow-sm); }
.ec-dd { flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; font-family: var(--font-display); background: var(--ink); color: #fff; }
.ec-dd.ec-soon { background: var(--amber); color: #1a1206; }
.ec-body { flex: 1; min-width: 0; }
.ec-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.ec-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.ec-imp { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 10px; }
.ec-imp.imp-high { background: #fbe6e1; color: var(--rust); }
.ec-imp.imp-mid { background: var(--teal-soft); color: var(--teal); }
.ec-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.ec-desc { font-size: 14px; color: var(--text); line-height: 1.6; }

@media (max-width: 640px) {
  .hc-dd { min-width: 44px; }
  .ec-dd { width: 54px; height: 54px; font-size: 15px; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--ink); flex-direction: column; gap: 0; padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 22px; border-radius: 0; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .detail-grid { padding: 28px 0; }
  .chart-box { height: 280px; }
  .section { padding: 40px 0; }
}
