/* ============================================================
   Monthly Climate — monthly-climate.css
   ============================================================ */

.mc-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  min-height: 60vh;
}
.mc-page .page-breadcrumb { max-width: none; margin: 0; }

.mc-title { font-size: 28px; font-weight: 800; color: var(--text, #111); margin: 12px 0 4px; letter-spacing: -0.02em; }
.mc-sub { font-size: 14px; color: var(--text-3, #9ca3af); margin: 0 0 20px; }

/* ── Hero ── */
.mc-hero {
  display: flex; align-items: center; gap: 32px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #0D5EAF 0%, #1a73c7 100%);
  border-radius: 16px; color: #fff; margin-bottom: 20px;
}
.mc-hero-temp { text-align: center; }
.mc-hero-temp-val { font-size: 56px; font-weight: 800; line-height: 1; }
.mc-hero-temp-val small { font-size: 28px; font-weight: 400; opacity: .7; }
.mc-hero-temp-label { font-size: 12px; opacity: .7; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.mc-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; flex: 1; }
.mc-hstat { text-align: center; }
.mc-hstat-val { font-size: 22px; font-weight: 700; }
.mc-hstat-val small { font-size: 13px; font-weight: 400; opacity: .7; }
.mc-hstat-label { font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }

/* ── Section label ── */
.mc-section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-3, #9ca3af); margin: 24px 0 10px;
}

/* ── Detail cards ── */
.mc-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mc-card {
  padding: 18px; background: var(--card, #fff);
  border: 1px solid var(--border, #e5e7eb); border-radius: 14px;
}
.mc-card-icon { font-size: 20px; margin-bottom: 6px; }
.mc-card-title { font-size: 12px; color: var(--text-3, #9ca3af); text-transform: uppercase; letter-spacing: .04em; }
.mc-card-main { font-size: 22px; font-weight: 700; color: var(--text, #111); margin: 4px 0 2px; }
.mc-card-sub { font-size: 12px; color: var(--text-2, #6b7280); margin-bottom: 10px; }
.mc-bar-wrap { margin-top: auto; }
.mc-bar { height: 4px; background: var(--border, #e5e7eb); border-radius: 2px; overflow: hidden; }
.mc-bar-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.mc-bar-fill.temp { background: linear-gradient(90deg, #3b82f6, #ef4444); }
.mc-bar-fill.rain { background: #3b82f6; }
.mc-bar-fill.sun { background: #f59e0b; }
.mc-bar-fill.wind { background: #8b5cf6; }
.mc-bar-fill.humidity { background: #06b6d4; }
.mc-bar-fill.sea { background: #0ea5e9; }

/* ── Summary table ── */
.mc-summary {
  background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px; overflow: hidden;
}
.mc-table { width: 100%; border-collapse: collapse; }
.mc-table td { padding: 12px 20px; font-size: 14px; border-bottom: 1px solid var(--border-light, #f3f4f6); }
.mc-table td:first-child { color: var(--text-2, #6b7280); width: 45%; }
.mc-table td:last-child { color: var(--text, #111); font-weight: 500; }
.mc-table tr:last-child td { border-bottom: 0; }

/* ── Description ── */
.mc-desc-section {
  margin: 28px 0 0; padding: 24px;
  background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 14px;
}
.mc-desc-section h2 { font-size: 18px; font-weight: 700; color: var(--text, #111); margin: 0 0 10px; }
.mc-desc-section p { font-size: 14px; line-height: 1.8; color: var(--text-2, #4b5563); margin: 0; }

/* ── Month navigation ── */
.mc-month-nav { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 0; }
.mc-month-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 20px; background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px; font-size: 14px; font-weight: 600; color: #166CBE;
  text-decoration: none; transition: background .2s, border-color .2s;
}
.mc-month-btn:hover { background: rgba(22,108,190,.06); border-color: #166CBE; }
.mc-month-arr { font-size: 18px; }

/* ── All months grid ── */
.mc-all-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mc-month-chip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text, #111);
  text-decoration: none; transition: background .2s, border-color .2s;
}
.mc-month-chip:hover { background: rgba(22,108,190,.06); border-color: #166CBE; }
.mc-month-chip.active { background: #166CBE; color: #fff; border-color: #166CBE; }
.mc-month-chip.active .mc-month-temp { color: rgba(255,255,255,.7); }
.mc-month-temp { font-size: 12px; color: var(--text-3, #9ca3af); font-weight: 600; }

/* ── Related links ── */
.mc-related { margin: 24px 0 0; padding: 20px 24px; background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 14px; }
.mc-related-title { font-size: 15px; font-weight: 600; color: var(--text, #111); margin: 0 0 12px; }
.mc-related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-related-links a {
  padding: 8px 14px; background: rgba(22,108,190,.05); border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px; font-size: 13px; font-weight: 500; color: #166CBE; text-decoration: none;
  transition: background .2s;
}
.mc-related-links a:hover { background: rgba(22,108,190,.14); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .mc-hero { flex-direction: column; text-align: center; gap: 20px; }
  .mc-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .mc-details { grid-template-columns: repeat(2, 1fr); }
  .mc-all-months { grid-template-columns: repeat(3, 1fr); }
  .mc-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .mc-details { grid-template-columns: 1fr; }
  .mc-all-months { grid-template-columns: repeat(2, 1fr); }
}

/* ── DATE LINKS GRID ── */
.mc-dates-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-date-link {
  padding: 8px 14px; background: rgba(22,108,190,.05); border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px; font-size: 13px; font-weight: 500; color: #166CBE; text-decoration: none;
  transition: background .2s;
}
.mc-date-link:hover { background: rgba(22,108,190,.14); }

/* ── NIGHT MODE ── */
body.is-night .mc-hero { background: linear-gradient(135deg, #052858 0%, #063668 100%); }
