/* ============================================================
   زوز 💛  — anniversary surprise
   Mobile-first, RTL, warm & playful. Parallax + sleek sliders.
   ============================================================ */

:root {
  --rose:      #b23a5b;
  --rose-deep: #7a1f3d;
  --gold:      #d4a24e;
  --cream:     #fff7f0;
  --cream-2:   #ffeede;
  --ink:       #43212b;
  --ink-soft:  #7a5560;
  --card:      #fffdfb;
  --shadow:    0 18px 40px -22px rgba(122, 31, 61, .55);
  --radius:    22px;
  --maxw:      560px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Tajawal", system-ui, "Segoe UI", "Noto Sans Arabic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, var(--cream-2), transparent 60%),
    radial-gradient(1000px 600px at -10% 110%, #ffe3ea, transparent 55%),
    var(--cream);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.7;
}

.hidden { display: none !important; }

.screen {
  min-height: 100dvh;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 6vw, 36px);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ============================================================
   PARALLAX — drifting background blobs (behind everything)
   ============================================================ */
.bg-parallax {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-parallax .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .55;
  will-change: transform;
}
.bg-parallax .b1 { width: 42vw; height: 42vw; top: -6vh;  right: -8vw; background: radial-gradient(circle, #ffd0c2, transparent 70%); }
.bg-parallax .b2 { width: 50vw; height: 50vw; bottom: -12vh; left: -10vw; background: radial-gradient(circle, #ffc6d6, transparent 70%); }
.bg-parallax .b3 { width: 34vw; height: 34vw; top: 38vh;  left: 55vw;  background: radial-gradient(circle, #ffe6b8, transparent 70%); }
.bg-parallax .b4 { width: 28vw; height: 28vw; top: 62vh;  right: 60vw; background: radial-gradient(circle, #ffd7e2, transparent 70%); }

/* ---------- floating hearts / confetti fx ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.fx .heart, .fx .conf { position: absolute; top: -8vh; will-change: transform, opacity; animation: fall linear forwards; }
.fx .heart { font-size: 26px; }
.fx .conf { width: 10px; height: 14px; border-radius: 2px; }
@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(115vh) rotate(540deg); opacity: 0; }
}

/* ============================================================
   LOCK SCREEN
   ============================================================ */
.gate { justify-content: center; align-items: center; text-align: center; gap: 8px; }
.gate-card {
  background: var(--card);
  border: 1px solid #f4dcd0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(26px, 7vw, 40px);
  width: 100%;
  animation: pop .6s cubic-bezier(.2, .9, .25, 1.2) both;
}
@keyframes pop { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

.lock-badge { font-size: 46px; margin-bottom: 6px; animation: sway 3.5s ease-in-out infinite; }
@keyframes sway { 0%,100%{transform:rotate(-6deg)} 50%{transform:rotate(6deg)} }

.gate-title { font-family: "Amiri", serif; font-size: clamp(26px, 8vw, 34px); margin: 6px 0 4px; color: var(--rose-deep); }
.gate-sub { margin: 0 0 20px; color: var(--ink-soft); font-size: 17px; }
.gate-form { display: flex; flex-direction: column; gap: 12px; }

.pw-input {
  font-family: inherit; font-size: 20px; text-align: center;
  padding: 16px 18px; border: 2px solid #f0d3c5; border-radius: 16px;
  background: #fffaf6; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.pw-input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(178, 58, 91, .12); }

.btn {
  font-family: inherit; font-weight: 700; font-size: 19px; color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  border: none; border-radius: 16px; padding: 15px 18px; cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(122, 31, 61, .8);
  transition: transform .12s ease, filter .2s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px) scale(.99); }

.gate-msg { min-height: 24px; margin: 14px 0 4px; font-size: 16px; font-weight: 500; color: var(--rose); }
.gate-msg.ok { color: #1f8a5b; }

.link-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: 15px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; padding: 6px; }
.hint { margin: 8px 0 0; font-size: 15px; color: var(--gold); font-weight: 500; }
.tiny { margin-top: 22px; font-size: 12.5px; color: #b79aa2; text-align: center; }

.shake { animation: shake .4s; }
@keyframes shake {
  10%,90%{transform:translateX(-2px)} 20%,80%{transform:translateX(4px)}
  30%,50%,70%{transform:translateX(-8px)} 40%,60%{transform:translateX(8px)}
}

/* ============================================================
   HERO  (+ parallax scene)
   ============================================================ */
.hero { text-align: center; padding: 18px 0 6px; position: relative; overflow: clip; }

.parallax-scene { position: absolute; inset: -10% -10% 0; pointer-events: none; z-index: 0; }
.parallax-scene .p-layer { position: absolute; opacity: .85; will-change: transform; font-size: 30px; }
.parallax-scene .p-blob  { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .5; will-change: transform; }
.parallax-scene .pb1 { width: 46%; height: 46%; top: 2%;  right: 6%; background: radial-gradient(circle, #ffd7c2, transparent 70%); }
.parallax-scene .pb2 { width: 40%; height: 40%; top: 20%; left: 4%;  background: radial-gradient(circle, #ffc9db, transparent 70%); }
.parallax-scene .pl1 { top: 6%;  right: 14%; font-size: 34px; }
.parallax-scene .pl2 { top: 30%; left: 12%;  font-size: 26px; }
.parallax-scene .pl3 { top: 60%; right: 20%; font-size: 22px; }
.parallax-scene .pl4 { top: 12%; left: 28%;  font-size: 20px; }

.hero > :not(.parallax-scene) { position: relative; z-index: 1; }

.hero-heart { font-size: 62px; background: none; border: none; cursor: pointer; line-height: 1; padding: 6px; user-select: none; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%,100%{transform:scale(1)} 15%{transform:scale(1.18)} 30%{transform:scale(1)} 45%{transform:scale(1.1)} }

.hero-title { font-family: "Amiri", serif; font-size: clamp(30px, 9vw, 40px); color: var(--rose-deep); margin: 6px 0 2px; }
.hero-sub { color: var(--ink-soft); font-size: 18px; margin: 0 0 16px; }

.counter { display: inline-block; background: linear-gradient(135deg, #fff, #fff2e9); border: 1px solid #f2d8c9; border-radius: 999px; padding: 10px 20px; font-weight: 700; color: var(--rose); box-shadow: var(--shadow); font-size: 16px; }
.counter small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 13px; margin-top: 2px; }

.progress-wrap { margin: 20px auto 0; max-width: 340px; background: #f4e2d8; border-radius: 999px; height: 12px; position: relative; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--rose)); border-radius: 999px; transition: width .6s cubic-bezier(.2,.9,.25,1); }
.progress-label { display: block; text-align: center; font-size: 13px; color: var(--ink-soft); margin-top: 8px; position: relative; z-index: 1; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.25,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   SECTION TITLE + FEATURED SLIDER
   ============================================================ */
.section-title { font-family: "Amiri", serif; color: var(--rose-deep); font-size: 24px; text-align: center; margin: 30px 0 14px; }
.featured { margin-top: 6px; }

/* ============================================================
   SLIDER (sleek, swipeable)
   ============================================================ */
.slider { position: relative; }
.slider-viewport {
  position: relative; overflow: hidden; border-radius: 20px;
  direction: ltr; touch-action: pan-y;
  background: #f6e2d6; box-shadow: var(--shadow);
}
.slider-track { display: flex; will-change: transform; }
.slide { flex: 0 0 100%; position: relative; aspect-ratio: var(--ratio, 4 / 3); overflow: hidden; background: #f6e2d6; }
.slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-img.ken { animation: ken 14s ease-in-out infinite alternate; }
@keyframes ken { from { transform: scale(1) translate(0,0); } to { transform: scale(1.12) translate(-2.5%, -2%); } }

.slide-ph {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, #fbeee6, #fbeee6 12px, #f6e2d6 12px, #f6e2d6 24px);
  display: grid; place-items: center; color: var(--ink-soft); font-weight: 600; font-size: 15px; text-align: center; padding: 16px;
}
.slide-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 26px 16px 14px;
  color: #fff; font-weight: 700; font-size: 16px; direction: rtl; text-align: right;
  background: linear-gradient(transparent, rgba(60,20,33,.78));
}

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--rose-deep);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.18);
  transition: transform .12s, background .2s;
}
.slider-arrow:active { transform: translateY(-50%) scale(.9); }
.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

.slider-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.slider-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #e3c6bb; border: none; cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.slider-dots .dot.active { width: 22px; border-radius: 5px; background: var(--rose); }

/* ============================================================
   STATIONS
   ============================================================ */
.stations { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }

.station {
  position: relative; background: var(--card); border: 1px solid #f4dcd0; border-radius: 18px;
  padding: 18px 16px; text-align: center; cursor: pointer;
  box-shadow: 0 10px 22px -18px rgba(122, 31, 61, .6);
  transition: transform .14s ease, box-shadow .2s;
  animation: rise .5s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.station:active { transform: scale(.97); }
.station:hover { box-shadow: 0 16px 30px -18px rgba(122, 31, 61, .7); }

.station .emoji { font-size: 34px; }
.station .st-title { font-weight: 700; margin: 8px 0 2px; font-size: 17px; color: var(--rose-deep); }
.station .st-tease { font-size: 13.5px; color: var(--ink-soft); }

.station.done { border-color: #cfe9d8; background: linear-gradient(180deg, #fff, #f4fbf6); }
.station.done::after {
  content: "✓"; position: absolute; top: 10px; inset-inline-start: 12px;
  width: 24px; height: 24px; border-radius: 50%; background: #2fae72; color: #fff;
  font-size: 14px; font-weight: 700; display: grid; place-items: center;
}
.station.locked { cursor: not-allowed; opacity: .92; }
.station.locked .emoji { filter: grayscale(.4); }
.station.locked::before { content: "🔒"; position: absolute; top: 10px; inset-inline-end: 12px; font-size: 15px; }
.station.locked .st-tease { color: var(--gold); font-weight: 600; }
.countdown { font-variant-numeric: tabular-nums; unicode-bidi: isolate; letter-spacing: .5px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(60, 20, 33, .55); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; background: var(--card); border-radius: 24px; width: 100%; max-width: 480px;
  max-height: 88dvh; overflow-y: auto; padding: 26px 22px 24px;
  box-shadow: 0 30px 60px -20px rgba(60, 20, 33, .7);
  animation: pop .35s cubic-bezier(.2,.9,.25,1.2) both;
}
.modal-x { position: absolute; top: 12px; inset-inline-start: 14px; background: #f6e7df; border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 15px; cursor: pointer; color: var(--ink-soft); z-index: 5; }
.modal-body { text-align: center; }
.modal-body .m-emoji { font-size: 52px; }
.modal-body h2 { font-family: "Amiri", serif; color: var(--rose-deep); font-size: 27px; margin: 8px 0 12px; }
.modal-body p { font-size: 17px; color: var(--ink); margin: 0 0 14px; }
.modal-body .mission { background: #fff3ea; border: 1px dashed var(--gold); border-radius: 14px; padding: 14px 16px; margin: 8px 0 16px; font-weight: 600; color: var(--rose-deep); }
.modal-body .mission .lbl { display:block; font-size: 13px; color: var(--gold); margin-bottom: 4px; font-weight:700; }

.m-photo { width: 100%; border-radius: 16px; margin: 4px 0 16px; display: block; object-fit: cover; }
.m-photo-ph { width: 100%; aspect-ratio: 4/3; border-radius: 16px; margin: 4px 0 16px; background: repeating-linear-gradient(45deg, #fbeee6, #fbeee6 12px, #f6e2d6 12px, #f6e2d6 24px); display: grid; place-items: center; color: var(--ink-soft); font-weight: 600; font-size: 15px; border: 1px solid #f0d6c8; }
.modal-body .slider { margin: 4px 0 16px; }

.done-btn { margin-top: 6px; }
.done-note { margin-top: 12px; color: #1f8a5b; font-weight: 600; }

/* ============================================================
   FOOTER / EXTRAS / TOAST
   ============================================================ */
.extras { text-align: center; margin: 26px 0 4px; }
.footer { text-align: center; margin-top: 18px; padding: 16px 0; color: #b79aa2; font-size: 13px; }
.footer .secret-heart { cursor: pointer; opacity: .5; }

.toast {
  position: fixed; inset-inline: 0; bottom: 26px; margin: 0 auto; z-index: 90;
  width: max-content; max-width: 90vw; background: var(--rose-deep); color: #fff; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow); animation: toastin .3s ease both; text-align: center;
}
@keyframes toastin { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 520px) { .stations { gap: 16px; } }

/* ============================================================
   ACCESSIBILITY — respect reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  .slide-img.ken { animation: none; }
  .bg-parallax .blob, .parallax-scene .p-layer, .parallax-scene .p-blob { transform: none !important; }
}
