/* ============================================================
   Araquiz · araquiz_components.css
   Faithful CSS recreation of the LOCKED slide components.
   1:1 with remotion/src/*.tsx (EP_006 Pony Carnival lock 2026-05-24).
   Requires colors_and_type.css loaded first (provides the tokens).

   Canvas: every .slide is exactly 1280×720. Components are absolutely
   positioned to match the Remotion layout. Motion (entrances, countdown
   squash, bubble physics) lives in Remotion — these are the resting states.
   ============================================================ */

/* ---------- Slide frame ---------- */
.slide {
  position: relative;
  width: 1280px;
  height: 720px;
  border-radius: var(--r-slide);
  overflow: hidden;
  background: var(--bg-slide);
  font-family: var(--f-ar);
  direction: rtl;
  color: var(--ink);
}
.slide.v-jungle  { background: var(--bg-slide); }   /* Q slides */
.slide.v-deep    { background: var(--bg-deep); }    /* title + closing */
.slide.v-sunset  { background: var(--bg-sunset); }  /* A slides */
.slide.v-energy  { background: var(--bg-energy); }  /* energy resets */

/* ════════════════════════════════════════════════════════════
   DISC — saffron-gold circle holding the subject (LOCKED)
   ════════════════════════════════════════════════════════════ */
.disc {
  background: var(--disc);
  border: var(--bwx) solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-disc);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.disc.q-size { width: 440px; height: 440px; }   /* Q slide */
.disc.a-size { width: 500px; height: 500px; }   /* A slide */
.disc img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Slot-6 Andalusian zoom (Mo STB lock) */
.disc img.zoom-andalusian { transform: scale(1.18); transform-origin: 50% 52%; }

/* ════════════════════════════════════════════════════════════
   SUBJECT PILL — EN saffron mono tab · AR offwhite (EN-first, LOCKED)
   ════════════════════════════════════════════════════════════ */
.subject-pill {
  display: inline-flex;
  align-items: stretch;
  background: var(--offwhite);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  direction: ltr;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
}
.subject-pill .en {
  font-family: var(--f-mono);
  padding: 10px 16px;
  letter-spacing: 2.2px;
  font-size: var(--pill-en);
  background: var(--saffron);
  color: var(--ink);
  display: flex;
  align-items: center;
  border-right: 3px solid var(--ink);
}
.subject-pill .ar {
  font-family: var(--f-ar);
  padding: 8px 20px;
  font-size: var(--pill-ar);
  direction: rtl;
  color: var(--ink);
  display: flex;
  align-items: center;
}

/* ════════════════════════════════════════════════════════════
   DIFFICULTY PILL — 4 LOCKED variants (top-left)
   ════════════════════════════════════════════════════════════ */
.diff-pill {
  position: absolute;
  top: var(--pad-t);
  left: var(--pad-x);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-pill);
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  direction: ltr;
  z-index: 30;
}
.diff-pill .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}
.diff-pill .ar { font-family: var(--f-ar); font-size: 16px; font-weight: 600; letter-spacing: 0; direction: rtl; opacity: 0.55; }
.diff-pill.easy       { background: var(--diff-easy-bg); }
.diff-pill.easy .dot       { background: var(--diff-easy-dot); }
.diff-pill.medium     { background: var(--diff-medium-bg); }
.diff-pill.medium .dot     { background: var(--diff-medium-dot); }
.diff-pill.hard       { background: var(--diff-hard-bg); }
.diff-pill.hard .dot       { background: var(--diff-hard-dot); }
.diff-pill.impossible { background: var(--diff-impossible-bg); }
.diff-pill.impossible .dot { background: var(--diff-impossible-dot); }

/* ════════════════════════════════════════════════════════════
   COUNTDOWN DIGIT — Q-slide top-right (saffron + ink stroke)
   ════════════════════════════════════════════════════════════ */
.countdown-digit {
  position: absolute;
  top: var(--pad-t);
  right: var(--pad-x);
  width: 112px; height: 126px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-ar);
  font-size: var(--countdown);
  font-weight: 700;
  color: var(--saffron);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  line-height: 1;
  z-index: 30;
}

