/* ASTRA Phase 2 Styles — Language Switch + Minimal Icons */

/* ============================================
   Base — Reuse EAHub Variables
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

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

:root {
  --bg: #fafbfc;
  --bg-card: #ffffff;
  --bg-soft: #f8f9fc;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border: #f0f1f3;
  --border-hover: #e5e7eb;
  --accent: #3b3f6b;
  --accent-soft: #e8eaf0;
  --highlight: #c9a04f;
  --highlight-soft: #f5ecd8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.02);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.06);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-weight: 300;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 500px;
  background:
    radial-gradient(ellipse 700px 350px at 15% 10%, rgba(59, 63, 107, 0.06), transparent),
    radial-gradient(ellipse 600px 300px at 80% 15%, rgba(59, 63, 107, 0.04), transparent),
    radial-gradient(ellipse 500px 250px at 50% 0%, rgba(201, 160, 79, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Language Switch
   ============================================ */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

.lang-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  overflow: hidden;
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(59, 63, 107, 0.25);
}

.lang-btn.active:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Language switch transition animation */
.lang-switch[data-animating] .lang-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switch[data-animating] .lang-btn.active {
  animation: langPulse 0.4s ease;
}

@keyframes langPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.lang-divider {
  color: var(--text-tertiary);
  font-size: 10px;
  opacity: 0.5;
}

/* ============================================
   Minimal Line Icons (SVG)
   ============================================ */
.icon-svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-svg .accent {
  stroke: var(--highlight);
  transition: stroke 0.3s ease;
}

/* Card hover: SVG icon micro-animation */
.entry-card:hover .icon-svg,
.blueprint-entry:hover .icon-svg {
  transform: scale(1.08);
  stroke: var(--highlight);
}

.entry-card:hover .icon-svg .accent,
.blueprint-entry:hover .icon-svg .accent {
  stroke: var(--accent);
}

/* Subtle glow on hover */
.entry-card:hover .icon-svg {
  filter: drop-shadow(0 2px 6px rgba(201, 160, 79, 0.2));
}

/* ============================================
   Layout
   ============================================ */
.dashboard {
  position: relative;
  z-index: 1;
  padding: 24px 28px 32px;
  max-width: 680px;
  margin: 0 auto;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dash-title .symbol {
  font-size: 30px;
  letter-spacing: 3px;
  opacity: 0.7;
  color: var(--accent);
  font-weight: 300;
}

.dash-title h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.dash-title .subtitle {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 300;
}

.dash-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; }

/* ============================================
   Pages
   ============================================ */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   Hero
   ============================================ */
.hero { text-align: center; padding: 32px 0 24px; }
.hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.hero p {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 300;
  max-width: 420px;
  margin: 0 auto 20px;
}
.badge {
  display: inline-block;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* ============================================
   Entry Cards — Minimal Style
   ============================================ */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.entry-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.entry-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.entry-card h3 .en {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.entry-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

.entry-card p .en {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ============================================
   Blueprint Entry
   ============================================ */
.blueprint-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.blueprint-entry::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--highlight);
}

.blueprint-entry .symbol {
  font-size: 28px;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 8px;
}

.blueprint-entry h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.blueprint-entry h3 .en {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.blueprint-entry p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 300;
}

.blueprint-entry p .en {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ============================================
   Panels
   ============================================ */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.panel-body { padding: 16px 18px; }

/* ============================================
   Forms
   ============================================ */
.form-row { display: flex; gap: 12px; margin-bottom: 14px; }
.form-row > div { flex: 1; }
.form-group { margin-bottom: 14px; }

label {
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-weight: 500;
}

label .en {
  color: var(--text-tertiary);
  font-weight: 300;
}

input, select {
  width: 100%;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-soft);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  outline: none;
}

input:focus, select:focus { border-color: var(--accent); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}
.btn:hover { opacity: 0.9; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ============================================
   Loading
   ============================================ */
.loading { text-align: center; padding: 80px 20px; }
.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--highlight);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ============================================
   Results
   ============================================ */
.result-header { text-align: center; padding: 24px 0; }
.result-tag {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.result-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 4px;
}
.result-title .en {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  margin-top: 4px;
}
.result-sub {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
}
.result-sub .en {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}
.stat-card.gold::before { background: var(--highlight); }
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-label .en {
  display: block;
  font-size: 9px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Insights */
.insight-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.insight-item:last-child { border-bottom: none; }
.insight-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: 4px;
}
.insight-label .en {
  color: var(--text-tertiary);
  font-weight: 300;
}
.insight-value {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
}
.insight-value .en {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Unlock Box */
.unlock-box {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}
.unlock-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(201,160,79,0.15), transparent 70%);
  pointer-events: none;
}
.unlock-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
  position: relative;
}
.unlock-box h3 .en {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  margin-top: 4px;
}
.unlock-box p {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 16px;
  font-weight: 300;
  position: relative;
}
.unlock-box p .en {
  display: block;
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
}
.unlock-btn {
  background: var(--highlight);
  color: #1a1a1a;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-size: 13px;
  position: relative;
  transition: opacity 0.2s;
}
.unlock-btn:hover { opacity: 0.9; }

