/* ============================================
   SCREENS — Screen-specific styles
   ============================================ */

/* --- Birthday cake --- */
.birthday-cake {
  position: relative;
  margin-top: 2rem;
}

.cake-emoji {
  font-size: 4rem;
  display: block;
  animation: pulseGlow 3s ease-in-out infinite;
}

.candle-flames {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: -2.5rem;
}

.candle-flames span {
  display: block;
  width: 8px;
  height: 16px;
  background: linear-gradient(to top, #ff6b35, #ffd93d);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: candleFlicker 0.8s ease-in-out infinite;
}

.candle-flames span:nth-child(2) { animation-delay: 0.2s; }
.candle-flames span:nth-child(3) { animation-delay: 0.4s; }

/* --- Love letter --- */
.letter-card {
  text-align: left;
  max-height: 70dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 157, 0.3) transparent;
}

.letter-body {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--white-muted);
}

.letter-line {
  margin-bottom: 1.25rem;
}

.letter-line:first-child {
  font-style: italic;
  color: var(--pink-soft);
  font-size: 1.25rem;
}

.signature {
  text-align: right;
  color: var(--pink-neon);
  font-style: italic;
  margin-top: 1.5rem;
  text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

/* --- Photo gallery --- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.photo-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.photo-card:hover img {
  transform: scale(1.08);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.75rem 0.75rem;
  background: linear-gradient(transparent, rgba(26, 10, 18, 0.85));
  font-size: 0.75rem;
  color: var(--white-soft);
  text-align: left;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(255, 51, 102, 0.1));
  font-size: 2rem;
}

/* --- Reasons list --- */
.reasons-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.reason-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--white-muted);
  box-shadow: var(--shadow-soft);
}

.reason-item::before {
  content: '♥';
  color: var(--pink-neon);
  font-size: 0.75rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(255, 107, 157, 0.8);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--pink-neon), var(--red-glow), transparent);
  border-radius: 1px;
  box-shadow: 0 0 12px rgba(255, 107, 157, 0.4);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-neon);
  box-shadow: 0 0 12px rgba(255, 107, 157, 0.8);
  border: 2px solid var(--purple-deep);
}

.timeline-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-bottom: 0.35rem;
}

.timeline-text {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--white-muted);
}

/* --- Promises grid --- */
.promises-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.promise-card {
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.promise-card:hover {
  border-color: rgba(255, 107, 157, 0.35);
  box-shadow: var(--glow-pink);
}

.promise-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.promise-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--white-muted);
}

/* --- Forever cinematic screen --- */
.screen--cinematic {
  background: radial-gradient(ellipse at center, rgba(255, 51, 102, 0.08) 0%, transparent 70%);
}

.cinematic-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(26, 10, 18, 0.6) 100%);
  pointer-events: none;
}

.forever-inner {
  position: relative;
  z-index: 1;
}

.forever-whisper {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--white-muted);
  margin-bottom: 1.5rem;
}

.forever-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--pink-soft) 50%, var(--red-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(255, 51, 102, 0.5));
  margin-bottom: 1.5rem;
}

.forever-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-muted);
  max-width: 380px;
  margin: 0 auto 2rem;
}

/* --- Final end screen --- */
.screen--final {
  background: transparent;
}

.final-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(255, 51, 102, 0.1) 0%, transparent 40%);
  animation: finalGlowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.final-inner {
  position: relative;
  z-index: 1;
}

.final-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 2rem 0 1.5rem;
}

.final-actions .btn {
  width: 100%;
}

.final-footer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* Final screen: intensify floating hearts & stars */
.screen--final.screen--active ~ #floating-hearts .float-heart,
body.on-final-screen #floating-hearts .float-heart {
  --opacity: 0.5;
}

/* Mobile layout tweaks */
@media (max-width: 480px) {
  .photo-gallery {
    gap: 0.75rem;
  }

  .promises-grid {
    grid-template-columns: 1fr;
  }

  .letter-body {
    font-size: 1.05rem;
  }

  .forever-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

@media (min-width: 600px) {
  .final-actions {
    flex-direction: row;
    justify-content: center;
  }

  .final-actions .btn {
    width: auto;
    min-width: 180px;
  }
}
