/* Social carousel palette — tuned for 9:16 video, not in-app brand-tokens.css */

:root {
  --ad-amber: #e8a820;
  --ad-amber-muted: #c07e10;
  --ad-dark: #121212;
  --ad-charcoal: #1e1e1e;
  --ad-cream: #fbf7f0;
  --ad-white: #ffffff;

  /* Preview chrome (when embedded in app UI) */
  --color-border-tertiary: #e5e7eb;
  --color-background-secondary: #f9fafb;
  --color-background-tertiary: #f3f4f6;
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
}


@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* Recipe card carousel — fixed 1080×1920 export frames
   Bump “small” type + logo so footnotes stay readable at export size. */

.slide-logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  object-position: left center;
}

body.ads-preview.ads-recipe-page {
  font-family: 'DM Sans', sans-serif;
  background: #2a2a2a;
  color: var(--color-text-primary);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  min-height: 100vh;
}

body.ads-edit-page.ads-recipe-page {
  background: var(--color-background-secondary);
  padding: 0;
  gap: 0;
  align-items: stretch;
}

.recipe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.recipe-wrap > p {
  max-width: 520px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.recipe-wrap > p a {
  color: #e8a820;
}

.slide-label {
  color: #888;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

.slide-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1080×1920 — scale 40% on screen; full size for print/screenshot at 100% zoom */
.slide,
.recipe-slide.slide {
  width: 1080px;
  height: 1920px;
  transform-origin: top center;
  transform: scale(0.4);
  margin-bottom: calc((1920px * 0.4) - 1920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.hint-bar {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 28px;
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
  max-width: 440px;
  text-align: center;
}

.hint-bar strong {
  color: var(--ad-amber);
}

.recipe-upload-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  max-width: 1080px;
}

.recipe-upload-btn,
.recipe-upload-clear {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ddd;
  cursor: pointer;
}

.recipe-upload-btn:hover,
.recipe-upload-clear:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--ad-amber);
  color: #fff;
}

.recipe-upload-note {
  font-size: 12px;
  color: #888;
  flex: 1 1 200px;
}

@media print {
  .recipe-upload-bar {
    display: none;
  }
}

/* ---- SLIDE 1: Cover ---- */
.s1 {
  background: #121212;
}

.s1-photo {
  flex: 1;
  background: #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-bottom: 3px solid #1e1e1e;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.s1-photo .s1-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-hint {
  color: #3a3a3a;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photo-hint-sub {
  color: #2e2e2e;
  font-size: 28px;
  text-align: center;
  padding: 0 48px;
}

.s1-bottom {
  padding: 52px 60px 0;
  background: #121212;
  flex-shrink: 0;
}

.s1-tag {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ad-amber);
  margin-bottom: 16px;
}

.s1-title {
  font-family: 'Syne', sans-serif;
  font-size: 88px;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.s1-meta {
  display: flex;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.s1-meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.s1-meta-pct {
  color: var(--ad-amber);
  font-weight: 600;
}

.s1-meta-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ad-amber);
  flex-shrink: 0;
}

