/*
 * Feast and Find, Duck Hunt (Hidden) Page Styles
 * Loaded only when page-duck-hunt.php is assigned.
 * All selectors prefixed ffd- (feast-find-duck).
 */

.ffd-page {
  max-width: none;
  margin: 0;
  padding: 0;
}


/* ═══════════════════════════════════════════════
   HERO
   Soft, welcoming. No ocean gradient, this is a
   calm, intimate welcome, not a marketing page.
   ═══════════════════════════════════════════════ */

.ffd-hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(152, 240, 218, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(190, 233, 255, 0.3) 0%, transparent 50%),
    var(--ff-sand);
  padding: 120px var(--ff-page-padding, 48px) 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ffd-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.ffd-hero .ffp-badge {
  margin-bottom: 24px;
}

.ffd-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--ff-ocean);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 24px;
}

.ffd-hero__lede {
  font-size: 20px;
  line-height: 30px;
  color: var(--ff-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Subtle wave decoration below the lede */
.ffd-hero__waves {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 32px;
  color: var(--ff-teal);
  line-height: 1;
  opacity: 0.6;
}


/* ═══════════════════════════════════════════════
   VIDEO / MESSAGE AREA
   ═══════════════════════════════════════════════ */

.ffd-video-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--ff-page-padding, 48px);
}

.ffd-video-placeholder {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 64px 32px;
  text-align: center;
  box-shadow: var(--ff-shadow-card);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ffd-video-placeholder__icon {
  margin-bottom: 16px;
  opacity: 0.9;
  transition: transform var(--ff-ease-normal);
}

.ffd-video-placeholder:hover .ffd-video-placeholder__icon {
  transform: scale(1.05);
}

.ffd-video-placeholder__label {
  font-size: 18px;
  font-weight: 600;
  color: var(--ff-navy);
  margin: 0 0 8px;
}

.ffd-video-placeholder__note {
  font-size: 14px;
  color: var(--ff-stone);
  font-style: italic;
  margin: 0;
}


/* ═══════════════════════════════════════════════
   HIDDEN UNLOCK, the duck
   ═══════════════════════════════════════════════ */

.ffd-unlock-section {
  padding: 64px 0;
}

.ffd-unlock-hint {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ff-teal-dark);
  margin-bottom: 20px;
}

/* Duck button, all-unset semantic button styled as interactive duck */
.ffd-duck {
  background: none;
  border: none;
  padding: 20px;
  cursor: pointer;
  display: inline-block;
  line-height: 0;
  border-radius: 50%;
  transition: transform var(--ff-ease-normal);
  /* Subtle idle animation, a gentle bob */
  animation: ffd-duck-bob 3s ease-in-out infinite;
}

.ffd-duck:hover {
  transform: scale(1.08);
}

.ffd-duck:active {
  transform: scale(0.94);
}

.ffd-duck:focus-visible {
  outline: 3px solid var(--ff-coral);
  outline-offset: 4px;
}

/* Glow halo around the duck */
.ffd-duck::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(152, 240, 218, 0.5) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--ff-ease-normal);
  pointer-events: none;
  z-index: -1;
}

.ffd-duck:hover::before {
  opacity: 1;
}

/* Duck unlocked state */
.ffd-duck--unlocked {
  animation: ffd-duck-celebrate 0.8s ease-out;
  pointer-events: none;
}

.ffd-unlock-note {
  font-size: 14px;
  color: var(--ff-stone);
  font-style: italic;
  margin-top: 24px;
}

@keyframes ffd-duck-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes ffd-duck-celebrate {
  0%   { transform: scale(1) rotate(0deg); }
  25%  { transform: scale(1.15) rotate(-8deg); }
  50%  { transform: scale(1.2) rotate(8deg); }
  75%  { transform: scale(1.1) rotate(-4deg); }
  100% { transform: scale(1.05) rotate(0deg); }
}


/* ═══════════════════════════════════════════════
   REVEALED CONTENT, slide-down when unlocked
   ═══════════════════════════════════════════════ */

.ffd-unlocked {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 700ms ease,
    max-height 900ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ffd-unlocked[data-open="true"] {
  opacity: 1;
  max-height: 5000px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ffd-duck { animation: none; }
  .ffd-duck--unlocked { animation: none; }
  .ffd-unlocked { transition: opacity 200ms ease; }
}


/* ═══════════════════════════════════════════════
   ENTRY FORM CARD
   ═══════════════════════════════════════════════ */

.ffd-entry-card {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 0 var(--ff-page-padding, 48px);
}

.ffd-entry-form {
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 40px 36px;
  box-shadow: var(--ff-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ffd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ffd-field__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--ff-ocean);
}

.ffd-field input {
  font-family: var(--wp--preset--font-family--primary);
  font-size: 16px;
  padding: 14px 18px;
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius-sm);
  background: var(--ff-sand);
  color: var(--ff-navy);
  transition: border-color var(--ff-ease-fast), background var(--ff-ease-fast);
}

.ffd-field input:focus {
  outline: none;
  border-color: var(--ff-ocean);
  background: var(--ff-white);
}

.ffd-field input::placeholder {
  color: #9aa0a6;
}

.ffd-entry-form button {
  margin-top: 8px;
  text-align: center;
}

.ffd-form-note {
  font-size: 12px;
  color: var(--ff-stone);
  font-style: italic;
  text-align: center;
  margin: 0;
}

