/* زهرا Cry For Me — استاتیک، فان، میم‌تور، قابل توسعه */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg1: #1a0b2e;
  --bg2: #2d1b4e;
  --pink: #ff2e9d;
  --yellow: #ffe600;
  --cyan: #00f0ff;
  --green: #39ff14;
}
html { scroll-behavior: smooth; }
body {
  font-family: Tahoma, "Vazirmatn", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg1), var(--bg2), #0b2e2a);
  color: #fff;
  overflow-x: hidden;
}

/* نوار شمارش */
#countdown-bar { position: fixed; top: 0; right: 0; left: 0; height: 8px; background: #0008; z-index: 99; }
#countdown-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--pink), var(--yellow), var(--green)); transition: width 0.2s linear; }

/* دات‌های دو پیج */
#page-dots { position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 98; display: flex; flex-direction: column; gap: 8px; }
#page-dots .dot { background: #000a; border: 2px solid var(--cyan); border-radius: 20px; padding: 6px 10px; font-size: .8rem; font-weight: 900; cursor: pointer; transition: all .2s; }
#page-dots .dot.active { background: var(--yellow); color: #000; border-color: #000; transform: scale(1.1); }

/* صفحه‌ها */
.screen { min-height: 100vh; padding: 60px 16px 40px; position: relative; }
.screen-1 { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

/* اموجی شناور */
.float-emoji { position: absolute; font-size: 3rem; animation: float 2.5s ease-in-out infinite; opacity: .9; pointer-events: none; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-10deg);} 50% { transform: translateY(-20px) rotate(10deg);} }