.s1-footer {
  padding: 28px 60px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.swipe-hint {
  font-size: 30px;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ---- SLIDE 2: Macros ---- */
.s2 {
  background: var(--ad-cream);
}

.s2-head {
  padding: 60px 64px 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.s2-kicker {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c07e10;
  margin-bottom: 14px;
}

.s2-recipe-name {
  font-family: 'Syne', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: #121212;
  line-height: 1.1;
  max-width: 640px;
}

.s2-per {
  font-size: 30px;
  color: rgba(0, 0, 0, 0.4);
  font-weight: 500;
  text-align: right;
  margin-top: 8px;
  white-space: nowrap;
}

.s2-photo {
  width: 100%;
  height: 460px;
  background: #e8e0d6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.s2-photo .s2-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s2-photo-hint {
  font-size: 26px;
  color: #bbb;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.s2-macro-wrap {
  padding: 52px 64px 0;
  flex: 1;
}

.cal-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 44px;
}

.cal-num {
  font-family: 'Syne', sans-serif;
  font-size: 128px;
  font-weight: 800;
  color: #121212;
  line-height: 1;
}

.cal-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-unit {
  font-size: 36px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
}

.cal-label {
  font-size: 30px;
  color: rgba(0, 0, 0, 0.35);
}

.macro-bars {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.macro-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.macro-name {
  font-size: 26px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
  width: 160px;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 20px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
}

.bar-protein {
  background: var(--ad-amber);
}

.bar-carbs {
  background: #121212;
}

.bar-fat {
  background: #888;
}

.macro-val {
  font-size: 30px;
  font-weight: 700;
  color: #121212;
  min-width: 80px;
  text-align: right;
}

.s2-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 44px 64px 20px;
}

.s2-note {
  font-size: 30px;
  color: rgba(0, 0, 0, 0.35);
  font-style: italic;
  padding: 0 64px;
}

.s2-footer {
  padding: 28px 64px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  flex-shrink: 0;
}


.cta-pill {
  background: var(--ad-amber);
  color: #121212;
  font-size: 26px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* ---- SLIDE 3: Ingredients ---- */
.s3 {
  background: #1e1e1e;
}

.s3-head {
  padding: 60px 64px 44px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.s3-kicker {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ad-amber);
  margin-bottom: 14px;
}

.s3-title {
  font-family: 'Syne', sans-serif;
  font-size: 72px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.s3-subtitle {
  font-size: 26px;
  color: rgba(255, 255, 255, 0.4);
}

.ing-list {
  flex: 1;
  padding: 20px 64px 0;
  overflow: hidden;
  min-height: 0;
}

.ing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ing-item:last-child {
  border-bottom: none;
}

.ing-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ing-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ad-amber);
  flex-shrink: 0;
}

.ing-name {
  font-size: 34px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.ing-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.ing-detail {
  font-size: 30px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.s3-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(232, 168, 32, 0.12);
  border: 1px solid rgba(232, 168, 32, 0.25);
  border-radius: 14px;
  padding: 20px 32px;
  margin: 24px 64px 0;
  font-size: 26px;
  color: var(--ad-amber);
  font-weight: 600;
  flex-shrink: 0;
}

.check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(232, 168, 32, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--ad-amber);
  flex-shrink: 0;
}

.s3-footer {
  padding: 32px 64px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: auto;
  flex-shrink: 0;
}

/* ---- SLIDE 4: Nutrition label ---- */
.s4 {
  background: #fff;
}

.s4-top {
  background: #121212;
  padding: 52px 64px 40px;
  flex-shrink: 0;
}

.s4-kicker {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.s4-recipe-name {
  font-family: 'Syne', sans-serif;
  font-size: 62px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.nl-wrap {
  flex: 1;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.nl-box {
  border: 6px solid #121212;
  border-radius: 6px;
  padding: 28px 36px;
  flex: 1;
}

.nl-title {
  font-family: 'Syne', sans-serif;
  font-size: 88px;
  font-weight: 800;
  color: #121212;
  line-height: 1;
  border-bottom: 20px solid #121212;
  padding-bottom: 10px;
  margin-bottom: 8px;
}

.nl-serving-line {
  font-size: 26px;
  color: #121212;
  font-weight: 500;
  margin-bottom: 4px;
}

.nl-cal-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 10px solid #121212;
  padding: 8px 0 10px;
  margin-bottom: 8px;
}

.nl-cal-label {
  font-size: 30px;
  font-weight: 700;
  color: #121212;
}

.nl-cal-num {
  font-family: 'Syne', sans-serif;
  font-size: 96px;
  font-weight: 800;
  color: #121212;
  line-height: 1;
}

.nl-dv-header {
  text-align: right;
  font-size: 28px;
  font-weight: 700;
  color: #121212;
  border-bottom: 4px solid #121212;
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.nl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.nl-row-main {
  font-size: 26px;
  font-weight: 700;
  color: #121212;
}

.nl-row-sub {
  font-size: 26px;
  color: #121212;
  padding-left: 28px;
}

.nl-dv-val {
  font-size: 26px;
  font-weight: 700;
  color: #121212;
}

.nl-footer-text {
  font-size: 28px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 14px;
  line-height: 1.5;
}

.s4-footer {
  padding: 24px 64px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.auto-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ad-cream);
  border: 1px solid rgba(232, 168, 32, 0.35);
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 24px;
  color: var(--ad-amber);
  font-weight: 700;
}

/* ---- SLIDE 5: CTA ---- */
.s5 {
  background: var(--ad-amber);
}

.s5-inner {
  flex: 1;
  padding: 60px 64px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.s5-top-logo .slide-logo {
  height: 48px;
}

.s5-center {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.s5-eyebrow {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.s5-headline {
  font-family: 'Syne', sans-serif;
  font-size: 112px;
  font-weight: 800;
  color: #121212;
  line-height: 1;
  letter-spacing: -0.02em;
}

.s5-body {
  font-size: 34px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.55;
  max-width: 800px;
}

.s5-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.s5-step {
  display: flex;
  align-items: center;
  gap: 28px;
}

.s5-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #121212;
  color: var(--ad-amber);
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.s5-step-text {
  font-size: 32px;
  color: #121212;
  font-weight: 600;
}

.s5-cta-block {
  background: #121212;
  border-radius: 24px;
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.s5-cta-main {
  font-size: 42px;
  font-weight: 800;
  color: var(--ad-amber);
  font-family: 'Syne', sans-serif;
}

.s5-cta-sub {
  font-size: 26px;
  color: rgba(232, 168, 32, 0.55);
  margin-top: 6px;
}

.s5-arrow {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(232, 168, 32, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--ad-amber);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  body.ads-preview.ads-recipe-page {
    background: white;
    padding: 0;
    gap: 0;
  }

  .hint-bar,
  .recipe-wrap > p {
    display: none;
  }

  .slide-label {
    display: none;
  }

  .slide-wrap {
    page-break-after: always;
    break-after: page;
  }

  .slide,
  .recipe-slide.slide {
    transform: none !important;
    margin-bottom: 0 !important;
    width: 1080px;
    height: 1920px;
  }
}
