/* ===================================================================
   BIRTHDAY INVITATION — Mednov 60
   Slide-based layout extending styles.css
   =================================================================== */

/* Helper: center text inside slide */
.bday-center-text {
  text-align: center;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   SLIDE 1: HERO
   ═══════════════════════════════════════ */
.bday-hero-inner {
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
  gap: clamp(0.5rem, 1.5vh, 1.25rem) !important;
}

/* Glass 60 WebGL container — 4x bigger than the original */
.bday-glass-60 {
  width: min(96vw, 1200px);
  height: clamp(400px, 60vh, 760px);
  max-width: 100%;
  position: relative;
  margin: 0 auto;
  opacity: 0;
  animation: bdayFadeUp 1.2s 0.3s var(--ease) forwards;
  pointer-events: none;
}
.bday-glass-60 canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* "лет" label directly under the 60 */
.bday-age-label {
  font-family: var(--font-main);
  font-size: clamp(0.75rem, 1vw + 0.2rem, 1rem);
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: -1rem 0 0.4rem;
  padding-left: 0.4em; /* offset the letter-spacing for visual centering */
  opacity: 0;
  animation: bdayFadeUp 0.9s 0.75s var(--ease) forwards;
}

/* Hero meta block: name + date below the 60 */
.bday-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0;
  opacity: 0;
  animation: bdayFadeUp 0.9s 0.9s var(--ease) forwards;
}

.bday-hero-name {
  font-family: var(--font-main);
  font-size: clamp(1.1rem, 1.8vw + 0.3rem, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
}

.bday-date-main {
  font-family: var(--font-main);
  font-size: clamp(0.85rem, 1.1vw + 0.2rem, 1.05rem);
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  margin: 0 0 clamp(0.75rem, 1.5vh, 1.25rem);
}

/* Countdown */
.bday-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1.5vw, 1.25rem);
  opacity: 0;
  animation: bdayFadeUp 0.9s 1.1s var(--ease) forwards;
}

.bday-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(48px, 8vw, 80px);
}

.bday-countdown-num {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.bday-countdown-label {
  font-family: var(--font-text);
  font-size: clamp(0.6rem, 0.8vw, 0.72rem);
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bday-countdown-sep {
  font-family: var(--font-main);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  margin-top: -1rem;
}

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

/* ═══════════════════════════════════════
   SLIDE 2: GREETING
   ═══════════════════════════════════════ */
.bday-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--turquoise), transparent);
  margin: clamp(1.5rem, 4vh, 2.5rem) auto 0;
  border-radius: 1px;
}

/* ═══════════════════════════════════════
   SLIDE 3: SCHEDULE / TIMELINE
   ═══════════════════════════════════════ */
.bday-timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vh, 2rem);
  max-width: 680px;
  width: 100%;
  margin: clamp(1rem, 3vh, 2rem) auto 0;
}

.bday-timeline-day {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: flex-start;
}

.bday-timeline-date {
  flex-shrink: 0;
  width: clamp(56px, 9vw, 84px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.25rem;
}

.bday-timeline-day-num {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--turquoise);
  line-height: 1;
}

.bday-timeline-day-month {
  font-family: var(--font-main);
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.2rem;
}

.bday-timeline-card {
  flex: 1;
  text-align: left;
  padding: clamp(1.1rem, 2.5vw, 1.75rem) !important;
  position: relative;
  min-width: 0;
}

.bday-timeline-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(44,176,168,0.1);
  border: 1px solid rgba(44,176,168,0.15);
  color: var(--turquoise);
  margin-bottom: 0.75rem;
}

.bday-timeline-card h3 {
  font-family: var(--font-main);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.bday-timeline-time {
  font-family: var(--font-main);
  font-size: 0.78rem !important;
  font-weight: 600;
  color: var(--turquoise) !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: 0.05em;
}

.bday-timeline-card p {
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}

.bday-timeline-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
}
.bday-timeline-location svg {
  color: var(--turquoise);
  flex-shrink: 0;
}

.bday-timeline-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: rgba(44,176,168,0.15);
  border: 1px solid rgba(44,176,168,0.25);
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--turquoise);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   SLIDES 3-4: PROGRAM SCHEDULE
   ═══════════════════════════════════════ */
.bday-program-inner {
  align-items: center !important;
  gap: clamp(0.6rem, 1.5vh, 1.25rem) !important;
}

.bday-program-sub {
  font-family: var(--font-main);
  font-size: clamp(0.82rem, 1vw + 0.2rem, 1rem);
  font-weight: 600;
  color: var(--turquoise);
  margin: 0.25rem 0 0;
  letter-spacing: 0.03em;
}

.bday-program {
  width: 100%;
  max-width: 620px;
  margin: clamp(0.5rem, 1.5vh, 1.25rem) auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid rgba(44,176,168,0.25);
  padding-left: clamp(1rem, 2vw, 1.5rem);
}

