/* ═══════════════════════════════════════════════════════════════════════════
 * SunSeed Kitchen — Marketing Components
 * Trust Strip · Cuisine Carousel · Meal Plan Preview · Skeleton Cards · Guarantee Block
 * Built 2026-05-03 by Lyra Wynn (UX) — defensible-claim sweep + global-library positioning
 * ═══════════════════════════════════════════════════════════════════════════ */

/* ── Skeleton recipe cards: shimmer while API loads ─────────────────────── */
[data-skeleton="true"] .recipe-title,
[data-skeleton="true"] .recipe-description {
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--ssk-color-skeleton-gray, #f0f0f0) 25%,
    var(--ssk-color-skeleton-gray-dark, #e8e8e8) 50%,
    var(--ssk-color-skeleton-gray, #f0f0f0) 75%
  );
  background-size: 400% 100%;
  border-radius: var(--ssk-radius-sm, 4px);
  animation: ssk-shimmer 1.6s infinite linear;
}
[data-skeleton="true"] .recipe-title { min-height: 1.4em; }
[data-skeleton="true"] .recipe-description { min-height: 3em; }

@keyframes ssk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Trust Strip ─────────────────────────────────────────────────────────── */
.trust-strip-global {
  background: var(--ssk-bg-subtle, #f7faf6);
  border-top: 1px solid var(--ssk-border-color, #d6e2cf);
  border-bottom: 1px solid var(--ssk-border-color, #d6e2cf);
  padding: var(--ssk-space-4, 1rem);
}

.trust-strip-global__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ssk-space-4, 1rem) var(--ssk-space-6, 1.5rem);
  max-width: var(--ssk-container-xl, 1280px);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .trust-strip-global__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ssk-space-6, 1.5rem);
  }
}

.trust-strip-global__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--ssk-space-1, 0.25rem);
  min-height: 44px;
  justify-content: center;
}

.trust-strip-global__icon { font-size: 1.5rem; line-height: 1; }
.trust-strip-global__value { font-size: 0.875rem; font-weight: 700; color: #1b5e20; line-height: 1.2; }
.trust-strip-global__label { font-size: 0.75rem; color: #4a5759; line-height: 1.2; }

/* ── Cuisine Carousel ───────────────────────────────────────────────────── */
.cuisine-carousel {
  padding: var(--ssk-space-6, 1.5rem) 0 var(--ssk-space-4, 1rem);
  background: #fff;
  border-bottom: 1px solid var(--ssk-border-color, #d6e2cf);
}

.cuisine-carousel__header { text-align: center; margin-bottom: 0.75rem; }

.cuisine-carousel__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a5759;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.cuisine-carousel__track-wrapper {
  overflow: hidden;
  padding: 0.5rem 1rem;
}

.cuisine-carousel__track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 0 0.5rem 0;
  list-style: none;
  margin: 0;
  outline: none;
}

.cuisine-carousel__track::-webkit-scrollbar { display: none; }

.cuisine-carousel__track:focus-visible {
  outline: 3px solid #2d8043;
  outline-offset: 4px;
  border-radius: 4px;
}

.cuisine-carousel__chip { scroll-snap-align: start; flex: 0 0 auto; }

.cuisine-carousel__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  min-height: 44px;
  background: #f7faf6;
  border: 1.5px solid #d6e2cf;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1b5e20;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms, border-color 150ms, transform 150ms;
}

.cuisine-carousel__link:hover {
  background: #e8f5e9;
  border-color: #66bb6a;
  transform: translateY(-1px);
}

.cuisine-carousel__link:focus-visible {
  outline: 3px solid #2d8043;
  outline-offset: 2px;
}

.cuisine-carousel__count {
  color: #4a5759;
  font-weight: 400;
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .cuisine-carousel__track { scroll-behavior: auto; }
  .cuisine-carousel__link { transition: none; }
}

/* ── Meal Plan Preview ──────────────────────────────────────────────────── */
.meal-preview {
  padding: 4rem 0 2rem;
  background: #fffaf0;
}

.meal-preview__header { text-align: center; margin-bottom: 2.5rem; }

.meal-preview__badge {
  display: inline-block;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.meal-preview__title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #1b5e20;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.meal-preview__subtitle {
  font-size: 1rem;
  color: #4a5759;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.meal-preview__grid {
  display: grid;
  grid-template-columns: 6rem repeat(3, 1fr);
  gap: 2px;
  background: #d6e2cf;
  border: 2px solid #d6e2cf;
  border-radius: 1rem;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1024px;
}

.meal-preview__cell {
  background: #fff;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 44px;
  justify-content: center;
}

.meal-preview__cell--header {
  background: #1b5e20;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.meal-preview__cell--corner { background: #1b5e20; }

.meal-preview__cell--label {
  background: #f7faf6;
  color: #1b5e20;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meal-preview__meal-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3a3d;
  line-height: 1.2;
}

.meal-preview__cuisine {
  font-size: 0.75rem;
  color: #4a5759;
  line-height: 1;
}

.meal-preview__footnote {
  text-align: center;
  font-size: 0.875rem;
  color: #2d8043;
  font-weight: 600;
  margin: 1.5rem auto 0;
  padding: 1rem;
  background: #e8f5e9;
  border-radius: 0.75rem;
  max-width: 1024px;
}

@media (max-width: 767px) {
  .meal-preview__grid { grid-template-columns: 4.5rem repeat(3, 1fr); font-size: 0.75rem; }
  .meal-preview__cell { padding: 0.75rem 0.5rem; }
  .meal-preview__meal-name { font-size: 0.75rem; }
  .meal-preview__cuisine { display: none; }
  .meal-preview__title { font-size: 1.5rem; }
}

/* ── 30-Day Money-Back Guarantee Block ──────────────────────────────────── */
.guarantee-block {
  background: linear-gradient(135deg, #fffaf0 0%, #e8f5e9 100%);
  border: 2px solid #66bb6a;
  border-radius: 1rem;
  padding: 1.75rem;
  max-width: 720px;
  margin: 2rem auto;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.guarantee-block__icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.guarantee-block__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1b5e20;
  margin: 0 0 0.5rem 0;
}

.guarantee-block__body {
  font-size: 0.9375rem;
  color: #2d3a3d;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 600px) {
  .guarantee-block { flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; }
}
