/* =========================================================
   zeynepfatih.com — Yağmur ve Bekleyiş
   ========================================================= */

:root {
  --bg-0: #05070f;
  --bg-1: #070b16;
  --bg-2: #0c1426;
  --bg-3: #122b4a;

  --ink:        #eaf0ff;
  --ink-soft:   #c5d2ee;
  --ink-dim:    #8597bc;
  --ink-faint:  #5c6a8c;

  --rain:       #b8cdf2;
  --glow-blue:  rgba(140, 180, 255, 0.55);
  --gold:       #ecc6a4;
  --rose:       #e9a78f;

  --card-bg:    rgba(12, 19, 38, 0.42);
  --card-brd:   rgba(176, 200, 255, 0.16);
  --card-brd-2: rgba(176, 200, 255, 0.06);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--serif);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% -10%, #16243f 0%, var(--bg-2) 38%, var(--bg-1) 70%, var(--bg-0) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hafif film greni dokusu */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

/* ---------- Yağmur canvas ---------- */
#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Atmosfer ---------- */
.atmosphere { position: fixed; inset: 0; z-index: 2; pointer-events: none; }

.moon-glow {
  position: absolute;
  top: -18vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vmin;
  height: 90vmin;
  background: radial-gradient(circle, rgba(150,185,255,0.18) 0%, rgba(120,160,240,0.08) 35%, transparent 68%);
  filter: blur(8px);
}

.mist {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38vh;
  background: linear-gradient(to top, rgba(8,12,24,0.92) 0%, rgba(10,16,32,0.5) 45%, transparent 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(115% 95% at 50% 42%, transparent 52%, rgba(3,5,11,0.55) 100%);
}

.lightning {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(190,210,255,0.9), transparent 60%);
  opacity: 0;
  mix-blend-mode: screen;
}
.lightning.flash { animation: flash 1.6s ease-out; }
@keyframes flash {
  0%   { opacity: 0; }
  4%   { opacity: 0.45; }
  8%   { opacity: 0.05; }
  12%  { opacity: 0.6; }
  20%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Sahne / kart ---------- */
.stage {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.1rem, 4vw, 3rem);
  padding-top: max(clamp(1.1rem, 4vw, 3rem), env(safe-area-inset-top));
  padding-bottom: max(clamp(1.1rem, 4vw, 3rem), env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 820px;
  text-align: center;
  padding: clamp(1.6rem, 5vw, 3.4rem) clamp(1.2rem, 4.5vw, 3rem);
  border-radius: 26px;
  background: var(--card-bg);
  border: 1px solid var(--card-brd);
  box-shadow:
    0 40px 120px -40px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 60px rgba(120,160,255,0.04);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  position: relative;
  overflow: hidden;
}
/* kartın üst kenarında ince ışık çizgisi */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(190,210,255,0.6), transparent);
}

/* ---------- Şiir / duygusal cümle ---------- */
.poem { margin-bottom: clamp(1.1rem, 3vw, 1.6rem); }

.poem-lead {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 5.5vw, 2.3rem);
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-shadow: 0 2px 30px rgba(150,185,255,0.25);
}

.poem-line {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 4.3vw, 1.7rem);
  color: var(--ink-soft);
  line-height: 1.35;
  margin-top: 0.35rem;
  max-width: 34ch;
  margin-inline: auto;
}

.poem-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.82rem, 3vw, 1.02rem);
  color: var(--ink-dim);
  line-height: 1.7;
  margin-top: clamp(0.8rem, 2.4vw, 1.15rem);
  letter-spacing: 0.04em;
  max-width: 40ch;
  margin-inline: auto;
}

/* ---------- Ayraç ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: clamp(1rem, 3vw, 1.6rem) auto;
  width: min(220px, 60%);
  position: relative;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, transparent, rgba(176,200,255,0.35), transparent);
}
.divider .dot {
  width: 5px; height: 5px;
  margin: 0 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  flex: none;
}

/* ---------- Başlık ---------- */
.title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.78rem, 3.1vw, 1.05rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: clamp(1.4rem, 4vw, 2.2rem);
  padding-inline: 0.32em; /* harf aralığı taşmasını dengele */
}