.bday-program-item {
  display: grid;
  grid-template-columns: clamp(90px, 14vw, 120px) 1fr;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  align-items: baseline;
  padding: clamp(0.4rem, 0.8vh, 0.65rem) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bday-program-item:last-child {
  border-bottom: none;
}

.bday-program-time {
  font-family: var(--font-main);
  font-size: clamp(0.72rem, 0.8vw + 0.2rem, 0.88rem);
  font-weight: 700;
  color: var(--turquoise);
  white-space: nowrap;
}

.bday-program-desc {
  font-family: var(--font-text);
  font-size: clamp(0.82rem, 0.8vw + 0.3rem, 0.95rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.bday-program-note {
  font-family: var(--font-text);
  font-size: clamp(0.75rem, 0.8vw + 0.2rem, 0.88rem);
  color: rgba(255,255,255,0.4);
  font-style: italic;
  text-align: center;
  max-width: 520px;
  margin: clamp(0.5rem, 1.5vh, 1rem) auto 0;
}

/* ═══════════════════════════════════════
   SLIDE 5: GIFT
   ═══════════════════════════════════════ */
.bday-gift-card {
  margin: clamp(1.25rem, 3vh, 2rem) auto 0;
  max-width: 520px;
  width: 100%;
  background: rgba(44,176,168,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(44,176,168,0.18);
  border-radius: clamp(16px, 2vw, 24px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.bday-gift-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,176,168,0.08) 0%, rgba(204,212,253,0.04) 50%, transparent 100%);
  pointer-events: none;
}

.bday-gift-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44,176,168,0.35), transparent);
}

.bday-gift-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(44,176,168,0.1);
  border: 1px solid rgba(44,176,168,0.2);
  color: var(--turquoise);
  position: relative;
}

.bday-gift-card h3 {
  font-family: var(--font-main);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--white);
  position: relative;
}

.bday-gift-card > p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  margin: 0;
}

.bday-gift-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 60px;
  background: var(--turquoise);
  color: var(--dark-green);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  position: relative;
  box-shadow: 0 8px 28px rgba(44,176,168,0.28);
}
.bday-gift-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(44,176,168,0.4);
}

.bday-gift-note {
  font-size: 0.72rem !important;
  color: rgba(255,255,255,0.3) !important;
  margin-top: 0.9rem !important;
  position: relative;
}

/* ═══════════════════════════════════════
   SLIDE 5: FINAL
   ═══════════════════════════════════════ */
/* ═══════════════════════════════════════
   SLIDE 7: FINAL + VIDEO
   ═══════════════════════════════════════ */
.bday-final-message {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.bday-video-wrap {
  width: 100%;
  max-width: 400px;
  margin: clamp(0.75rem, 2vh, 1.5rem) auto;
  border-radius: clamp(14px, 1.5vw, 20px);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

.bday-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 30vh;
  object-fit: cover;
}

.bday-final-quote {
  font-family: var(--font-main);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}

/* Footer nav links (compact pills) */
.bday-footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  flex-wrap: wrap;
  margin-top: clamp(0.75rem, 2vh, 1.25rem);
}

.bday-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: rgba(44,176,168,0.1);
  border: 1px solid rgba(44,176,168,0.2);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--turquoise);
  text-decoration: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.bday-footer-link:hover {
  background: rgba(44,176,168,0.2);
  border-color: rgba(44,176,168,0.4);
}
.bday-footer-link-soon {
  opacity: 0.35;
  cursor: default;
  color: rgba(255,255,255,0.4);
}

