/* burn.css */

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

* { 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;
}

/* ===== shared header (match your other pages) ===== */

.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;
}

.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;
}

.site-link {
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.75;
  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;
  }
}

/* ===== card ===== */

.card {
  background: var(--card);
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
}

h1 {
  margin-top: 0;
  font-size: 1.8rem;
  letter-spacing: 0.2px;
}

.subtitle {
  margin: 0.25rem 0 0.75rem 0;
  color: #5b6772;
  font-weight: 700;
}

.status {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 1rem 0 0.75rem 0;
  padding: 1.15rem;
  border-radius: 12px;
  letter-spacing: 0.2px;
  color: #fff;
}

.status.yes {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.status.no {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.status.loading {
  background: #ecf0f1;
  color: var(--muted);
}

.reason {
  font-size: 0.98rem;
  margin: 0 0 0.5rem 0;
  color: #32414f;
  font-weight: 650;
}

/* small “health” row */
.meta-line {
  margin: 0.15rem 0 0.35rem 0;
  display: flex;
  justify-content: center;
}

.meta-pill{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03);
  color: #51606f;
  font-weight: 800;
  font-size: 0.85rem;
}

/* Location row */
.location-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.25rem 0 0.9rem 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.25rem 0 0.9rem 0;
}

.zip-box {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.zip-box input {
  flex: 1;
  max-width: 320px;
  padding: 0.7rem;
  border-radius: 10px;
  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.7rem 1.1rem;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 700;
}

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

.details {
  display: flex;
  justify-content: space-around;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #6f7a85;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.details div { padding: 0.35rem 0.5rem; }
.muted { color: #7b8794; font-weight: 650; }

.hidden { display: none; }

/* Outlook link */
.outlook-link {
  margin: 0.75rem 0 0.25rem 0;
  font-size: 0.9rem;
}

.outlook-link a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.outlook-link a:hover { text-decoration: underline; }

/* ===== Hourly dropdown (match your index.html feel) ===== */

.hourly-toggle {
  width: 100%;
  margin: 0.9rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px solid #cfd6de;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

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

.hourly-holder {
  margin-top: 0.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

/* Desktop table */
.hourly-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.hourly-table thead th {
  background: rgba(52, 152, 219, 0.08);
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0.7rem 0.65rem;
}

.hourly-table td {
  padding: 0.65rem 0.65rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  color: #3b4a5a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hourly-table tbody tr:nth-child(odd) td {
  background: rgba(0,0,0,0.015);
}

.hourly-table tbody tr:hover td {
  background: rgba(52, 152, 219, 0.07);
}

/* Alignment */
.hourly-table th:nth-child(n+2),
.hourly-table td:nth-child(n+2) {
  text-align: center;
}

.hourly-table td:nth-child(1) {
  font-weight: 800;
  color: var(--text);
}

/* Column widths (6 cols: Hour, Hum, Cloud, Rain, Wind, Temp) */
.hourly-table th:nth-child(1),
.hourly-table td:nth-child(1) { width: 16%; }

.hourly-table th:nth-child(2),
.hourly-table td:nth-child(2) { width: 14%; }

.hourly-table th:nth-child(3),
.hourly-table td:nth-child(3) { width: 14%; }

.hourly-table th:nth-child(4),
.hourly-table td:nth-child(4) { width: 14%; }

.hourly-table th:nth-child(5),
.hourly-table td:nth-child(5) { width: 22%; }

.hourly-table th:nth-child(6),
.hourly-table td:nth-child(6) { width: 20%; }

/* Mobile cards */
.hourly-cards {
  display: none;
  gap: 0.6rem;
  padding: 0.75rem;
}

.hour-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  background: rgba(255,255,255,0.9);
}

.hour-card .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.hour-card .time { font-weight: 900; }
.hour-card .temp { font-weight: 900; }

.hour-card .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.6rem;
  font-size: 0.92rem;
  color: #6f7a85;
}

.hour-card .grid span strong { color: var(--text); }

/* Switch to cards on small screens */
@media (max-width: 520px) {
  .hourly-table { display: none; }
  .hourly-cards { display: grid; }
}

/* responsive spacing */
@media (min-width: 768px) {
  .card { padding: 2rem; }
  h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .card { padding: 1.25rem; }
  h1 { font-size: 1.6rem; }
  .status { padding: 1rem; font-size: 1.35rem; }
}

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

/* ===== Rules (final) ===== */
.rules-card{
  margin-top: 0.85rem;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.85);

  display: flex;
  flex-direction: column;
}

.rules-title{
  font-weight: 900;
  color: var(--text);
  text-align: left;
  margin-bottom: 0.45rem; /* <-- space under title */
}

/* rows */
.rules-row{
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.5rem;
  border-radius: 12px;
  text-align: left;
}

/* separator only (NO extra padding/margins) */
.rules-row + .rules-row{
  border-top: 1px solid rgba(0,0,0,0.06);
}

.rules-icon{
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.rules-text{
  font-weight: 800;
  color: var(--text);
  font-size: 0.95rem;
}

.rules-sub{
  display: block;
  font-weight: 600;
  color: #5b6772;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.rules-pill{
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.rules-pill.no{
  background: rgba(231, 76, 60, 0.12);
  color: #8a221c;
  border: 1px solid rgba(231, 76, 60, 0.25);
}

/* Always row has no pill */
.rules-row.always{
  grid-template-columns: 26px 1fr;
}

.related-tools {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.related-tools a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.related-tools a:hover {
  text-decoration: underline;
}
