/* ============================================================
   The Waffle Taco – Specials Page Styles
   /assets/css/specials.css
   ============================================================ */

/* ── Specials slider ────────────────────────────────────────── */
.specials-slider {
  position: relative;
}

.specials-track {
  position: relative;
  min-height: 420px;
}

.special-slide {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);

  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-spring), visibility 0s linear 0.6s;
  pointer-events: none;
}

.special-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-spring), visibility 0s linear 0s;
  pointer-events: auto;
  position: relative;
}

.special-media {
  overflow: hidden;
  min-height: 340px;
}

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

.special-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.special-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 7px 15px;
  background: var(--gold);
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.special-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--brown);
  margin-bottom: 16px;
}

.special-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
}

.special-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Controls ───────────────────────────────────────────────── */
/* ── Countdown bar ──────────────────────────────────────────── */
/* Depletes left → right before the slider switches. Duration is declared
   here so the CSS is the single source of truth — specials.js reads it back
   with getComputedStyle so the timer and the bar can't drift apart. */
.specials-progress {
  height: 3px;
  margin-top: 28px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
}

.specials-progress-fill {
  height: 100%;
  background: var(--rust);
  border-radius: 999px;
  transform: scaleX(1);
  transform-origin: right;      /* collapses toward the right */
  animation-duration: 6s;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.specials-progress-fill.running {
  animation-name: specialsCountdown;
}

@keyframes specialsCountdown {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Controls ───────────────────────────────────────────────── */
/* Same order as the hero slider: dots, arrows, counter. */
.specials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.specials-arrows {
  display: flex;
  gap: 8px;
}

.specials-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  background: var(--white);
  color: var(--brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.specials-arrow:hover {
  background: var(--warm);
  border-color: var(--brown);
  transform: scale(1.05);
}

.specials-arrow svg {
  width: 18px;
  height: 18px;
}

.specials-dots {
  display: flex;
  gap: 10px;
}

.specials-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sand);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.specials-dot.active {
  background: var(--rust);
  transform: scale(1.3);
}

.specials-counter {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  min-width: 36px;
  text-align: center;
}

/* No autoplay countdown for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .specials-progress {
    display: none;
  }
}

/* ── Empty state ────────────────────────────────────────────── */
.specials-empty {
  text-align: center;
  padding: 72px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 560px;
  margin: 0 auto;
}

.specials-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--warm);
  color: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.specials-empty-icon svg {
  width: 34px;
  height: 34px;
}

.specials-empty h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 12px;
}

.specials-empty p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .special-slide {
    grid-template-columns: 1fr;
  }

  .special-media {
    min-height: 240px;
    max-height: 280px;
  }

  .special-body {
    padding: 32px 28px;
  }

  .specials-track {
    min-height: 0;
  }
}