.bday-final-date {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--turquoise);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.bday-final-name {
  font-family: var(--font-main);
  font-size: clamp(0.9rem, 1.2vw + 0.2rem, 1.1rem);
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.005em;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .bday-glass-60 {
    width: 100vw;
    height: clamp(360px, 52vh, 540px);
  }
  .bday-age-label {
    font-size: 0.72rem;
    margin-top: -0.75rem;
  }
  .bday-hero-name {
    font-size: 1.1rem;
  }
  .bday-countdown {
    gap: 0.4rem;
  }
  .bday-countdown-item {
    min-width: 50px;
  }
  .bday-countdown-num {
    font-size: 1.5rem;
  }
  .bday-countdown-sep {
    font-size: 1.2rem;
  }

  /* Program schedule: tighter on mobile */
  .bday-program {
    padding-left: 0.85rem;
  }
  .bday-program-item {
    grid-template-columns: 85px 1fr;
    gap: 0.5rem;
    padding: 0.4rem 0;
  }
  .bday-program-time { font-size: 0.72rem; }
  .bday-program-desc { font-size: 0.82rem; line-height: 1.45; }
  .bday-program-note { font-size: 0.75rem; }

  /* Timeline: stack date on top */
  .bday-timeline-day {
    flex-direction: column;
    gap: 0.5rem;
  }
  .bday-timeline-date {
    flex-direction: row;
    gap: 0.4rem;
    align-items: baseline;
    width: auto;
    padding-top: 0;
    padding-left: 0.25rem;
  }
  .bday-timeline-day-month {
    margin-top: 0;
  }
  .bday-timeline-badge {
    top: 0.75rem;
    right: 0.75rem;
  }
  .bday-timeline {
    gap: 1rem;
  }

  .bday-video-wrap { max-width: 200px; }
  .bday-video { max-height: 20vh; }

  .bday-gift-card {
    padding: 1.5rem 1.25rem;
  }
  .bday-gift-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .bday-glass-60 {
    width: 100vw;
    height: clamp(300px, 46vh, 440px);
  }
  .bday-age-label {
    font-size: 0.68rem;
    letter-spacing: 0.35em;
  }
  .bday-hero-name {
    font-size: 1rem;
  }
  .bday-date-main {
    font-size: 0.78rem;
  }
  .bday-countdown {
    gap: 0.3rem;
  }
  .bday-countdown-item {
    min-width: 44px;
  }
  .bday-countdown-num {
    font-size: 1.35rem;
  }
  .bday-countdown-label {
    font-size: 0.56rem;
  }
  .bday-countdown-sep {
    font-size: 1rem;
  }
  .bday-video-wrap { max-width: 180px; }
  .bday-video { max-height: 18vh; }
  .bday-gift-icon {
    width: 52px;
    height: 52px;
  }
  .bday-gift-icon svg {
    width: 26px;
    height: 26px;
  }
  .bday-final-quote {
    font-size: 1.05rem;
  }
}

@media (max-width: 360px) {
  .bday-glass-60 {
    width: 100vw;
    height: clamp(280px, 44vh, 380px);
  }
  .bday-countdown-num { font-size: 1.2rem; }
  .bday-countdown-item { min-width: 40px; }
}

/* Height-constrained screens — shrink hero a bit */
@media (max-height: 860px) {
  .bday-glass-60 { height: clamp(360px, 55vh, 540px); }
}
@media (max-height: 760px) {
  .bday-glass-60 { height: clamp(320px, 50vh, 480px); }
  .bday-age-label { margin-top: -0.5rem; }
  .bday-date-main { margin-bottom: 0.5rem; }
  .bday-countdown-num { font-size: clamp(1.3rem, 3vh, 2rem); }
}
@media (max-height: 640px) {
  .bday-glass-60 { height: clamp(260px, 48vh, 380px); }
  .bday-age-label { font-size: 0.65rem; margin-top: -0.4rem; }
  .bday-hero-name { font-size: 1rem; }
  .bday-date-main { font-size: 0.78rem; margin-bottom: 0.4rem; }
  .bday-countdown { gap: 0.3rem; }
  .bday-countdown-num { font-size: 1.4rem; }
  .bday-countdown-label { font-size: 0.55rem; }
}
@media (max-height: 560px) {
  .bday-glass-60 { height: clamp(200px, 45vh, 280px); }
  .bday-age-label { display: none; }
  .bday-hero-name { font-size: 0.92rem; }
  .bday-date-main { font-size: 0.7rem; }
  .bday-countdown-num { font-size: 1.25rem; }
  .bday-video-wrap { max-width: 160px; }
  .bday-video { max-height: 14vh; }
}
@media (max-height: 480px) {
  .bday-glass-60 { height: clamp(160px, 42vh, 220px); }
  .bday-hero-name { display: none; }
  .bday-date-main { font-size: 0.7rem; margin-bottom: 0.25rem; }
  .bday-countdown-num { font-size: 1.1rem; }
  .bday-countdown-item { min-width: 36px; }
  /* Stack timeline horizontally on landscape phones to use width */
  .bday-timeline { gap: 0.6rem; }
  .bday-timeline-card { padding: 0.85rem 1rem !important; }
  .bday-timeline-card p { font-size: 0.78rem; line-height: 1.4; }
  .bday-final-quote { font-size: 1rem; line-height: 1.4; }
  .bday-final-message { margin-bottom: 0; }
  .bday-gift-card { padding: 1rem 1.2rem; }
  .bday-gift-icon { width: 46px; height: 46px; margin-bottom: 0.5rem; }
  .bday-gift-icon svg { width: 22px; height: 22px; }
  .bday-gift-btn { margin-top: 0.85rem; padding: 0.7rem 1.6rem; font-size: 0.85rem; }
}

/* Ultrawide / 4K — keep hero centered, don't let glass 60 stretch past sensible bounds */
@media (min-width: 1920px) {
  .bday-glass-60 { width: min(60vw, 1320px); height: clamp(440px, 56vh, 800px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bday-glass-60,
  .bday-age-label,
  .bday-hero-meta,
  .bday-date-main,
  .bday-countdown {
    opacity: 1;
    animation: none;
  }
}
