/* =========================
   ClassSeats Help – Shared Styles
   ========================= */

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --link: #4f46e5;
  --link-hover: #4338ca;
  --tip-bg: #ecfeff;
  --tip-border: #67e8f9;
  --warn-bg: #fff7ed;
  --warn-border: #fed7aa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 40%, #f8fafc 100%);
  color: var(--text);
  line-height: 1.65;
}

.container {
  max-width: 920px;
  margin: 0 auto;
}

/* New: card frame for all content pages */
.page {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 2rem 2.25rem;
}


/* -------------------------
   Navigation / breadcrumbs
   ------------------------- */

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumbs {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}


.breadcrumbs a:hover {
  color: var(--link-hover);
}

/* New: section rhythm so pages don't feel like one long scroll */
.section {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}


/* -------------------------
   Headings & text
   ------------------------- */

h1 {
  font-size: 1.75rem;
  margin: 0.25rem 0 0.6rem 0;
  letter-spacing: -0.015em;
}


h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0.5rem 0 1rem 0;
}

.summary {
  font-size: 1.05rem;
  color: #334155;
  margin-bottom: 1.75rem;
}

/* -------------------------
   Lists
   ------------------------- */

ul,
ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1.25rem 0;
}

li {
  margin-bottom: 0.5rem;
}

/* -------------------------
   Callouts
   ------------------------- */

.tip {
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
  padding: 1rem;
  border-radius: 12px;
  margin: 1.75rem 0;
  color: #155e75;
}

.tip strong {
  display: block;
  margin-bottom: 0.25rem;
}

.warning {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  padding: 1rem;
  border-radius: 12px;
  margin: 1.75rem 0;
  color: #9a3412;
}

.warning strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* -------------------------
   Media placeholders
   ------------------------- */

.media {
  margin: 1.75rem 0;
  padding: 1rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
}

/* -------------------------
   Next / footer
   ------------------------- */

.next {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.next a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #64748b;
}

footer a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: var(--link-hover);
}

/* -------------------------
   Responsive tweaks
   ------------------------- */

@media (max-width: 600px) {
  body {
    padding: 1.25rem;
  }
}

/* --- Help media (screenshots + videos) --- */
figure.media {
  margin: 16px 0 22px;
}

figure.media .media-frame {
  max-width: 920px;          /* keeps media from dominating the page */
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb; /* light gray */
  border-radius: 14px;
  padding: 10px;
}

figure.media img,
figure.media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

figure.media figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #6b7280;            /* slate/gray */
  text-align: center;
  line-height: 1.35;
}

/* Optional: give videos a slightly more "player" feel without drama */
figure.media video {
  background: #0b0b0b;
}

/* Inline media: supports nearby text without dominating */
figure.media.inline {
  max-width: 520px;
  margin: 0;
}

/* Inline media row: keeps a screenshot aligned with its specific subsection */
.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  margin: 12px 0 18px;
}

@media (min-width: 900px) {
  .media-row {
    grid-template-columns: 1fr 520px;
    gap: 20px;
  }
}