/* ════════════════════════════════════════════════════════════
   ITEM COUNTER — bottom-left mono (NN / total)
   ════════════════════════════════════════════════════════════ */
.item-counter {
  position: absolute;
  bottom: var(--pad-b);
  left: var(--pad-x);
  font-family: var(--f-mono);
  font-size: var(--label-mono);
  font-weight: 700;
  color: rgba(255,243,221,0.65);
  letter-spacing: 3px;
  direction: ltr;
  z-index: 5;
}

/* ════════════════════════════════════════════════════════════
   TIMER BAR — bottom edge, saffron fill drains left (LOCKED)
   ════════════════════════════════════════════════════════════ */
.timer-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 16px;
  background: var(--bg-deep);
  border-top: var(--bw) solid var(--ink);
  overflow: hidden;
  border-bottom-left-radius: var(--r-slide);
  border-bottom-right-radius: var(--r-slide);
}
.timer-bar .fill {
  position: absolute; inset: 0;
  background: var(--saffron);
  transform-origin: left center;
}
.timer-bar .fill.t100 { transform: scaleX(1); }
.timer-bar .fill.t66  { transform: scaleX(0.66); }
.timer-bar .fill.t33  { transform: scaleX(0.33); }

/* ════════════════════════════════════════════════════════════
   Q-SLIDE prompt + stage
   ════════════════════════════════════════════════════════════ */
.q-body {
  position: absolute; inset: 0 0 16px 0;
  display: flex; flex-direction: column; align-items: center;
  padding: var(--pad-t) var(--pad-x) 48px;
  gap: 24px;
}
.q-prompt {
  font-family: var(--f-ar);
  font-size: var(--q-text);
  font-weight: 600;
  color: var(--cream);
  text-align: center;
  direction: rtl;
  line-height: 1.35;
  max-width: 860px;
  margin: 0;
}
.q-prompt .hint {
  display: block;
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,243,221,0.62);
  margin-top: 8px;
}
.q-stage {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  direction: ltr;
}
.disc-pill-col {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

/* ════════════════════════════════════════════════════════════
   A-SLIDE — left disc col / right text col
   ════════════════════════════════════════════════════════════ */
.a-body {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start; justify-content: flex-start;
  gap: 40px;
  padding: 166px var(--pad-x) calc(var(--pad-b) + 30px);
  direction: ltr;
  z-index: 1;
}
.a-disc-col {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.a-text-col {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-end;
  direction: rtl;
  min-width: 0;
}
.a-label {
  font-family: var(--f-mono);
  font-size: var(--label-mono);
  color: rgba(255,243,221,0.55);
  letter-spacing: 2px;
  direction: ltr;
  text-align: right;
  width: 100%;
  display: block;
  line-height: 1.2;
}
.a-country {
  font-family: var(--f-ar-hero);
  font-size: var(--answer-hero);
  font-weight: 700;
  color: var(--cream);
  -webkit-text-stroke: 4.5px var(--ink);
  paint-order: stroke fill;
  line-height: 1.25;
  text-align: right;
  width: 100%;
  display: block;
  margin-top: 32px;
}

/* ════════════════════════════════════════════════════════════
   FACT PANEL — هل تعلم؟ polaroid note (A slide, LOCKED, −1.2° tilt)
   ════════════════════════════════════════════════════════════ */
.fact-panel {
  position: relative;
  width: 100%;
  background: var(--offwhite);
  border: 3.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-fact);
  transform: rotate(-1.2deg);
  direction: rtl;
  margin-top: 56px;
  padding-top: 12px;
}
.fact-panel .fact-tab {
  position: absolute;
  top: -22px; right: 18px;
  background: var(--saffron);
  border: 3px solid var(--ink);
  border-radius: 100px;
  box-shadow: var(--shadow-pill);
  padding: 6px 18px;
  font-family: var(--f-ar);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  transform: rotate(2.4deg);
  line-height: 1;
}
.fact-panel .fact-ar {
  padding: 18px 22px;
  font-family: var(--f-ar);
  font-size: var(--fact-body);
  font-weight: 400;
  color: var(--fact-text);
  line-height: 1.55;
}
.fact-panel .fact-en {
  padding: 0 22px 14px;
  font-family: var(--f-en);
  font-size: 14px;
  font-style: italic;
  color: var(--fact-en);
  line-height: 1.5;
  direction: ltr;
  text-align: left;
}

/* Aha-dots — faint saffron dots scattered in A-slide safe zones */
.aha-dots { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

/* ════════════════════════════════════════════════════════════
   TITLE CARD (cold open)
   ════════════════════════════════════════════════════════════ */
.tc-stripe {
  position: absolute; top: 0; left: 0; right: 0;
  height: 10px; background: var(--saffron);
  border-bottom: var(--bw) solid var(--ink);
}
.tc-wordmark {
  position: absolute; top: var(--pad-t); right: var(--pad-x);
  font-family: var(--f-mono);
  font-size: 15px; font-weight: 700;
  color: rgba(255,243,221,0.62);
  letter-spacing: 1px; direction: ltr; z-index: 30;
}
.tc-wordmark em { color: var(--saffron); font-style: normal; }
.tc-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 80px; direction: rtl;
}
.tc-title {
  font-family: var(--f-ar-hero);
  font-size: var(--title-hero);
  font-weight: 400;
  color: var(--cream);
  -webkit-text-stroke: 3.5px var(--ink);
  paint-order: stroke fill;
  line-height: 1.05;
  text-align: center;
  margin: 0 0 20px;
}
.tc-rule {
  width: 72px; height: 6px;
  background: var(--saffron);
  border: 2px solid var(--ink);
  border-radius: 100px;
  margin-bottom: 18px;
}
.tc-subtitle {
  font-family: var(--f-mono);
  font-size: 15px; font-weight: 600;
  color: rgba(255,243,221,0.62);
  letter-spacing: 3px; direction: ltr; margin: 0;
  white-space: nowrap;
}
.tc-dot {
  position: absolute; border-radius: 50%;
  background: var(--saffron); border: 2px solid var(--ink);
}
/* Category chip — bottom-center saffron pill (icon + AR + EN) */
.cat-chip {
  position: absolute; bottom: 44px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  background: var(--saffron);
  padding: 10px 24px 10px 14px;
  border-radius: 100px;
  border: 3.5px solid var(--ink);
  box-shadow: var(--shadow-chip);
  white-space: nowrap; direction: ltr;
}
.cat-chip .cat-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.28);
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-chip .cat-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cat-chip .cat-ar { font-family: var(--f-ar); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; direction: rtl; }
.cat-chip .cat-en { font-family: var(--f-mono); font-size: 10px; font-weight: 700; color: var(--ink); opacity: 0.5; letter-spacing: 3px; }

