/* outlook.css — header matched to style.css, keeps outlook page styling */

:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --yes: #2ecc71;
  --no: #e74c3c;
  --text: #2c3e50;
  --muted: #7f8c8d;
  --primary: #3498db;

  --border: #e7edf4;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
  --bestGlow: 0 0 0 4px rgba(46, 204, 113, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ===== Header (MATCH style.css exactly) ===== */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e7edf4;
  margin-bottom: 0.35rem;
}

.site-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Primary header brand (style.css) */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.site-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Link on the right */
.site-link {
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.65;
  color: var(--primary);
  text-decoration: none;
}

.site-link:hover {
  text-decoration: underline;
  opacity: 1;
}

@media (max-width: 480px) {
  .site-brand span {
    font-weight: 700;
    font-size: 0.95rem;
  }
}

/* ---- Compatibility bridge ----
   If outlook.html still uses .brand-home, make it render IDENTICALLY to .site-brand.
   (Safe to keep even if you switch HTML later.) */
.brand-home {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.brand-home img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
@media (max-width: 480px) {
  .brand-home span {
    font-weight: 700;
    font-size: 0.95rem;
  }
}

/* ===== Card shell ===== */
.card {
  background: var(--card);
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
}

@media (max-width: 480px) {
  .card { padding: 1.25rem; }
}

/* ===== Page title + helper text ===== */
.page-title {
  margin: 0.25rem 0 1rem 0;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--text);
}

@media (max-width: 480px) {
  .page-title { font-size: 1.65rem; }
}

.rules {
  margin: 0.25rem 0 1rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== Best day banner ===== */
.best-day {
  text-align: left;
  border: 1px solid rgba(46, 204, 113, 0.35);
  background: rgba(46, 204, 113, 0.08);
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  margin: 0.25rem 0 0.9rem 0;
  font-weight: 800;
}

.best-day small {
  display: block;
  font-weight: 600;
  color: #4e5b66;
  margin-top: 0.25rem;
}

/* ===== Freeze badges ===== */
.badges {
  display: grid;
  gap: 0.6rem;
  justify-content: center;
  margin: 0.75rem 0 0.5rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #dbe4ee;
  background: #f6f8fb;
  font-weight: 800;
  width: fit-content;
  margin: 0 auto;
}

.badge span.meta {
  font-weight: 600;
  color: #6b7783;
}

/* ===== Location row ===== */
.location-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0.25rem 0;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.geo-btn {
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.geo-btn:hover { filter: brightness(0.95); }

.updated-at {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.9rem 0;
}

/* ===== ZIP input row ===== */
.zip-box {
  display: flex;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem 0;
  justify-content: center;
}

.zip-box input {
  flex: 1;
  max-width: 340px;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #cfd6de;
  font-size: 1rem;
  outline: none;
}

.zip-box input:focus {
  border-color: rgba(52, 152, 219, 0.8);
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
}

.zip-box button {
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 800;
}

.zip-box button:hover { filter: brightness(0.98); }

/* ===== Day cards ===== */
.outlook-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.day-card {
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.05rem;
  background: #ffffff;
}

.day-card.best {
  box-shadow: var(--bestGlow);
  border-color: rgba(46, 204, 113, 0.45);
}

.day-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.day-title {
  font-size: 1.15rem;
  font-weight: 900;
}

.day-reason {
  margin: 0.45rem 0 0.6rem 0;
  font-weight: 800;
  color: #32414f;
}

.verdict-pill {
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 900;
  border: 1px solid transparent;
  white-space: nowrap;
}

.verdict-pill.yes {
  color: #1b6b3b;
  background: rgba(46, 204, 113, 0.16);
  border-color: rgba(46, 204, 113, 0.25);
}

.verdict-pill.no {
  color: #8a221c;
  background: rgba(231, 76, 60, 0.16);
  border-color: rgba(231, 76, 60, 0.25);
}

.metrics {
  display: flex;
  gap: 1.05rem;
  flex-wrap: wrap;
  color: #5c6873;
  font-weight: 700;
}

.metrics span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===== Hourly toggle + table (works with Cloud column) ===== */
.hourly-toggle {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #dbe4ee;
  background: #f6f8fb;
  color: #2e3c49;
  font-weight: 900;
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.hourly-toggle:hover { filter: brightness(0.985); }

.hourly {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.hourly table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}

.hourly th, .hourly td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid #edf2f7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hourly th {
  text-align: left;
  color: #5b6772;
  font-weight: 900;
}

.hourly td {
  color: #2c3e50;
  font-weight: 650;
}

/* center numeric columns (Cloud/Rain/Wind/Temp) */
.hourly th:nth-child(n+2),
.hourly td:nth-child(n+2) {
  text-align: center;
}

@media (max-width: 480px) {
  .hourly table { font-size: 0.86rem; }
  .hourly th, .hourly td { padding: 0.4rem 0.3rem; }
}

.hidden { display: none; }

footer {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1rem 0 1.25rem 0;
}