.ffd-small {
  font-size: 13px;
  color: var(--ff-stone);
  font-style: italic;
}


/* ═══════════════════════════════════════════════
   BONUS ENTRIES GRID
   ═══════════════════════════════════════════════ */

.ffd-section-lede {
  max-width: 520px;
  margin: 0 auto 48px;
}

.ffd-bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.ffd-bonus {
  display: flex;
  gap: 20px;
  background: var(--ff-white);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 28px;
  box-shadow: var(--ff-shadow-card);
  transition: box-shadow var(--ff-ease-normal), transform var(--ff-ease-normal);
}

.ffd-bonus:hover {
  box-shadow: var(--ff-shadow-card-hover);
  transform: translateY(-2px);
}

.ffd-bonus__num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ff-icon-bg-teal);
  color: var(--ff-teal-dark);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.ffd-bonus__body h3 {
  font-size: 18px;
  color: var(--ff-navy);
  margin: 0 0 6px;
}

.ffd-bonus__body p {
  font-size: 14px;
  line-height: 21px;
  color: var(--ff-muted);
  margin: 0 0 8px;
}

.ffd-bonus__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ocean);
}


/* ═══════════════════════════════════════════════
   RULES / LEGAL NOTE
   ═══════════════════════════════════════════════ */

.ffd-rules-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ff-stone);
  margin: 0 0 16px;
}

.ffd-rules-text {
  font-size: 13px;
  line-height: 22px;
  color: var(--ff-stone);
  padding: 20px 24px;
  background: var(--ff-sand-alt);
  border-radius: var(--ff-radius-sm);
  margin: 0;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .ffd-hero {
    padding: 80px 24px 64px;
  }

  .ffd-video-wrap {
    padding: 0 24px;
  }

  .ffd-video-placeholder {
    padding: 40px 24px;
  }

  .ffd-unlock-section {
    padding: 48px 0;
  }

  .ffd-entry-card {
    padding: 0 24px;
  }

  .ffd-entry-form {
    padding: 28px 24px;
  }

  .ffd-bonus-grid {
    grid-template-columns: 1fr;
  }

  .ffd-duck__svg {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .ffd-hero {
    padding: 64px 16px 48px;
  }

  .ffd-hero__lede {
    font-size: 17px;
    line-height: 26px;
  }

  .ffd-video-wrap,
  .ffd-entry-card {
    padding: 0 16px;
  }

  .ffd-bonus {
    flex-direction: column;
    gap: 12px;
  }
}

/* ── Back-to-site CTA (Section 8) ─────────────────
   Always visible, outside the tap-the-duck unlock gate. Gives visitors a
   path off the duck page if they don't want to enter the giveaway. */
.ffd-explore { padding: 48px 0 56px; }
.ffd-explore h2 {
  margin: 10px 0 8px;
  font-size: 30px;
  line-height: 1.15;
  color: var(--ff-ocean);
  letter-spacing: -0.01em;
}
.ffd-explore p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ff-navy);
  max-width: 520px;
  margin: 0 auto 22px;
}
.ffd-explore__buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
@media (max-width: 480px) {
  .ffd-explore h2 { font-size: 26px; }
  .ffd-explore__buttons { width: 100%; flex-direction: column; align-items: stretch; }
  .ffd-explore__buttons .ffh-btn { width: 100%; }
}


/* ═══════════════════════════════════════════════
   ENTRY FORM, ADDITIONAL FIELDS
   Added when the giveaway form became real (textarea,
   consent checkbox, optional-field hint, status messages).
   Matches the existing .ffd-field input styles so form
   elements look consistent.
   ═══════════════════════════════════════════════ */

.ffd-field textarea {
  font-family: var(--wp--preset--font-family--primary);
  font-size: 16px;
  padding: 14px 18px;
  border: 1.5px solid var(--ff-border);
  border-radius: var(--ff-radius-sm);
  background: var(--ff-sand);
  color: var(--ff-navy);
  transition: border-color var(--ff-ease-fast), background var(--ff-ease-fast);
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}
.ffd-field textarea:focus {
  outline: none;
  border-color: var(--ff-ocean);
  background: var(--ff-white);
}
.ffd-field textarea::placeholder {
  color: #9aa0a6;
}

.ffd-field__label--optional {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ffd-field__optional {
  font-weight: 500;
  font-size: 12px;
  color: var(--ff-stone);
  letter-spacing: 0;
  text-transform: none;
}

.ffd-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ff-navy);
  cursor: pointer;
  padding: 4px 0;
}
.ffd-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--ff-ocean);
  cursor: pointer;
}
.ffd-consent span {
  flex: 1;
}

/* Inline status messages rendered by duck-hunt.js after submit. */
.ff-form-status {
  margin: 8px 0 0 0;
  padding: 12px 14px;
  border-radius: var(--ff-radius-sm);
  font-size: 14px;
  line-height: 1.45;
}
.ff-form-status--success {
  background: #e7f7ef;
  color: #075a3a;
  border: 1px solid #a6dfc1;
}
.ff-form-status--error {
  background: #fdecea;
  color: #7a1f15;
  border: 1px solid #f3b8b0;
}

.ffd-rules-text--muted {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ff-stone);
}
.ffd-rules-text--muted a {
  color: var(--ff-teal-dark, var(--ff-ocean));
  text-decoration: underline;
}

