:root {
  --teal: #142b4d;        /* navy, from the YouTube thumbnail banner bars */
  --teal-dark: #0d1d38;   /* deeper navy for footer/hover */
  --cream: #f2f3f8;       /* light lavender-gray page background */
  --ink: #1a1a1a;
  --muted: #5a6472;
  --card-bg: #ffffff;
  --border: #e1e3ee;
  --accent: #ef5b2b;      /* orange arrow accent */
  --accent-green: #6fcf3a;/* lime-green arrow accent */
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--teal);
  color: #fff;
  padding: 28px 0;
}
.site-header .brand {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.site-header .tagline {
  margin: 4px 0 0;
  font-size: 1.05rem;
  opacity: 0.92;
}

/* Intro */
.intro {
  padding: 40px 0 8px;
  max-width: 760px;
}
.intro h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.intro p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Opt-in */
.optin {
  margin: 32px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.optin h2 {
  margin-top: 0;
  font-size: 1.4rem;
}
.optin p {
  color: var(--muted);
}
.optin-form-placeholder {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.optin-form-placeholder input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}
.optin-form-placeholder button {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: not-allowed;
}
.placeholder-note {
  font-size: 0.85rem;
  color: #b4552b;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Intro meta row */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 18px;
}
.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

/* Calendar layout: sidebar + stacked day sections */
.calendar { margin: 44px 0 60px; }

.calendar-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.sidebar-box h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-green);
  transition: width 0.2s ease;
}
.progress-text {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.day-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
}
.day-nav button {
  text-align: left;
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.day-nav button:hover { background: var(--border); }
.day-nav button.active {
  border-color: var(--accent);
  background: #fff;
}
.day-nav button.completed::after {
  content: " \2713";
  color: var(--accent-green);
  font-weight: 800;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
  padding: 6px 4px;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* Day sections (one per line, each can hold multiple videos) */
.days-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.day-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  scroll-margin-top: 20px;
}
.day-section.completed {
  border-color: var(--accent-green);
}

.day-section.rest-day {
  background: linear-gradient(135deg, #eef6ee 0%, #ffffff 65%);
  border-style: dashed;
}
.day-section.rest-day .day-section-header { margin-bottom: 10px; }
.rest-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
}

.day-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.day-section-header h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.day-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  max-width: 68ch;
  line-height: 1.5;
}
.day-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.mark-complete-btn {
  background: #fff;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.mark-complete-btn:hover { background: var(--accent); color: #fff; }
.mark-complete-btn.is-complete {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #0d1d38;
}

/* Stacked top-to-bottom so the workout sequence within a day is unambiguous */
.video-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: stretch;
  background: var(--cream);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-card:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 16px rgba(20, 43, 77, 0.15);
}

.step-number {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.video-card .thumb-wrap {
  position: relative;
  flex: 0 0 180px;
  aspect-ratio: 16 / 9;
  background: #dfe3ee;
}
.video-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card .duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(13, 29, 56, 0.85);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
}
.video-card .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card .play-badge svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}
.video-card .video-title {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink);
}

/* Unfilled video slot */
.video-card.placeholder {
  cursor: default;
}
.video-card.placeholder .step-number {
  background: var(--border);
  color: var(--muted);
}
.video-card.placeholder .thumb-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: left;
  padding: 10px 14px;
}
.video-card.placeholder:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .video-card .thumb-wrap { flex-basis: 110px; }
  .video-card .video-title { font-size: 0.85rem; padding: 8px 10px; }
}

.day-empty-note {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 780px) {
  .calendar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .day-nav { max-height: 260px; }
}

/* Footer */
.site-footer {
  background: var(--teal-dark);
  color: #fff;
  padding: 24px 0;
  font-size: 0.9rem;
}
.site-footer a {
  color: #fff;
}
.site-footer p { margin: 4px 0; }

@media (max-width: 480px) {
  html, body { font-size: 16px; }
  .intro h1 { font-size: 1.6rem; }
}
