/* ================================================================
   MOSTRĂ SITE NUNTĂ — Sergiu & Emilia
   Stil: elegant, romantic, minimalist, mobile-first
   Paletă: ivory, crem, bej, auriu discret, salvie
   ================================================================ */

/* ============ VARIABILE GLOBALE (schimbă aici culorile/fonturile) ============ */
:root {
  /* Paletă elegantă — verde deschis */
  --ivory: #f2f7f4;
  --cream: #e4f0e8;
  --cream-warm: #d4e8da;
  --beige: #b8d4c0;
  --sage: #8ab59a;
  --sage-dark: #5a8a6a;
  --gold: #4a7c59;       /* olive verde închis — butoane principale */
  --gold-soft: #6aa67a;
  --gold-pale: #c8e6d0;

  /* Text */
  --ink: #2c2620;
  --ink-soft: #6b6259;
  --ink-mute: #9c948a;

  /* Linii și fundal */
  --line: #e3d9c6;
  --shadow: 0 4px 24px rgba(44, 38, 32, 0.06);

  /* Fonturi */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Imagine fundal Hero — fișier local, în același folder cu index.html și styles.css */
  /* Pregătit pentru Cloudflare Workers: toate fișierele în același folder, fără căi relative urcate */
  --hero-image: url('Gemini%203.png');
  --hero-image-mobile: url('Gemini%203.png');

  /* Spațiere */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}

/* ============ RESET DE BAZĂ ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  /* Spațiu pentru butonul fix de jos (doar pe mobil) */
  padding-bottom: 80px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ============ TIPOGRAFIE ============ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

/* ============ CONTAINERS ============ */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.container-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============ NAVIGARE — un singur meniu sticky ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-decoration: none;
}
.nav-logo span { color: var(--ink-soft); margin: 0 0.2em; }

.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-menu a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--gold); }

/* Hamburger pentru mobil */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: var(--space-sm) 0;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a {
    padding: 1rem var(--space-md);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

/* ============ HERO — cu IMAGINE DE FUNDAL + overlay ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  /* Imaginea de fundal — gemeni 3 */
  background-image: var(--hero-image);
  background-size: cover;          /* acoperă tot ecranul fără să întindă */
  background-position: center center; /* ține subiectul în centru */
  background-repeat: no-repeat;
  background-attachment: scroll;   /* scroll natural pe toate dispozitivele */
  overflow: hidden;
}

/* Pe ecrane mici (telefon portrait), păstrăm aceeași imagine.
   Motiv: pe telefon, ecranul e îngust și înalt — folosim center center
   ca să rămână cuplul vizibil în mijloc, indiferent de înălțimea ecranului. */
@media (max-width: 720px) {
  .hero {
    background-image: var(--hero-image-mobile);
    background-position: center center; /* cuplul rămâne perfect centrat */
  }
}

/* Overlay închis discret peste imagine — pentru lizibilitate text */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 38, 32, 0.45) 0%,
    rgba(44, 38, 32, 0.55) 60%,
    rgba(44, 38, 32, 0.75) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  /* Text alb-crem pentru lizibilitate peste poză */
  color: var(--ivory);
}

.hero-ornament {
  font-size: 1.5rem;
  color: var(--gold-soft);
  margin-bottom: var(--space-md);
}

.hero-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ivory);
  opacity: 0.85;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  margin-bottom: var(--space-md);
  color: var(--ivory);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-title em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 400;
  margin: 0 0.1em;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold-soft);
  margin: 0 auto var(--space-md);
}

.hero-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ivory);
  margin-bottom: 0.3rem;
}

.hero-location {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.85;
  margin-bottom: var(--space-lg);
}

/* Countdown — Zile · Ore · Min (fără secunde) */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: var(--space-lg);
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}
.countdown-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-soft);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ivory);
  opacity: 0.8;
  margin-top: 0.4rem;
}
.countdown-separator {
  color: var(--gold-soft);
  font-size: 1.5rem;
  opacity: 0.6;
}