/* ---------- Sayaç ---------- */
/* Mobil öncelikli: 3'lü ızgara → Yıl/Ay/Gün, Saat/Dakika/Saniye */
.countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  justify-items: center;
  gap: clamp(0.9rem, 4vw, 1.4rem) clamp(0.2rem, 2vw, 0.6rem);
  max-width: 460px;
  margin-inline: auto;
}
.countdown .sep { display: none; }

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.num {
  font-family: var(--serif);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.3rem, 12vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-shadow:
    0 2px 22px rgba(150,185,255,0.32),
    0 0 2px rgba(255,255,255,0.25);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.45s;
}
.num.tick { animation: tick 0.5s cubic-bezier(.2,.85,.25,1); }
@keyframes tick {
  0%   { transform: translateY(-26%) scale(1.08); opacity: 0; filter: blur(2px); }
  55%  { opacity: 1; filter: blur(0); }
  100% { transform: none; opacity: 1; }
}

.lbl {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.52rem, 2.3vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: clamp(0.4rem, 1.6vw, 0.85rem);
}

.sep {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1;
  color: var(--ink-faint);
  align-self: center;
  margin-top: -0.6rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.35; } 50% { opacity: 0.8; } }

/* ---------- Video ---------- */
.video { margin-top: clamp(1.9rem, 5.5vw, 3rem); }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-brd);
  box-shadow:
    0 30px 70px -30px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  background: #05080f;
  cursor: pointer;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.video-frame:hover .video-thumb { opacity: 0.95; transform: scale(1.03); }

/* karartma + hafif mavi ton */
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(8,12,24,0.15), rgba(5,8,16,0.55));
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.video-frame.playing::after,
.video-frame.playing .video-thumb,
.video-frame.playing .video-play { display: none; }

.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(58px, 16vw, 78px);
  height: clamp(58px, 16vw, 78px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(20,28,50,0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #eaf0ff;
  display: grid;
  place-items: center;
  padding-left: 4px;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(184,205,242,0.5), 0 8px 30px rgba(0,0,0,0.5);
  animation: playPulse 2.6s ease-out infinite;
  transition: transform 0.25s ease, background 0.25s ease;
}
.video-frame:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(40,55,95,0.6);
}
@keyframes playPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184,205,242,0.45), 0 8px 30px rgba(0,0,0,0.5); }
  70%  { box-shadow: 0 0 0 18px rgba(184,205,242,0), 0 8px 30px rgba(0,0,0,0.5); }
  100% { box-shadow: 0 0 0 0 rgba(184,205,242,0), 0 8px 30px rgba(0,0,0,0.5); }
}

.video-fallback {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.72rem, 2.6vw, 0.85rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.video-fallback:hover { color: var(--ink); border-color: rgba(176,200,255,0.4); }

/* ---------- Footer ---------- */
.foot {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.66rem, 2.4vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.foot-dot { color: var(--gold); }

/* ---------- Açılış animasyonu ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  animation: reveal 1.2s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- Çok küçük ekran ince ayarı ---------- */
@media (max-width: 340px) {
  .num { font-size: 2rem; }
  .countdown { gap: 0.8rem 0.1rem; }
}

/* ---------- Geniş ekran: tek satır + ":" ayraçlar ---------- */
@media (min-width: 760px) {
  .card { padding-block: 3.4rem; }
  .countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.3rem, 1vw, 0.7rem);
    max-width: none;
  }
  .countdown .unit { min-width: 4.6rem; }
  .countdown .sep { display: block; }
}

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; filter: none; }
  .num.tick { animation: none; }
  .sep { animation: none; opacity: 0.5; }
  .lightning.flash { animation: none; }
  .video-play { animation: none; }
}