/* ════════════════════════════════════════════════════════════
   COUNTDOWN INTRO — جاهزين؟ + saffron disc with 8px shadow (LOCKED)
   Resting state shows "1" (the music beat-drop moment).
   ════════════════════════════════════════════════════════════ */
.cd-prompt-ar {
  position: absolute; left: 0; right: 0; top: 14%;
  text-align: center;
  font-family: var(--f-ar); font-weight: 700;
  font-size: 64px; line-height: 1;
  color: var(--cream); direction: rtl; z-index: 5;
}
.cd-prompt-en {
  position: absolute; left: 0; right: 0; top: 26%;
  text-align: center;
  font-family: var(--f-en); font-weight: 700;
  font-size: 20px; color: rgba(255,243,221,0.62);
  letter-spacing: 0.08em; text-transform: uppercase; z-index: 5;
}
/* Episode chip — top-left on the countdown intro (white pill, brutalist shadow) */
.ep-chip {
  position: absolute; top: 30px; left: 30px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-pill);
  box-shadow: var(--shadow-pill); padding: 9px 20px; direction: rtl; z-index: 30; white-space: nowrap;
}
.ep-chip .ar { font-family: var(--f-ar); font-weight: 700; font-size: 24px; color: var(--ink); line-height: 1; }
.ep-chip .div { width: 2px; height: 20px; background: #C9C4BA; }
.ep-chip .en { font-family: var(--f-mono); font-weight: 700; font-size: 17px; letter-spacing: 1px; color: var(--ink); direction: ltr; }

.cd-disc {
  position: absolute; left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  width: 32%; aspect-ratio: 1; border-radius: 50%;
  background: var(--saffron);
  border: var(--bwx) solid var(--ink);
  box-shadow: var(--shadow-cd);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-en); font-weight: 900;
  font-size: 200px; color: var(--ink); line-height: 1;
}