/* ============ BUTOANE ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  min-height: 48px;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gold);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--ink); }

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-secondary:hover { background: var(--gold); color: var(--ivory); }

.btn-full { width: 100%; }

/* ============ SECȚIUNI GENERALE ============ */
.section {
  padding: var(--space-2xl) 0;
}
.section-eyebrow {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: var(--space-md);
}
.section-intro {
  text-align: center;
  max-width: 500px;
  margin: 0 auto var(--space-lg);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section-poveste { background: var(--cream); }
.section-program { background: var(--ivory); }
.section-galerie { background: var(--cream); }
.section-rsvp    { background: var(--ivory); }
.section-info    { background: var(--cream-warm); }

/* ============ POVESTEA NOASTRĂ ============ */
.poveste-text { text-align: center; }
.poveste-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  color: var(--ink);
}
.poveste-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem !important;
  color: var(--gold) !important;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--space-md) 0 !important;
}
.poveste-signature {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft) !important;
  font-size: 1rem !important;
  margin-top: var(--space-md);
}

/* ============ PROGRAM — TIMELINE ============ */
.program-timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.program-timeline::before {
  content: '';
  position: absolute;
  left: 70px;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: var(--line);
}

.program-item {
  display: grid;
  grid-template-columns: 60px 32px 1fr;
  gap: 1rem;
  align-items: start;
  padding: var(--space-md) 0;
  position: relative;
}

.program-time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 500;
  text-align: right;
}

.program-marker {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.program-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.program-content p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ GALERIE ============ */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}
.galerie-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-warm);
  cursor: pointer;
}
.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.galerie-item:hover img { transform: scale(1.05); }

/* ============ RSVP FORM ============ */
.rsvp-deadline {
  text-align: center;
  background: var(--cream-warm);
  border-left: 3px solid var(--gold);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}
.rsvp-deadline strong { color: var(--gold); }

.rsvp-form {
  background: white;
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--line);
}

.form-group { margin-bottom: var(--space-md); }
.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  min-height: 48px;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; min-height: 80px; }

/* Radio cards stilizate */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.radio-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.9rem;
  min-height: 48px;
  transition: all 0.2s;
}
.radio-icon {
  font-size: 1.1rem;
  color: var(--gold);
}
.radio-group input[type="radio"]:checked + .radio-card {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}
.radio-group input[type="radio"]:checked + .radio-card .radio-icon {
  color: var(--ivory);
}

.form-contact {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: var(--space-md) 0;
}
.form-contact a { color: var(--gold); text-decoration: none; }
.form-contact a:hover { text-decoration: underline; }

/* Mesaj de mulțumire */
.rsvp-thanks {
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: var(--space-lg) var(--space-md);
}
.rsvp-thanks-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.rsvp-thanks h3 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ============ INFORMAȚII UTILE ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}
.info-card {
  background: var(--ivory);
  padding: var(--space-md);
  text-align: center;
  border: 1px solid var(--line);
}
.info-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.info-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.footer-ornament {
  font-size: 1.2rem;
  color: var(--gold-soft);
  margin-bottom: var(--space-sm);
}
.footer-title {
  font-size: 2.2rem;
  color: var(--ivory);
  margin-bottom: 0.4rem;
}
.footer-date {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gold-soft);
  margin-bottom: var(--space-md);
}
.footer-contact a { color: var(--gold-soft); text-decoration: none; }
.footer-contact a:hover { color: var(--ivory); }
.footer-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-mute);
}

/* ============ BUTON FIX JOS — DOAR MOBIL ============ */
.sticky-cta {
  display: none;
  position: fixed;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: var(--space-sm);
  z-index: 90;
  padding: 1rem;
  background: var(--gold);
  color: var(--ivory);
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(44, 38, 32, 0.18);
  border: none;
  cursor: pointer;
  width: calc(100% - 2 * var(--space-sm));
  border-radius: 0;
}

/* ============ RESPONSIVE — MOBILE-FIRST AJUSTĂRI ============ */
@media (max-width: 720px) {
  .sticky-cta { display: flex; }

  .section { padding: var(--space-xl) 0; }
  .hero { min-height: 90vh; padding: var(--space-lg) var(--space-md); }

  .countdown { gap: 0.8rem; }
  .countdown-value { font-size: 2rem; }
  .countdown-item { min-width: 50px; }

  .program-timeline::before { left: 50px; }
  .program-item {
    grid-template-columns: 50px 28px 1fr;
    gap: 0.6rem;
  }
  .program-time { font-size: 1.1rem; }
  .program-marker { width: 28px; height: 28px; font-size: 0.8rem; }
  .program-content h3 { font-size: 1rem; }

  .galerie-grid { grid-template-columns: repeat(2, 1fr); }

  .radio-group { grid-template-columns: 1fr; }

  .rsvp-form { padding: var(--space-md) var(--space-sm); }

  .info-grid { grid-template-columns: 1fr; }
}

