/* =========================================================
   REUNUSA 2026 — Custom CSS (RESPONSIVE)
   ========================================================= */


/* =========================================================
   1. WARNA DASAR
   ========================================================= */
:root {
  --green-950: #0a1f10;                      /* hijau hutan paling gelap */
  --green-900: #122f18;                      /* hijau hutan gelap */
  --green-footer: #1e2a20;                   /* hijau footer (Figma) */
  --cream:     #f4f0e6;
  --sun:       #ffed9e;
  --blossom:   #fcbcca;
  --lilac:     #f1d2fc;
  /* Figma tokens */
  --primary:   #122F18;
  --secondary: #FFE784;
  --text-ink:  #1E2A20;
  --surface:   #FAF6F0;
}


/* =========================================================
   2. BODY
   ========================================================= */
body {
  background-color: var(--green-950);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 231, 132, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 40% at 80% 30%, rgba(252, 188, 202, 0.08), transparent 65%),
    radial-gradient(ellipse 70% 40% at 15% 55%, rgba(255, 231, 132, 0.07), transparent 65%),
    radial-gradient(ellipse 90% 50% at 50% 85%, rgba(30, 58, 35, 0.55), transparent 70%),
    linear-gradient(to bottom,
      #122F18 0%,
      #14351B 18%,
      #0f2a15 38%,
      #14351B 58%,
      #0f2a15 78%,
      #0a1f10 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: 'Alexandria', sans-serif;
  color: var(--cream);
}


/* =========================================================
   3. PATTERN BERULANG
   ========================================================= */
