/* ===== CSS Variables (mirrors homepage) ===== */
:root {
  --bg: #0f0f1a;
  --bg2: #1a1a2e;
  --surface: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.1);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #60a5fa;
  --accent2: #818cf8;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="light"] {
  --bg: #f0f4f8;
  --bg2: #e2e8f0;
  --surface: rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.1);
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent2: #4f46e5;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ===== Header ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.back-link:hover { color: var(--text); text-decoration: none; }

.icon-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); }
[data-theme="light"] .icon-btn:hover { background: rgba(0,0,0,0.08); }

/* ===== Main Content ===== */
.city-main {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.city-h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.static-answer {
  font-size: 1.05rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ===== Countdown ===== */
.countdown-section {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-num {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .countdown-num {
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
  -webkit-background-clip: text;
  background-clip: text;
}

.countdown-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.countdown-sep {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
  align-self: flex-start;
  padding-top: 0.2rem;
}

.countdown-label-city {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Sections ===== */
.facts-section,
.faq-section,
.related-section {
  margin-bottom: 2.5rem;
}

.facts-section h2,
.faq-section h2,
.related-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.facts-section p {
  color: var(--text);
  margin-bottom: 0.9rem;
  line-height: 1.75;
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  padding: 0.9rem 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ===== Related Links ===== */
.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related-link {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.related-link:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: var(--accent);
  text-decoration: none;
}

.related-home {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.3);
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

.footer-nav {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

/* ===== Speak Button (happy-new-year page) ===== */
.speak-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; cursor: pointer; font-size: 0.9rem; color: var(--text); opacity: 0.7; }
.speak-btn:hover { opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .countdown-sep { display: none; }
  .countdown-grid { gap: 1rem; }
  .countdown-num { font-size: 2.5rem; }
}