@media (min-width: 721px) {
  .sticky-cta { display: none !important; }
}

/* ================================================================
   ELEMENTE NOI — adăugate după rundă de modificări
   ================================================================ */

/* ============ SECȚIUNE MUZICĂ — formular propunere melodii ============ */
.section-muzica { background: var(--cream); }

.music-form {
  background: white;
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--line);
  margin-bottom: var(--space-lg);
}

.music-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-style: italic;
  margin-top: var(--space-md);
}

.music-playlist {
  background: var(--ivory);
  padding: var(--space-md);
  border: 1px solid var(--line);
}
.music-playlist-title {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: var(--space-sm);
}
.music-playlist-empty {
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
  font-size: 0.95rem;
  padding: var(--space-md) 0;
}
.music-playlist-list {
  list-style: none;
  padding: 0;
}
.music-playlist-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}
.music-playlist-list li:last-child { border-bottom: none; }
.music-playlist-list .song-info { flex: 1; min-width: 0; }
.music-playlist-list .song-info strong { color: var(--ink); }
.music-playlist-list .song-info span { color: var(--ink-soft); font-size: 0.85rem; }
.music-playlist-list .song-by { color: var(--gold); font-size: 0.8rem; font-style: italic; margin-top: 0.2rem; }
.music-playlist-list .song-note { color: var(--ink-mute); font-size: 0.8rem; }

/* Buton like (inimă) — ușor de apăsat pe mobil */
.song-like {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 52px;
  min-height: 52px;
  padding: 0.4rem 0.6rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.song-like:hover { border-color: var(--gold); }
.song-like-icon {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-mute);
  transition: color 0.2s, transform 0.2s;
}
.song-like-count {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.song-like.is-liked { background: #fff5f5; border-color: #e8a3a3; }
.song-like.is-liked .song-like-icon { color: #d94848; transform: scale(1.1); }
.song-like.is-liked .song-like-count { color: #d94848; }

/* Toast / mesaj prietenos pentru duplicate */
.music-toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.9rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  max-width: 92%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: toastIn 0.3s ease;
}
.music-toast.is-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============ RSVP — buton expandabil ============ */
.rsvp-open-wrap {
  text-align: center;
  padding: var(--space-lg) 0;
}
.rsvp-open-wrap .btn {
  max-width: 360px;
  margin: 0 auto;
}
.rsvp-open-hint {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
}

/* ============ SECȚIUNE CUM AJUNGI — harta la final ============ */
.section-harta { background: var(--ivory); }

.harta-map {
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow);
}
.harta-map iframe {
  width: 100%;
  height: 360px;
  border: none;
  display: block;
}

.harta-cta { text-align: center; }

@media (max-width: 720px) {
  .harta-map iframe { height: 260px; }
}

/* ============ BUTON MUZICĂ FLOTANT (jos-dreapta) ============ */
.music-player {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 80;
}

.music-player-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 0.6rem 1.1rem 0.6rem 0.7rem;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(44, 38, 32, 0.12);
  transition: all 0.2s;
  min-height: 48px;
}
.music-player-btn:hover {
  background: var(--cream);
  border-color: var(--gold);
}
.music-player-btn.is-playing {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}

.music-player-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--ivory);
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
}
.music-player-btn.is-playing .music-player-icon {
  background: var(--ivory);
  color: var(--gold);
}

.music-player-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}
.music-player-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.music-player-btn.is-playing .music-player-status { color: var(--ivory); opacity: 0.85; }

.music-player-song {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink);
  font-family: var(--font-display);
}
.music-player-btn.is-playing .music-player-song { color: var(--ivory); }

/* Pe mobil — butonul muzică se mută mai sus de butonul Confirmă prezența */
@media (max-width: 720px) {
  .music-player {
    bottom: 80px; /* ca să nu fie acoperit de butonul Confirmă prezența */
    right: 0.8rem;
  }
  .music-player-song { display: none; } /* pe mobil ascundem textul melodiei pentru spațiu */
  .music-player-btn { padding: 0.5rem 1rem 0.5rem 0.5rem; }
}

/* ============ MODAL PROGRAM ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 38, 32, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--ivory);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--gold);
  color: var(--ivory);
  border-color: var(--gold);
}

/* Timeline-ul în modal este același cu cel original, deja stilat mai sus */

@media (max-width: 720px) {
  .modal-content { padding: var(--space-md) var(--space-sm); }
  .modal-content .section-title { font-size: 1.6rem; }
}