/* Footer */
.footer {
  padding: 24px 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
  margin-top: 32px;
  letter-spacing: 0.5px;
}
.footer .en {
  display: block;
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 4px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
  .entry-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }

  /* Mobile language switch: move to top-right or stack */
  .lang-switch {
    position: absolute;
    top: 16px;
    right: 16px;
    gap: 6px;
  }
  .lang-btn {
    padding: 3px 8px;
    font-size: 10px;
  }
  .dash-header {
    position: relative;
    padding-top: 40px;
  }

  /* Small screen card single column */
  .entry-grid,
  .bazi-grid {
    grid-template-columns: 1fr;
  }

  /* Chart tabs: smaller font, tighter padding */
  .chart-tabs {
    gap: 2px;
    padding: 3px;
  }
  .chart-tab {
    padding: 8px 10px;
    font-size: 12px;
  }
  .chart-tab .tab-en {
    font-size: 9px;
  }

  /* Wu Xing bar chart: reduce height */
  .wuxing-bar-chart {
    height: 120px;
  }
  .wuxing-bar-track {
    height: 90px;
  }

  /* Planet list: tighter spacing */
  .planet-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .planet-symbol {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .planet-degree {
    font-size: 18px;
    min-width: 50px;
  }

  /* Error message: stack layout */
  .error-message {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Dashboard padding adjustment */
  .dashboard {
    padding: 16px 16px 24px;
  }
}

/* ============================================
   Wu Xing (Five Elements) Charts
   ============================================ */

/* Container */
.wuxing-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.wuxing-chart-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wuxing-chart-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Bar Chart */
.wuxing-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  height: 160px;
  padding: 0 8px;
}

.wuxing-bar {
  flex: 1;
  max-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wuxing-bar-track {
  width: 100%;
  height: 120px;
  background: var(--bg-soft);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.wuxing-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 6px;
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Five Elements Colors */
.wuxing-bar-fill.wood { background: linear-gradient(180deg, #4ade80, #22c55e); }
.wuxing-bar-fill.fire { background: linear-gradient(180deg, #fb7185, #ef4444); }
.wuxing-bar-fill.earth { background: linear-gradient(180deg, #fbbf24, #d97706); }
.wuxing-bar-fill.metal { background: linear-gradient(180deg, #e5e7eb, #9ca3af); }
.wuxing-bar-fill.water { background: linear-gradient(180deg, #60a5fa, #3b82f6); }

.wuxing-bar-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

.wuxing-bar-value {
  font-size: 10px;
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
}

/* Radar Chart */
.wuxing-radar {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  position: relative;
}

.wuxing-radar svg {
  width: 100%;
  height: auto;
}

.wuxing-radar-grid {
  stroke: var(--border);
  stroke-width: 1;
  fill: none;
}

.wuxing-radar-axis {
  stroke: var(--border-hover);
  stroke-width: 1;
}

.wuxing-radar-data {
  stroke: var(--accent);
  stroke-width: 2;
  fill: rgba(59, 63, 107, 0.12);
  transition: all 0.5s ease;
}

.wuxing-radar-point {
  fill: var(--accent);
  r: 3;
  transition: all 0.3s ease;
}

.wuxing-radar-label {
  font-size: 11px;
  fill: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  text-anchor: middle;
}

/* Radar hover interaction */
.wuxing-radar:hover .wuxing-radar-data {
  fill: rgba(59, 63, 107, 0.2);
  stroke-width: 2.5;
}

.wuxing-radar:hover .wuxing-radar-point {
  r: 4;
  fill: var(--highlight);
}

/* ============================================
   Error States
   ============================================ */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: shakeIn 0.4s ease;
}

@keyframes shakeIn {
  0% { transform: translateX(-8px); opacity: 0; }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  100% { transform: translateX(0); opacity: 1; }
}

.error-icon {
  width: 20px;
  height: 20px;
  stroke: #ef4444;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.error-content {
  flex: 1;
}

.error-title {
  font-size: 14px;
  font-weight: 500;
  color: #dc2626;
  margin-bottom: 4px;
}

.error-desc {
  font-size: 13px;
  color: #991b1b;
  line-height: 1.5;
}

.retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  background: #fff;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.retry-btn:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.retry-btn:active {
  transform: translateY(0);
}

/* ============================================
   Chart Result Display
   ============================================ */

/* Tab Navigation */
.chart-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 10px;
  margin-bottom: 16px;
}

.chart-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  text-align: center;
  position: relative;
}

.chart-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.5);
}

.chart-tab.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.chart-tab .tab-en {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-top: 2px;
  opacity: 0.7;
}

/* Chart Panel */
.chart-panel {
  display: none;
  animation: panelFadeIn 0.35s ease;
}

.chart-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BaZi Grid (Four Pillars) */
.bazi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.bazi-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.bazi-pillar:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-md);
}

.bazi-pillar-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 500;
}

.bazi-pillar-label .en {
  display: block;
  font-size: 9px;
  margin-top: 2px;
}

.bazi-stem {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bazi-branch {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
}

.bazi-hidden-stems {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
}

/* Planet List (Western Astrology) */
.planet-list {
  display: grid;
  gap: 8px;
}

.planet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.planet-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.planet-symbol {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft);
  font-size: 16px;
  flex-shrink: 0;
}

.planet-info {
  flex: 1;
}

.planet-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.planet-name .en {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 300;
  margin-left: 6px;
}

.planet-position {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.planet-aspect {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.planet-degree {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  text-align: right;
  min-width: 60px;
}
