/* ── Variables ─────────────────────────────────────── */
:root {
  --pink:   #ff2d87;
  --yellow: #ffd60a;
  --cyan:   #00d1ff;
  --dark:   #0d0d0d;
  --white:  #ffffff;
  --off:    #f8f8f8;
  --text:   #1a1a1a;
  --muted:  #666;
  --ff-heb: 'Heebo', 'Arial', sans-serif;
  --ff-lat: 'Archivo Black', Impact, sans-serif;
  --ease:   cubic-bezier(0.16,1,0.3,1);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--ff-heb);
  font-size: clamp(15px, 2vw, 17px);
  overflow-x: hidden;
  direction: rtl;
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

/* ── Reveals ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: var(--dark);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,45,135,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(0,209,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(255,214,10,0.08) 0%, transparent 70%);
  animation: bgShift 8s ease-in-out infinite alternate;
}

.hero-content { position: relative; z-index: 1; }

.hero-tag {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  padding: 0.3em 1.1em;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: popIn 0.5s var(--ease) 0.2s both;
}

.hero-thirty {
  font-family: var(--ff-lat);
  font-size: clamp(7rem, 25vw, 20rem);
  line-height: 0.9;
  background: linear-gradient(135deg, var(--pink), var(--yellow), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: popIn 0.7s var(--ease) 0.4s both;
  transition: filter 0.2s;
}
.hero-thirty:active { filter: brightness(1.2); }

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--white);
  margin-top: 0.1em;
  animation: popIn 0.6s var(--ease) 0.6s both;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.65);
  margin-top: 0.8rem;
  animation: popIn 0.6s var(--ease) 0.8s both;
}

.tap-hint {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  animation: fadeIn 0.6s ease 2.5s both;
}

/* ── Reasons Section ──────────────────────────────── */
.reasons-section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
  background: var(--off);
}

.reasons-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.reason-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1.5px solid transparent;
  background-clip: padding-box;
  opacity: 0;
  transform: translateY(16px);
  animation: cardIn 0.5s var(--ease) calc(var(--i, 0) * 60ms + 0.1s) forwards;
  transition: box-shadow 0.2s, transform 0.2s;
}
.reason-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.reason-card--last {
  background: linear-gradient(135deg, rgba(255,45,135,0.08), rgba(0,209,255,0.08));
  border-color: rgba(255,45,135,0.2);
}

.reason-num {
  font-family: var(--ff-lat);
  font-size: 1.6rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  min-width: 2.4rem;
}

.reason-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin-top: 0.15rem;
}

/* ── Highlights ─────────────────────────────────── */
.highlights {
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
  background: var(--dark);
}

.highlights-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease);
}
.highlight-card:hover { transform: translateY(-4px); }

.hl-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.hl-photo--portrait { aspect-ratio: 3/4; }

.hl-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hl-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.3);
}
.hl-photo.img-error img { display: none; }
.hl-photo.img-error .hl-placeholder { display: flex; }

.hl-text {
  padding: 1.25rem;
}

.hl-tag {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.hl-tag.pink   { background: rgba(255,45,135,0.18);  color: #ff6baa; }
.hl-tag.cyan   { background: rgba(0,209,255,0.15);  color: #4dd9ff; }
.hl-tag.yellow { background: rgba(255,214,10,0.15); color: #ffd60a; }

.hl-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.hl-text p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ── Short letter ────────────────────────────────── */
.short-letter {
  background: linear-gradient(135deg, rgba(255,45,135,0.06), rgba(0,209,255,0.06));
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3rem);
}

.letter-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.letter-quote {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.letter-en {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--muted);
  font-style: italic;
  direction: ltr;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.letter-wish {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Song Section ────────────────────────────────── */
.song-section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  background: var(--off);
}

.song-block {
  max-width: 540px;
  margin: 0 auto;
  background: var(--dark);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.song-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  direction: rtl;
}

.mic-icon { font-size: 2.5rem; }

.song-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.song-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
}

.player-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  direction: ltr;
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.2s;
}
.play-btn:active { transform: scale(0.93); }
.play-btn.playing { background: var(--cyan); color: var(--dark); }

.prog-wrap { flex: 1; }
.prog-bar {
  height: 20px;
  background: transparent;
  border-radius: 2px;
  overflow: visible;
  margin-bottom: 0.4rem;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.prog-bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}
.prog-fill {
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  transition: width 0.25s linear;
  position: relative;
  z-index: 1;
}
.prog-fill::after {
  content: '';
  position: absolute;
  right: -7px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px rgba(255,45,135,.6);
}
.prog-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-family: monospace;
}

.song-unavail {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}
.song-unavail.hidden { display: none; }

.ambient-wrap, .ambient-row { text-align: center; }

.ambient-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--muted);
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-family: var(--ff-heb);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.ambient-btn:hover, .ambient-btn.active {
  border-color: var(--pink);
  color: var(--pink);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-big {
  font-family: var(--ff-lat);
  font-size: clamp(4rem, 12vw, 8rem);
  background: linear-gradient(135deg, var(--pink), var(--yellow), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.footer-name {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--white);
}

.footer-hint {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
}

/* ── Easter Egg Banner ───────────────────────────── */
.egg-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  border: 2px solid var(--pink);
  border-radius: 99px;
  padding: 0.75rem 1.5rem 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 30px rgba(255,45,135,0.4);
  animation: slideUp 0.4s var(--ease);
}
.egg-banner.hidden { display: none; }

.egg-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Keyframes ───────────────────────────────────── */
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bgShift {
  from { opacity: 1; }
  to   { opacity: 0.7; }
}

/* ── Progress bar seek ───────────────────────────── */

/* ── Song picker ─────────────────────────────────── */
.song-picker { display: flex; gap: .5rem; margin: .5rem 0 .75rem; }
.song-pick {
  padding: .3rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: inherit;
  font-size: .8rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
  opacity: .6;
}
.song-pick.active { background: rgba(212,175,55,.2); border-color: #d4af37; opacity: 1; }
.song-pick:hover:not(.active) { opacity: .9; background: rgba(255,255,255,.08); }

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
  .reasons-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .egg-banner { white-space: normal; text-align: center; width: calc(100% - 3rem); }
}

@media (max-width: 400px) {
  .highlights-grid { grid-template-columns: 1fr; }
}