.pattern-band {
  background-image: url('/assets/pattern-1.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
  position: relative;
}
.pattern-band-2 {
  background-image: url('/assets/pattern-2.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
  position: relative;
}


/* =========================================================
   4. GRADASI TRANSISI HIJAU (atas & bawah pattern)
   Membuat transisi pattern-1 ⇄ pattern-2 jadi mulus
   ========================================================= */
.green-fade-top::before,
.green-fade-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 160px;                             /* tinggi area transisi */
  pointer-events: none;
  z-index: 1;
}
.green-fade-top::before {
  top: 0;
  background-image: linear-gradient(to bottom, var(--green-950) 0%, transparent 100%);
}
.green-fade-bottom::after {
  bottom: 0;
  background-image: linear-gradient(to top, var(--green-950) 0%, transparent 100%);
}


/* =========================================================
   5. HERO SPOTLIGHT
   ========================================================= */
.bg-forest-spotlight {
  background-color: var(--green-900);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(255,237,158,0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(252,188,202,0.12), transparent 70%);
}


/* =========================================================
   6. TEKS GRADIENT HERO
   ========================================================= */
.text-gradient-hero {
  background-image: linear-gradient(103deg, #fcbcca 44%, #ffed9e 92%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: 0 4px 18px rgba(0,0,0,0.25);
}


/* =========================================================
   7. GLOW TOMBOL & CHART BAR
   ========================================================= */
.shadow-sun-glow {
  box-shadow: inset 0 0 9px 1px rgba(255,255,255,0.85);
}
.shadow-chart-bar {
  box-shadow:
    0 0 9px 3px rgba(252,188,202,0.50),
    inset 0 0 9px 1px rgba(255,255,255,1.00);
}


/* =========================================================
   8. CHART BAR
   ========================================================= */
.chart-bar {
  height: 40px;
  border-radius: 6px;
  background-image: linear-gradient(to right, #fefce8 10%, #fde68a 50%);
}


/* =========================================================
   9. EVENT TICKET CARD (pakai SVG perangko sebagai background)
   ========================================================= */
.event-ticket {
  position: relative;
  width: 100%;
  aspect-ratio: 592 / 454;                   /* sama dengan viewBox SVG */
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-ticket__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}
.event-ticket__content {
  position: relative;
  z-index: 1;
  padding: 8% 10%;                           /* jarak dari tepi bentuk perangko */
  width: 100%;
}


/* =========================================================
   10. ACCORDION FAQ
   ========================================================= */
.faq-item {
  background-image: linear-gradient(135deg, #fde68a 50%, #fecaca 100%);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--green-900);
}
@media (min-width: 640px) {
  .faq-item { padding: 20px 28px; }          /* lebih lega di tablet/desktop */
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;                   /* rapi saat 2 baris di mobile */
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .faq-item summary { font-size: 18px; align-items: center; }
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f5f5f4;
  display: grid;
  place-items: center;
  transition: transform .2s;
}
.faq-item[open] .toggle { transform: rotate(45deg); }
.faq-item p {
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .faq-item p { font-size: 16px; }
}


/* =========================================================
   11. MARQUEE (siap pakai)
   ========================================================= */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 30s linear infinite; }

/* =========================================================
   12b. SPONSOR MARQUEE (dua baris berlawanan arah)
   ========================================================= */
@keyframes sponsor-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes sponsor-scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.sponsor-marquee { overflow: hidden; width: 100%; position: relative; }
.sponsor-marquee::before,
.sponsor-marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
  pointer-events: none;
}
.sponsor-marquee::before { left: 0;  background: linear-gradient(to right, #122f18, transparent); }
.sponsor-marquee::after  { right: 0; background: linear-gradient(to left,  #122f18, transparent); }
.sponsor-track { display: flex; width: max-content; }
.sponsor-marquee--right .sponsor-track { animation: sponsor-scroll-right 40s linear infinite; }
.sponsor-marquee--left  .sponsor-track { animation: sponsor-scroll-left  40s linear infinite; }
.sponsor-track__inner {
  display: flex; align-items: center; gap: 48px;
  padding: 0 24px; flex-shrink: 0;
}
.sponsor-marquee::before,
.sponsor-marquee::after { display: none; }

/* =========================================================
   12c. LINE UP STAMPS
   ========================================================= */
.lineup-stamp {
  display: block;
  background: #fef3c7;
  border-radius: 14px;
  padding: 18px;
  border: 2px dashed rgba(30, 42, 32, 0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.lineup-stamp:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
.lineup-stamp__img {
  display: block;
  height: 140px;
  margin: 0 auto;
  object-fit: contain;
}

/* =========================================================
   12d. COUNTDOWN
   ========================================================= */
.countdown-cell {
  min-width: 72px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, #FFF3B8 0%, #FFE784 55%, #F5D24A 100%);
  color: var(--text-ink);
  border: 1px solid rgba(255,255,255,0.5);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 10px 24px rgba(0,0,0,0.35),
    0 0 24px rgba(255,231,132,0.25);
}
.countdown-cell__num {
  font-family: 'Anybody', sans-serif;
  font-size: 32px; line-height: 1;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.countdown-cell__label {
  margin-top: 4px;
  font-family: 'Alexandria', sans-serif;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(18, 47, 24, 0.75);
}
@media (min-width: 640px) {
  .countdown-cell { min-width: 96px; padding: 16px 20px; }
  .countdown-cell__num { font-size: 48px; }
  .countdown-cell__label { font-size: 12px; }
}


/* =========================================================
   12. UTILITY
   ========================================================= */
.font-display { font-family: 'Anybody', sans-serif; }
.font-body    { font-family: 'Alexandria', sans-serif; }
.font-faq     { font-family: 'Inter', sans-serif; }

/* =========================================================
   13. FIGMA REFINEMENTS — Hero, Benefit, Pantau Alumni, FAQ
   Palette: Primary #122F18 · Gold #FFE784 · Ink #1E2A20 · Font Inter
   ========================================================= */

/* Gold CTA (matches Figma secondary) */
.btn-gold {
  background: var(--secondary);
  color: var(--text-ink);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.6),
    0 8px 24px rgba(255,231,132,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.7),
    0 12px 28px rgba(255,231,132,0.5);
}
.btn-ghost-gold {
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.btn-ghost-gold:hover {
  background: rgba(255,231,132,0.12);
}

/* Hero gradient refined toward Figma warm accent */
.text-gradient-hero {
  background-image: linear-gradient(103deg, #FFE784 0%, #FCBCCA 55%, #FFE784 100%);
  font-family: 'Anybody', sans-serif;
  letter-spacing: -0.01em;
}

/* Chart bar refined to gold */
.chart-bar {
  background-image: linear-gradient(to right, #FFF3B8 0%, var(--secondary) 60%, #F5D24A 100%);
  border-radius: 999px;
}
.shadow-chart-bar {
  box-shadow:
    0 0 14px 2px rgba(255,231,132,0.35),
    inset 0 0 8px rgba(255,255,255,0.7);
}

/* Pantau Alumni: card wrapper */
#peringkat #leaderboardList {
  background: rgba(250, 246, 240, 0.04);
  border: 1px solid rgba(255, 231, 132, 0.18);
  border-radius: 20px;
  padding: 22px 18px;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(6px);
}
@media (min-width: 640px) {
  #peringkat #leaderboardList { padding: 28px 26px; }
}

/* FAQ card — cleaner Figma feel, still cream/gold */
.faq-item {
  background: var(--surface);
  background-image: linear-gradient(135deg, #FFF6D6 0%, #FAF6F0 60%, #FDE2E4 100%);
  border: 1px solid rgba(18, 47, 24, 0.08);
  border-radius: 18px;
  color: var(--text-ink);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.faq-item summary { color: var(--text-ink); }
.faq-item .toggle {
  background: var(--primary);
  color: var(--secondary);
  font-weight: 700;
}

/* Benefit / Detail — heading tone using ink+gold, Inter body */
#detail h2 { font-family: 'Anybody', sans-serif; letter-spacing: -0.01em; }
#detail p  { font-family: 'Inter', sans-serif; }
#detail .btn-gold-lg,
#detail a[href="/register.html"] {
  background: var(--secondary);
  color: var(--text-ink);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.6),
    0 10px 28px rgba(255,231,132,0.4);
}

/* Line Up — 6-col grid refinement */
#lineupGrid .lineup-stamp {
  padding: 12px 10px;
  border-radius: 12px;
}
#lineupGrid .lineup-stamp__img {
  height: 96px;
}
@media (min-width: 1024px) {
  #lineupGrid .lineup-stamp__img { height: 110px; }
}
.lineup-stamp {
  transition: transform .3s ease, box-shadow .3s ease;
}
.lineup-stamp:hover {
  transform: scale(1.05);
}

/* =========================================================
   14. SPONSOR LOGO — sizing + glassmorphism fallback pill
   ========================================================= */
.sponsor-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 150px; height: 88px; flex-shrink: 0;
}
.sponsor-logo {
  height: 64px; width: auto; max-width: 200px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  transition: opacity .2s ease, transform .2s ease;
}
.sponsor-logo:hover { opacity: 1; transform: scale(1.05); }
@media (min-width: 640px) {
  .sponsor-item { height: 112px; min-width: 180px; }
  .sponsor-logo { height: 80px; max-width: 240px; }
}
.sponsor-fallback-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  color: rgba(255, 231, 132, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 231, 132, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =========================================================
   15. BENEFIT CARD (Figma 218-2526)
   ========================================================= */
.benefit-card {
  background: transparent;
  border: none;
  box-shadow: none;
}
.benefit-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500; color: #FFFFFF;
  line-height: 1.4;
}
.benefit-item::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--primary)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFE784' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 8.5l3 3 6-6'/></svg>")
    center/14px 14px no-repeat;
  margin-top: 1px;
  box-shadow: 0 4px 10px rgba(18,47,24,0.25);
}
@media (min-width: 640px) {
  .benefit-item { font-size: 15px; }
}
.benefit-kaaba {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

/* =========================================================
   16. PANTAU ALUMNI — gold bar w/ embedded % badge (Figma 218-2338)
   ========================================================= */
.alumni-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
}
@media (min-width: 640px) {
  .alumni-row { grid-template-columns: 110px 1fr auto; gap: 18px; }
}
.alumni-row__label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #FFF;
  text-align: right;
  letter-spacing: 0.02em;
}
@media (min-width: 640px) {
  .alumni-row__label { font-size: 15px; }
}
.alumni-row__track {
  position: relative;
  height: 26px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,231,132,0.12);
  overflow: visible;
}
.alumni-row__bar {
  position: relative;
  height: 100%;
  min-width: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFF6D6 0%, #FFE784 55%, #F5D24A 100%);
  box-shadow:
    0 0 18px rgba(255,231,132,0.45),
    inset 0 1px 0 rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px;
}
.alumni-row__pct {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .alumni-row__pct { font-size: 12px; }
}
.alumni-row__count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  white-space: nowrap;
  color: rgba(255,255,255,0.85);
  min-width: 88px;
  text-align: right;
}
@media (min-width: 640px) {
  .alumni-row__count { font-size: 14px; min-width: 120px; }
}
