/* ============================================================================
   Pororoland — stylesheet
   Plain-CSS equivalents of the former Tailwind @apply component classes, plus
   the accent-color variables, page transitions, and scroll-reveal utilities.
   Tailwind utility classes themselves are generated at runtime by the Play CDN.
   ============================================================================ */

/* ── Base ── */
body {
  background: #0a0a0c;
  color: rgba(255, 255, 255, 0.8);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #fff;
}

/* ── Layout container ── */
.container-px {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1200px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 640px) {
  .container-px { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .container-px { padding-left: 3rem; padding-right: 3rem; }
}

/* ── Section eyebrow label ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgb(var(--accent-400));
}

/* ── Buttons ── */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-primary {
  background: rgb(var(--accent-400));
  color: #0a0a0c;
}
.btn-primary:hover {
  background: rgb(var(--accent-300));
  box-shadow: 0 0 40px -8px rgb(var(--accent-400));
}
.btn-primary:focus-visible {
  outline: 2px solid rgb(var(--accent-400));
  outline-offset: 2px;
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

:root {
  color-scheme: dark;
  /* ── Accent palette: AMBER (default) — RGB triplets for rgb(var() / a) ── */
  --accent-50: 254 246 231;
  --accent-100: 253 235 196;
  --accent-200: 251 217 140;
  --accent-300: 248 196 78;
  --accent-400: 245 166 35;
  --accent-500: 224 140 12;
  --accent-600: 181 108 8;
  --accent-700: 138 79 10;
}
/* ── Accent palette: EMERALD (alternatif) ── */
[data-accent='emerald'] {
  --accent-50: 236 253 245;
  --accent-100: 209 250 229;
  --accent-200: 167 243 208;
  --accent-300: 110 231 183;
  --accent-400: 52 211 153;
  --accent-500: 16 185 129;
  --accent-600: 5 150 105;
  --accent-700: 4 120 87;
}
/* ── Accent palette: API — merah-emas, gold highlight → flame red ── */
[data-accent='fire'] {
  --accent-50: 255 244 236;
  --accent-100: 255 224 194;
  --accent-200: 255 192 120;
  --accent-300: 255 157 60;
  --accent-400: 255 94 43;
  --accent-500: 237 58 24;
  --accent-600: 196 36 16;
  --accent-700: 143 26 13;
}
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ── Page transitions ── */
/* Incoming routed content fades + slides up. */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.page-enter { animation: page-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* A soft band of Pororora light sweeps across the screen on navigation. */
@keyframes route-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
.route-sweep {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(var(--accent-400) / 0) 25%,
    rgb(var(--accent-400) / 0.22) 50%,
    rgb(var(--accent-400) / 0) 75%,
    transparent 100%
  );
  animation: route-sweep 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