/* ════════════════════════════════════════════════════════════
   ENERGY RESET — big numeral + AR hero label + mono caption
   ════════════════════════════════════════════════════════════ */
.energy-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
}
.energy-num {
  font-family: var(--f-en); font-weight: 900;
  font-size: var(--energy-num);
  color: var(--saffron);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  line-height: 0.9;
}
.energy-ar {
  font-family: var(--f-ar); font-size: var(--energy-ar); font-weight: 700;
  color: var(--cream);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  direction: rtl;
}
.energy-en {
  font-family: var(--f-mono); font-size: 18px; font-weight: 700;
  color: var(--cream); opacity: 0.85;
  letter-spacing: 4px; direction: ltr;
}

/* ════════════════════════════════════════════════════════════
   CLOSING — Bubble Gun bg + CTA bar (LOCKED bottom strip)
   ════════════════════════════════════════════════════════════ */
.closing-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* Paired bubble = disc + pill as one unit */
.bubble-pair { position: absolute; }
.bubble-pair .b-disc {
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--disc);
  overflow: hidden;
}
.bubble-pair .b-disc img { width: 100%; height: 100%; object-fit: cover; }
.bubble-pair .b-pill {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center;
  background: var(--saffron); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow-pill);
  padding: 6px 14px;
  font-family: var(--f-mono); font-weight: 700; font-size: 12px;
  letter-spacing: 1.4px; white-space: nowrap; line-height: 1; direction: ltr;
}
.bubble-pair .b-pill .ar { font-family: var(--f-ar); font-weight: 700; font-size: 14px; margin-right: 6px; direction: rtl; }
.bubble-pair .b-pill .sep { margin: 0 6px; opacity: 0.55; }

.closing-title {
  position: absolute; top: 60px; left: 0; right: 0;
  text-align: center; z-index: 100; pointer-events: none;
}
.closing-title .ar-hero {
  font-family: var(--f-ar-hero); font-size: var(--closing-hero); font-weight: 400;
  color: var(--cream);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  line-height: 1.05; direction: rtl;
}
.closing-title .en-sub {
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  color: var(--cream); opacity: 0.75; letter-spacing: 4px; direction: ltr;
  margin-top: 22px;
}
/* CTA bar — LOCKED channel constant (thanks line + 3 buttons) */
.closing-cta {
  position: absolute; bottom: 36px; left: 60px; right: 60px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  z-index: 100;
}
.closing-cta .thanks-ar { font-family: var(--f-ar); font-weight: 700; font-size: 26px; color: var(--cream); direction: rtl; text-align: center; line-height: 1; }
.closing-cta .thanks-en { font-family: var(--f-mono); font-size: 10px; color: var(--cream); opacity: 0.7; letter-spacing: 3px; margin-top: 4px; direction: ltr; text-align: center; }
.cta-row { display: flex; gap: 12px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  border: 3px solid var(--ink); box-shadow: var(--shadow-card);
  white-space: nowrap; direction: ltr;
}
.cta-btn .icon { font-size: 18px; line-height: 1; }
.cta-btn .ar { font-family: var(--f-ar); font-weight: 700; font-size: 18px; line-height: 1; direction: rtl; }
.cta-btn .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.5px; line-height: 1; font-weight: 700; }
.cta-btn.like      { background: var(--saffron); color: var(--ink); }
.cta-btn.subscribe { background: #F25E5E; color: var(--offwhite); }
.cta-btn.share     { background: #51CF66; color: var(--ink); }

/* ---------- Standalone wordmark ---------- */
.wordmark {
  font-family: var(--f-mono); font-weight: 700; direction: ltr;
  letter-spacing: 1px; color: var(--ink);
}
.wordmark em { color: var(--saffron); font-style: normal; }
