/**
 * TravelUniverse — components & motion for monobank x Join Up! 2026.
 * Tokens come from theme.json (var(--wp--preset--...)). Rules below port the
 * uploaded source CSS (buttons, hero, stack-cards, travel-inspiration) and the
 * component specs in DESIGN.md.
 */

/* ============================================================
   Signature scroll reveal  (28px rise + fade, 500ms, fire-once)
   ============================================================ */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}
.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Labels / eyebrows  (12px uppercase, 0.08em tracking)
   ============================================================ */
.tu-label {
  font-size: var(--wp--preset--font-size--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--flame);
}

/* ============================================================
   Buttons  (pill, flame gradient, glow shadow)  — ported from buttons.css
   ============================================================ */
.tu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tu-btn--primary {
  background-image: linear-gradient(135deg, var(--wp--preset--color--flame), var(--wp--preset--color--flame-deep));
  box-shadow: 0 4px 20px rgba(252,99,51,0.35), inset 0 0.5px 1px rgba(255,195,165,0.5);
  color: var(--wp--preset--color--white);
}
.tu-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(252,99,51,0.45), inset 0 0.5px 1px rgba(255,195,165,0.5);
}
.tu-btn--secondary {
  background-image: linear-gradient(180deg, var(--wp--preset--color--blush-light), var(--wp--preset--color--blush));
  box-shadow: inset 0 0.5px 1px #fff;
  color: var(--wp--preset--color--midnight);
}
.tu-btn--secondary:hover { transform: translateY(-2px); }
.tu-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--wp--preset--color--border-fog);
  color: var(--wp--preset--color--midnight);
}
.tu-btn--ghost:hover { border-color: var(--wp--preset--color--midnight); }
.tu-btn--sm { padding: 10px 20px; font-size: 0.75rem; }

/* Make core/button blocks follow the pill+glow look too */
.wp-block-button__link {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(252,99,51,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(252,99,51,0.45); }

/* ============================================================
   Badges  (pill 96px)
   ============================================================ */
.tu-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 96px;
  font-size: var(--wp--preset--font-size--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tu-badge--orange { background: var(--wp--preset--color--blush-light); color: var(--wp--preset--color--flame); }
.tu-badge--navy   { background: var(--wp--preset--color--mist); color: var(--wp--preset--color--midnight); }
.tu-badge--info   { background: var(--wp--preset--color--info-ice); color: var(--wp--preset--color--midnight); }

/* ============================================================
   Hero  — ported from hero.css (flat dark section, glow depth)
   ============================================================ */
.tu-hero {
  position: relative;
  overflow: hidden;
  background: var(--wp--preset--color--midnight);
  color: var(--wp--preset--color--white);
}
.tu-hero .wp-block-heading,
.tu-hero h1, .tu-hero h2 { color: var(--wp--preset--color--white); }
.tu-hero__glow {
  position: absolute;
  inset: -25% -10% auto auto;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(252,99,51,0.20) 0%, rgba(252,99,51,0) 65%);
  pointer-events: none; z-index: 0;
}
.tu-hero > * { position: relative; z-index: 1; }

.hero-image-wrap { position: relative; }
.hero-image-wrap img { position: relative; z-index: 2; }
.hero-image-wrap .floating-icon { width: 3rem; height: 3rem; }
@media (min-width: 768px) {
  .hero-image-wrap .floating-icon { width: 3.75rem; height: 3.75rem; }
}
.hero-badge {
  rotate: -9deg;
  width: 12rem;
  margin-right: 4rem;
  margin-top: -0.35rem;
  object-fit: contain;
  align-self: flex-end;
}
@media (max-width: 767px) {
  .hero-image-wrap .floating-icon--first { right: -1.5rem !important; }
  .hero-badge { margin-top: -0.05rem; }
}

/* Light hero variant — centered single-column layout */
.tu-hero--light {
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--midnight);
}
.tu-hero--light .wp-block-heading,
.tu-hero--light h1, .tu-hero--light h2 { color: var(--wp--preset--color--midnight); }
.tu-hero--light .tu-hero__glow { display: none; }

/* Hero promo card — glassmorphism on dark, mist-tinted on light */
.tu-hero__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 28px;
}
.tu-hero__card--centered {
  max-width: 480px;
  margin: var(--wp--preset--spacing--lg) auto 0;
  background: var(--wp--preset--color--mist);
  border: 1px solid rgba(22,22,78,0.10);
  backdrop-filter: none;
}

/* ============================================================
   Stack cards  — ported from stack-cards.css (sticky ladder)
   ============================================================ */
.stack-cards { --stack-top: 5.5rem; --stack-gap: 1.5rem; }
.stack-cards__item {
  transform-origin: center top;
  will-change: transform;
  margin-bottom: 1.5rem;
  background: var(--wp--preset--color--white);
  border-radius: 24px;
  box-shadow: 0px 4px 20px 0px rgba(165,170,187,0.2);
  padding: 32px 28px;
}
@media (min-width: 768px) {
  .stack-cards__item {
    position: sticky;
    top: calc(var(--stack-top) + var(--stack-gap) * var(--i));
  }
}
.stack-cards__item:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .stack-cards__item:first-child .floating-icon:nth-child(4) { left: -1.5rem !important; }
}

/* Floating icon discs */
.floating-icon {
  position: absolute; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
}
.floating-icon img { width: 55%; height: 55%; object-fit: contain; }

/* ============================================================
   Step cards / condition cards
   ============================================================ */
.tu-card {
  background: var(--wp--preset--color--white);
  border-radius: 24px;
  box-shadow: 0px 4px 20px 0px rgba(165,170,187,0.2);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(165,170,187,0.28);
}
.tu-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--wp--preset--color--flame), var(--wp--preset--color--flame-deep));
  color: #fff; font-weight: 600;
  margin-bottom: 1rem;
}
.tu-condition {
  background: var(--wp--preset--color--white);
  border-radius: 24px;
  box-shadow: 0px 4px 20px 0px rgba(165,170,187,0.2);
  padding: 28px 24px;
  border-top: 3px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tu-condition:hover { border-top-color: var(--wp--preset--color--flame); transform: translateY(-4px); }

/* ============================================================
   Destination cards  — ported from travel-inspiration.css
   ============================================================ */
.destination-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  transition: transform 0.3s ease;
}
.destination-card:hover { transform: translateY(-6px) scale(1.01); }
.destination-card-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(22,22,78,0.75) 0%, transparent 60%);
}
.destination-card > * { position: relative; z-index: 1; padding: 24px; }

/* No box-shadow inside dark sections (Flat-Dark Rule) */
.tu-hero .tu-card,
.tu-hero .stack-cards__item { box-shadow: none; }
