/* today.html — Daily-ritual landing page
   Depends on: base.css, nav.css, components.css
   ─────────────────────────────────────────────────────────────────────────── */

.today-main { max-width: 720px; margin: 0 auto; padding: 1.25rem 1.25rem 4rem }

.today-header { margin-bottom: 1.25rem }
.today-date {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .35rem;
}
.today-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem; line-height: 1.1;
}

/* ── Rotation hero ───────────────────────────────────────────────────────── */
.rotation-hero {
  background: linear-gradient(135deg, rgba(200,169,110,.08), rgba(124,185,168,.06));
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.rotation-skel { color: var(--muted); font-size: .9rem; padding: .5rem 0 }

.rot-row { display: flex; align-items: center; gap: 1rem }
.rot-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 700; line-height: 1;
  color: var(--accent);
}
.rot-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: .15rem }
.rot-meta  { flex: 1; min-width: 0 }
.rot-status {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600;
  padding: .25rem .55rem; border-radius: 999px;
  border: 1px solid var(--border2);
  margin-top: .4rem;
}
.rot-status.active  { color: var(--teal);   border-color: rgba(124,185,168,.4); background: rgba(124,185,168,.08) }
.rot-status.at_risk { color: #f1c95e;       border-color: rgba(241,201,94,.4); background: rgba(241,201,94,.08) }
.rot-status.paused  { color: var(--muted);  border-color: var(--border) }
.rot-status.none    { color: var(--muted);  border-color: var(--border) }

.rot-cta {
  display: block; text-align: center;
  margin-top: 1rem; padding: .85rem 1rem;
  background: var(--accent); color: #111;
  border-radius: 10px; font-weight: 700;
  transition: background .15s;
}
.rot-cta:hover { background: var(--accent2) }

.rot-best { font-size: .78rem; color: var(--muted); margin-top: .35rem }
.rot-best strong { color: var(--text2) }

/* ── My today section ────────────────────────────────────────────────────── */
.my-today-section { margin-bottom: 1.75rem }
.my-today-list   { display: flex; flex-direction: column; gap: .55rem }
.my-today-item   {
  display: flex; align-items: center; gap: .85rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .65rem .75rem;
}
.my-today-img    {
  width: 54px; height: 54px; border-radius: 8px; flex-shrink: 0;
  background: var(--surface2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border: 1px solid var(--border2);
}
.my-today-img img { width: 100%; height: 100%; object-fit: cover }
.my-today-body   { flex: 1; min-width: 0 }
.my-today-name   { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.my-today-time   { font-size: .72rem; color: var(--muted); margin-top: .2rem }

.my-today-empty {
  border: 1px dashed var(--border2); border-radius: 12px;
  padding: 1.5rem 1rem; text-align: center;
  color: var(--muted); font-size: .9rem;
}
.my-today-empty .cta {
  display: inline-block; margin-top: .85rem;
  padding: .55rem 1rem; background: var(--accent); color: #111;
  border-radius: 8px; font-weight: 700; font-size: .85rem;
}
.my-today-empty .cta:hover { background: var(--accent2) }

/* ── Section headers ─────────────────────────────────────────────────────── */
.section-title {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text2); margin-bottom: .8rem; font-weight: 600;
}

/* ── Active Wear-Off matchup callout ─────────────────────────────────────── */
.matchup-callout {
  background: linear-gradient(135deg, rgba(224,82,82,.08), rgba(200,169,110,.04));
  border: 1px solid rgba(224,82,82,.3);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.matchup-callout-title {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--danger); font-weight: 700; margin-bottom: .5rem;
}
.matchup-row { display: flex; align-items: center; gap: .65rem }
.matchup-cap { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem }
.matchup-cap-img {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  overflow: hidden; background: var(--surface2);
  border: 1px solid var(--border2);
}
.matchup-cap-img img { width: 100%; height: 100%; object-fit: cover }
.matchup-cap-name { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.matchup-cap-wears { font-size: .72rem; color: var(--muted) }
.matchup-vs { font-size: .85rem; color: var(--muted); font-weight: 700; padding: 0 .25rem }
.matchup-cta {
  display: block; text-align: center;
  margin-top: .85rem; padding: .55rem .8rem;
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  border-radius: 8px; font-weight: 600; font-size: .82rem;
}
.matchup-cta:hover { background: rgba(200,169,110,.08) }

/* ── Community grid ──────────────────────────────────────────────────────── */
.community-section { margin-bottom: 1.5rem }
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
}
.community-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .6rem; transition: border-color .15s;
  display: flex; flex-direction: column; gap: .5rem;
}
.community-card:hover { border-color: var(--border2) }
/* Canonical padding-top hack for 1:1 aspect — `height: 0` is required so
   the container's box height is exactly the percentage padding (no extra
   content-height). aspect-ratio: 1/1 was unreliable on Chrome with mixed
   portrait/landscape product shots; height:0 + padding-top:100% is rock-solid. */
.community-img {
  width: 100%; height: 0; padding-top: 100%; position: relative;
  border-radius: 8px;
  background: var(--surface2); overflow: hidden;
  border: 1px solid var(--border2);
}
.community-img > img,
.community-img > .community-img-fallback {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.community-img > .community-img-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.community-meta { display: flex; align-items: center; gap: .45rem; min-width: 0 }
.community-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #111;
  border: 1px solid var(--border2);
}
.community-avatar img { width: 100%; height: 100%; object-fit: cover }
.community-text { flex: 1; min-width: 0 }
.community-user { font-size: .72rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.community-cap  { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

.community-empty {
  grid-column: 1 / -1;
  text-align: center; color: var(--muted);
  font-size: .85rem; padding: 1.5rem 1rem;
  border: 1px dashed var(--border2); border-radius: 12px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .community-grid { grid-template-columns: repeat(3, 1fr) }
}
@media (max-width: 640px) {
  .nav-logo img { height: 80px !important }
  .logo-spacer  { height: 24px }
  .today-header h1 { font-size: 1.55rem }
  .rot-num { font-size: 2.5rem }
}

/* ── Push-opt-in banner ────────────────────────────────────────────────────
   Lives at the top of /today, above the rotation hero. Dismissible; hidden
   by default and revealed only when the user is push-eligible and hasn't
   already opted in. */
.push-promo-banner {
  display: flex; align-items: center; gap: .85rem;
  background: linear-gradient(135deg, rgba(200,169,110,.12), rgba(124,185,168,.04));
  border: 1px solid rgba(200,169,110,.35);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-bottom: 1.25rem;
}
.push-promo-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0 }
.push-promo-text { flex: 1; min-width: 0 }
.push-promo-title {
  font-weight: 700; color: var(--text); font-size: .92rem; margin-bottom: .15rem;
}
.push-promo-body  { font-size: .76rem; color: var(--muted); line-height: 1.45 }
.push-promo-actions { display: flex; align-items: center; gap: .35rem; flex-shrink: 0 }
.push-promo-enable {
  background: var(--accent); color: #111; border: none;
  padding: .45rem .9rem; border-radius: 8px;
  font-size: .8rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: opacity .15s;
}
.push-promo-enable:hover    { opacity: .85 }
.push-promo-enable:disabled { opacity: .55; cursor: default }
.push-promo-dismiss {
  background: none; border: none; color: var(--muted);
  font-size: 1rem; cursor: pointer; padding: .35rem .5rem;
  border-radius: 6px; line-height: 1; transition: color .15s, background .15s;
}
.push-promo-dismiss:hover { color: var(--text); background: rgba(255,255,255,.04) }