/* نوار متحرک */
.marquee { display: flex; overflow: hidden; background: var(--yellow); color: #000; font-weight: 900; padding: 8px 0; transform: rotate(-2deg); width: 110%; margin-bottom: 24px; border: 3px solid #000; }
.marquee span { white-space: nowrap; animation: marq 12s linear infinite; padding-left: 16px; }
@keyframes marq { to { transform: translateX(50%); } }

/* کارت اصلی */
.hero-card { background: #ffffff12; border: 4px dashed var(--pink); border-radius: 24px; padding: 24px; max-width: 620px; width: 100%; backdrop-filter: blur(6px); box-shadow: 0 0 40px #ff2e9d66; transform: rotate(-1deg); }
.cat-wrap { position: relative; display: inline-block; }
.cat-wrap img { width: min(78vw, 340px); height: min(78vw, 340px); object-fit: cover; border-radius: 50%; border: 6px solid var(--yellow); box-shadow: 0 0 30px var(--yellow); }
.img-fallback { width: min(78vw, 340px); height: min(78vw, 340px); border-radius: 50%; border: 6px dashed var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 3rem; background: #0006; margin: 0 auto; padding: 20px; }
.img-fallback small { font-size: .9rem; display: block; }
.img-fallback code, .file-hint code, .gif-label + img + div code { background: #000; color: var(--green); padding: 2px 6px; border-radius: 6px; direction: ltr; display: inline-block; }
.sticker { position: absolute; background: var(--cyan); color: #000; font-weight: 900; padding: 6px 12px; border-radius: 12px; border: 3px solid #000; transform: rotate(12deg); }
.sticker-1 { top: 10px; right: -20px; background: var(--green); }
.sticker-2 { bottom: 20px; left: -20px; transform: rotate(-12deg); background: var(--pink); color: #fff; }

.main-title { font-size: clamp(2.2rem, 8vw, 4rem); margin: 16px 0 4px; text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 #000; }
.main-title .en { color: var(--yellow); font-style: italic; }
.subtitle { background: #000; display: inline-block; padding: 8px 18px; border-radius: 14px; transform: rotate(1deg); margin-bottom: 12px; border: 2px solid var(--cyan); }
.subtitle small { color: var(--cyan); font-weight: 400; }
.joke { margin: 12px 0; line-height: 2; background: #ff2e9d22; border-radius: 12px; padding: 10px; }

.gif-box { margin: 16px auto; background: #0008; border-radius: 16px; padding: 12px; border: 3px dotted var(--yellow); }
.gif-box img { max-width: 100%; max-height: 260px; border-radius: 12px; }
.gif-label { margin-bottom: 8px; font-weight: 700; color: var(--yellow); }
.img-fallback.small { width: 100%; height: auto; min-height: 120px; border-radius: 12px; font-size: 1rem; }

.timer-box { margin-top: 12px; }
.btn { cursor: pointer; border: 3px solid #000; border-radius: 14px; padding: 10px 18px; font-weight: 900; font-family: inherit; box-shadow: 4px 4px 0 #000; transition: transform .1s; }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 #000; }
.btn-big { background: var(--green); font-size: 1.1rem; margin-top: 10px; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.05) rotate(-1deg); } }
.hint { opacity: .7; }
.scroll-hint { margin-top: 24px; animation: float 1.5s infinite; font-weight: 700; }

/* ===== صفحه ۲ ===== */
.screen-2 { background: linear-gradient(180deg, transparent, #ff2e9d22); }
.stage2-head { text-align: center; margin-bottom: 20px; }
.stage2-head h2 { font-size: clamp(1.6rem, 6vw, 2.6rem); text-shadow: 2px 2px 0 #000; background: var(--pink); display: inline-block; padding: 8px 20px; border-radius: 16px; transform: rotate(-1deg); border: 3px solid #000; }

/* یادداشت شیشه‌ای (گلس) که ویدیو از پشتش دیده میشه */
.glass-note {
  max-width: 640px;
  margin: 16px auto;
  padding: 16px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .55);
  line-height: 2.1;
  text-align: center;
}
.glass-note p { margin: 6px 0; }
.glass-note b { color: var(--yellow); }

/* کاروسل عمودی */
.carousel { display: flex; flex-direction: column; gap: 32px; max-width: 640px; margin: 0 auto; scroll-snap-type: y proximity; }
.slide { scroll-snap-align: center; background: transparent; color: #fff; border-radius: 0; overflow: hidden; border: 0; box-shadow: none; transform: rotate(-1deg); }
.slide:nth-child(even) { transform: rotate(1.2deg); }
.slide img { width: 100%; height: min(60vh, 420px); object-fit: cover; display: block; background: #0006; }
.slide.empty img { display: none; }
.slide.empty::before { content: "📷 عکس رو بنداز اینجا!"; display: flex; align-items: center; justify-content: center; height: 260px; font-size: 1.5rem; font-weight: 900; background: repeating-linear-gradient(45deg, #ffe600, #ffe600 20px, #fff 20px, #fff 40px); }
.slide figcaption { padding: 10px 6px; font-weight: 900; font-size: 1.1rem; text-align: center; text-shadow: 2px 2px 0 #000; }
.slide figcaption small { display: block; font-weight: 400; opacity: .6; direction: ltr; }
.cap-num { background: #000; color: var(--yellow); border-radius: 50%; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; margin-left: 8px; }

/* انیمیشن اسکرول */
.reveal { opacity: 0; translate: 0 60px; scale: .9; rotate: -2deg; transition: all .6s cubic-bezier(.34,1.56,.64,1); }
.reveal.visible { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; }
/* وقتی GSAP لود شد، انیمیشن‌ها رو اون برعهده می‌گیره */
.gsap-on .reveal { opacity: 1; translate: none; scale: none; rotate: none; transition: none; }

/* ورود مسخره‌ی گربه (پیج ۱) */
@keyframes catDrop { 0% { transform: translateY(-120vh) rotate(-360deg) scale(.2); } 60% { transform: translateY(20px) rotate(10deg) scale(1.15); } 80% { transform: translateY(-10px) rotate(-5deg) scale(.95); } 100% { transform: translateY(0) rotate(0) scale(1); } }
#cat-entrance .cat-wrap { animation: catDrop 1.2s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes wiggle { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) scale(1.03); } }
#cat-entrance .cat-wrap img, #cat-entrance .img-fallback { animation: wiggle 2s ease-in-out 1.4s infinite; }

/* ویدیو و آهنگ */
.video-box, .audio-box { max-width: 640px; margin: 32px auto; background: #000a; border: 4px solid var(--cyan); border-radius: 20px; padding: 18px; text-align: center; }
.video-box h3, .audio-box h3 { margin-bottom: 12px; }
.video-box video { width: 100%; border-radius: 12px; background: #000; max-height: 380px; }
.audio-box { border-color: var(--green); }
.sound-status { background: var(--green); color: #000; font-weight: 900; padding: 10px 14px; border-radius: 12px; border: 3px solid #000; margin: 10px 0; animation: pulse 1.2s infinite; }
.eq-row { margin: 10px 0; }
.eq-panel { display: flex; flex-direction: column; gap: 10px; background: #ffffff14; padding: 12px; border-radius: 12px; }
.eq-panel input[type=range] { width: 100%; accent-color: var(--pink); }
#btn-max { background: var(--pink); color: #fff; }
.file-hint { opacity: .7; margin-top: 8px; }
.warn { font-size: .85rem; opacity: .8; margin-top: 8px; line-height: 1.9; }
#btn-top { display: block; margin: 24px auto; background: var(--yellow); }
.footer { text-align: center; opacity: .6; margin-top: 30px; font-size: .85rem; }

/* اورلی اتوپلی */
#autoplay-overlay { position: fixed; inset: 0; background: #000c; display: flex; align-items: center; justify-content: center; z-index: 100; }
#autoplay-overlay[hidden] { display: none; }
.overlay-card { background: var(--yellow); color: #000; padding: 30px; border-radius: 20px; border: 5px solid #000; text-align: center; font-weight: 900; font-size: 1.3rem; animation: pulse 1s infinite; }
.overlay-card .btn-big { background: var(--pink); color: #fff; }

@media (max-width: 500px) {
  .float-emoji { font-size: 2rem; }
  .sticker-1 { right: 0; } .sticker-2 { left: 0; }
}

/* ===== فایل دوم: ویدیو بک‌گراند تمام‌صفحه ===== */
body.page2 { background: #000; }
#bg-video {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh;
  object-fit: cover; z-index: 0;
  background: #000 linear-gradient(160deg, #1a0b2e, #2d1b4e 55%, #0b2e2a);
}
#bg-overlay {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #000a 0%, #0006 40%, #000b 100%);
}
.content-over-video { position: relative; z-index: 1; }
body.page2 .screen-2 { background: transparent; }
body.page2 .slide { background: transparent; }

/* ===== دکمهٔ فوتر (سفید، ساده، بزرگ) ===== */
footer a, .laws-footer a {
  display: inline-block;
  background: #fff;
  color: #101010;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.4;
  padding: 15px 30px;
  margin-top: 12px;
  border: 3px solid #000;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #000;
  transition: transform .12s, box-shadow .12s;
}
footer a:hover, .laws-footer a:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
footer a:active, .laws-footer a:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 #000; }
