:root {
  --primary: #1a2a40; /* Deep Navy */
  --accent: #c5a059;  /* Gold */
  --bg: #ffffff;
  --bg-sub: #f8f9fa;
  --text-main: #111111;
  --text-sub: #444444;
  --border: #eeeeee;
  --positive: #d63031;
  --negative: #0984e3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: 'Noto Serif KR', serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.premium-line {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 100%;
}

/* Navigation */
.magazine-nav {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-trigger {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.lang-switcher button {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ccc;
  cursor: pointer;
}

.lang-switcher button.active {
  color: var(--primary);
}

/* Hero Section */
.hero-magazine {
  padding: 80px 0;
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.category-tag {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 16px;
}

.hero-main-article h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.lead-text {
  font-size: 1.2rem;
  color: var(--text-sub);
  margin-bottom: 32px;
}

.article-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 40px;
}

.btn-read-more {
  display: inline-block;
  padding: 16px 32px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: transform 0.2s;
}

.btn-read-more:hover {
  transform: translateY(-2px);
}

.chart-container-mini {
  background: var(--bg-sub);
  padding: 30px;
  border-radius: 12px;
  height: 400px; /* 차트 높이 고정 */
  display: flex;
  flex-direction: column;
}

.chart-container-mini canvas {
  flex: 1; /* 남은 공간을 차트가 채우도록 설정 */
  width: 100% !important;
}

/* Insights Grid v2 (Reports) */
.insight-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.report-card {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.report-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.report-tag {
  display: inline-block;
  background: var(--bg-sub);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.report-card h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem;
  line-height: 1.4;
  margin-bottom: 24px;
  color: var(--primary);
}

.report-body p {
  font-size: 1rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  text-align: justify;
}

.report-source {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  color: #999;
}

.report-source strong {
  color: var(--accent);
}

/* Data Room (Dashboard) */
.data-room {
  padding: 100px 0;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 60px;
}

.section-header-centered h2 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.dashboard-controls-magazine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.market-switcher {
  display: flex;
  background: var(--bg-sub);
  padding: 4px;
  border-radius: 8px;
}

.market-switcher button {
  padding: 10px 24px;
  border: none;
  background: none;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.market-switcher button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-bar-magazine input {
  padding: 12px 24px;
  width: 300px;
  border: 1px solid var(--border);
  border-radius: 50px;
  outline: none;
}

.dashboard-card-magazine {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--bg-sub);
  padding: 20px;
  text-align: left;
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

td {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.rank-cell {
  font-weight: 800;
  color: var(--accent);
}

.etf-name-cell {
  font-weight: 700;
}

.val-positive { color: var(--positive); font-weight: 700; }
.val-negative { color: var(--negative); font-weight: 700; }

/* Deep Dive */
.deep-dive {
  padding-bottom: 100px;
}

.deep-dive-box {
  background: var(--primary);
  color: #fff;
  padding: 80px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.guide-steps {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  gap: 24px;
}

.step-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
}

.step h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step p {
  color: #aaa;
  font-size: 0.95rem;
}

/* Market Ticker */
.market-ticker {
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  margin-right: 50px;
}

.ticker-item .up { color: #ff7675; }
.ticker-item .down { color: #74b9ff; }

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Knowledge Base / Glossary */
.knowledge-base {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.glossary-grid-magazine {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.glossary-item dt {
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.glossary-item dd {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer Disclaimer */
.footer-disclaimer h4 {
  margin-bottom: 24px;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .deep-dive-box { grid-template-columns: 1fr; }
  .footer-grid-magazine { grid-template-columns: 1fr; gap: 40px; }
  .hero-main-article h1 { font-size: 2.5rem; }
}
