/* ---------- Theme & reset ---------- */

:root {
  color-scheme: light;
  --bg: #fffbf5;          /* soft cream background */
  --bg-alt: #fff7ec;      /* card background */
  --fg: #1f2933;          /* main text */
  --muted: #6b7280;       /* secondary text */
  --accent: #f97316;      /* warm orange */
  --accent-soft: #fed7aa;
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.18);
}

/* Better box sizing for layouts */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ---------- Base ---------- */

body {
  margin: 0;
  padding: 1.75rem 1rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #ffe0c2 0, transparent 50%),
    radial-gradient(circle at bottom right, #fef3c7 0, transparent 55%),
    var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Container that matches your HTML .page wrapper */
.page {
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- Header / hero ---------- */

header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.9);
  border: 1px solid #fed7aa;
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.18);
}

header h1 {
  margin: 0 0 0.4rem;
  font-size: 2.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Status text ---------- */

#status {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Recipe / video grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* responsive recipe cards */ /* [web:37][web:43] */
  gap: 1.25rem;
  margin-top: 1.75rem;
}

/* Recipe card that wraps each video */
.video-card {
  background: linear-gradient(145deg, var(--bg-alt), #ffffff);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
  border: 1px solid rgba(249, 115, 22, 0.08);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(145deg, #fffaf3, #ffffff);
}

/* Thumbnail area keeps video 16:9 */
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  overflow: hidden;
}

.video-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Meta info: recipe title, date, etc. */
.video-meta {
  padding: 0.8rem 1rem 1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: #111827;
}

.video-date {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Optional: subtle tag-like pill for future use (e.g. "Dinner", "Vegan") */
.video-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #9a3412;
  background: rgba(254, 215, 170, 0.8);
  margin-top: 0.35rem;
}

/* ---------- Fallback for old .video-container HTML ---------- */

.video-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: 1rem;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: var(--shadow-soft);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Channel link / CTA ---------- */

.view-channel {
  margin-top: 2.25rem;
  text-align: center;
}

.view-channel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.35);
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.view-channel a:hover {
  background: var(--accent);
  color: #111827;
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.55);
  transform: translateY(-1px);
}

/* ---------- Global link style ---------- */

a {
  color: #b45309;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

@media (max-width: 640px) {
  body {
    padding-inline: 0.8rem;
  }

  header {
    border-radius: 18px;
  }

  header h1 {
    font-size: 1.9rem;
  }
}
