/* Variabel Warna dan Font Dasar */
:root {
  --spotify-green: #1db954;
  --spotify-black: #121212;
  --spotify-dark-gray: #282828;
  --spotify-light-gray: #b3b3b3;
  --spotify-white: #ffffff;
  --font-family: "Poppins", sans-serif;
}

/* Reset dan Body Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Keyboard Accessibility Focus Indicators (R-32) */
:focus-visible {
  outline: 2px solid var(--spotify-green);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: #000000;
  color: var(--spotify-white);
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.spotify-container {
  width: 100%;
  max-width: 430px;
  background-color: var(--spotify-black);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header dengan Nav Pills: Glassmorphism */
.spotify-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.spotify-header::-webkit-scrollbar {
  display: none;
}

.nav-pills {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--spotify-white);
}

.nav-link.active {
  background-color: var(--spotify-green);
  color: var(--spotify-black);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

/* Konten Utama */
main {
  padding: 0 15px;
  flex-grow: 1; /* <-- TAMBAHKAN ATAU PASTIKAN BARIS INI ADA */
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  margin-top: 40px;
  letter-spacing: -0.3px;
}

/* Animation for guest book notification */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

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

/* ===================================== */
/* ==== CSS BARU UNTUK FITUR EPISODE ==== */
/* ===================================== */

#episode-feature {
  padding: 20px 0;
}

.episode-card {
  background: radial-gradient(circle at top, #3d2e2a, #1e1919 80%);
  border-radius: 12px;
  padding: 24px;
  color: #eaeaea;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.episode-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.episode-title-group h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--spotify-white);
}

.episode-title-group p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--spotify-light-gray);
  margin-top: 4px;
}

.add-button {
  background-color: transparent;
  border: 2px solid var(--spotify-white);
  color: var(--spotify-white);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.add-button:hover {
  background-color: var(--spotify-white);
  color: #000;
  transform: scale(1.08);
}

.add-button:focus-visible {
  outline: 2px solid var(--spotify-green);
  outline-offset: 2px;
}

.episode-body {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.waveform-bg {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 40px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="40"><rect x="2" y="15" width="4" height="10" fill="%23b3b3b3" /><rect x="10" y="10" width="4" height="20" fill="%23b3b3b3" /><rect x="18" y="18" width="4" height="4" fill="%23b3b3b3" /><rect x="26" y="5" width="4" height="30" fill="%23b3b3b3" /><rect x="34" y="12" width="4" height="16" fill="%23b3b3b3" /><rect x="42" y="15" width="4" height="10" fill="%23b3b3b3" /><rect x="50" y="8" width="4" height="24" fill="%23b3b3b3" /><rect x="58" y="16" width="4" height="8" fill="%23b3b3b3" /><rect x="66" y="10" width="4" height="20" fill="%23b3b3b3" /><rect x="74" y="15" width="4" height="10" fill="%23b3b3b3" /><rect x="82" y="12" width="4" height="16" fill="%23b3b3b3" /><rect x="90" y="18" width="4" height="4" fill="%23b3b3b3" /></svg>');
  background-repeat: repeat-x;
  opacity: 0.3;
  z-index: 1;
}

.episode-cover {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
  object-fit: cover;
}

.episode-meta p {
  font-size: 0.8rem;
  color: var(--spotify-light-gray);
  font-weight: 500;
}

.episode-description {
  margin: 12px 0 28px 0;
}

.episode-description p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}

.episode-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}

.preview-button {
  background-color: transparent;
  border: 1px solid var(--spotify-light-gray);
  color: var(--spotify-white);
  padding: 8px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dots-button {
  background: none;
  border: none;
  color: var(--spotify-light-gray);
  font-size: 1.2rem;
  cursor: pointer;
}

.main-play-button {
  background-color: var(--spotify-white);
  color: #000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-left: 3px; /* visual centering for play icon */
  cursor: pointer;
  transition: transform 0.2s ease;
}

.main-play-button:hover {
  transform: scale(1.05);
}

/* Info Beranda dan Acara: Hero Section */
.event-info {
  text-align: center;
  padding: 30px 0 10px;
  position: relative;
}

.event-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(29, 185, 84, 0.08) 0%,
    rgba(180, 130, 100, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.event-info .main-photo {
  width: 70%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
  animation: floatPhoto 4s ease-in-out infinite;
}

@keyframes floatPhoto {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.event-info h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 20px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.event-info p {
  color: var(--spotify-light-gray);
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.event-info .save-the-date {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
}

.event-tabs {
  display: flex;
  background-color: #333;
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 15px;
}

.tab-button {
  flex: 1;
  padding: 10px;
  background-color: transparent;
  border: none;
  color: var(--spotify-white);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.tab-button:hover {
  background-color: var(--spotify-dark-gray);
  color: var(--spotify-white);
}

.tab-button.active {
  background-color: var(--spotify-green);
  color: var(--spotify-white);
  font-weight: 700;
}

.event-tab-content {
  display: none;
  background-color: rgba(40, 40, 40, 0.6);
  padding: 28px 22px;
  border-radius: 12px;
  animation: fadeIn 0.5s;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.event-tab-content.active {
  display: block; /* Tampilkan hanya yang aktif */
}

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

.detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.detail-item i {
  color: var(--spotify-green);
  width: 22px;
  text-align: center;
  font-size: 1.05rem;
}

.event-buttons {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.event-buttons .cta-button {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.cta-button.small.calendar {
  background-color: #4caf50; /* Warna hijau yang sedikit berbeda untuk kalender */
}
.cta-button.small.calendar:hover {
  background-color: #5cb85c;
}

/* Tombol CTA (Call to Action) */
.cta-button {
  background-color: var(--spotify-green);
  color: var(--spotify-white);
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.2);
  cursor: pointer;
  display: inline-block;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
  transform: scale(1.04) translateY(-1px);
  background-color: #1ed760;
  box-shadow: 0 6px 24px rgba(29, 185, 84, 0.35);
}

.cta-button i {
  margin-right: 8px;
}

.cta-button.small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* couple desc */
.playlist-item.with-photo {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 10px;
}

.couple-clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 0 -10px;
  border-radius: 6px;
}

.couple-clickable:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.track-lead {
  display: flex;
  align-items: center;
}

.playlist-photo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.playlist-item.with-photo .track-info {
  flex-grow: 1;
  min-width: 0;
}

.playlist-item.with-photo .track-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--spotify-white);
  margin: 0;
}

.playlist-item.with-photo .track-artist {
  font-size: 0.75rem;
  color: var(--spotify-light-gray);
  margin: 0;
  margin-top: 4px;
  line-height: 1.5;
}

.track-action {
  display: flex;
  align-items: center;
  color: var(--spotify-light-gray);
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.couple-clickable:hover .track-action {
  opacity: 1;
}

/* Couple Modal */
.couple-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  overflow-y: auto;
}

.couple-modal.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.couple-modal-content {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background-color: var(--spotify-black);
  min-height: 100vh;
  position: relative;
}

.couple-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.couple-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.couple-modal-close:focus-visible {
  outline: 2px solid var(--spotify-green);
  outline-offset: 2px;
}

/* Hero Section */
.couple-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  overflow: hidden;
}

.couple-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    var(--spotify-black) 0%,
    transparent 100%
  );
  padding: 40px 20px 30px;
}

.couple-hero-info {
  max-width: 430px;
  margin: 0 auto;
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3d91f5;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.verified-badge i {
  font-size: 1.2rem;
}

.couple-hero-name {
  font-size: 3rem;
  font-weight: 900;
  color: var(--spotify-white);
  margin: 0 0 10px 0;
  line-height: 1;
  letter-spacing: -1px;
}

.couple-hero-role {
  font-size: 1rem;
  color: var(--spotify-white);
  margin: 0;
  font-weight: 500;
}

/* Detail Section */
.couple-details {
  padding: 30px 20px;
  max-width: 430px;
  margin: 0 auto;
}

.couple-detail-section {
  margin-bottom: 30px;
}

.couple-detail-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--spotify-white);
  margin: 0 0 15px 0;
}

.couple-detail-section p {
  font-size: 0.95rem;
  color: var(--spotify-light-gray);
  line-height: 1.6;
  margin: 0;
}

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

/* Galeri */
.gallery {
  padding-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 80px;
  gap: 6px;
  margin-bottom: 20px;
}

.gallery-img {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--spotify-dark-gray);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

/* Overlay sederhana */
.gallery-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-img:hover::before {
  opacity: 1;
}

.gallery-img:hover img {
  transform: scale(1.08);
}

.gallery-img:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Variasi ukuran grid untuk layout yang menarik */
/* Layout optimized for 8 photos */
.gallery-img:nth-child(1) {
  grid-column: span 6;
  grid-row: span 3;
}

.gallery-img:nth-child(2) {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-img:nth-child(3) {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-img:nth-child(4) {
  grid-column: span 2;
  grid-row: span 3;
}

.gallery-img:nth-child(5) {
  grid-column: span 4;
  grid-row: span 3;
}

.gallery-img:nth-child(6) {
  grid-column: span 6;
  grid-row: span 3;
}

.gallery-img:nth-child(7) {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-img:nth-child(8) {
  grid-column: span 3;
  grid-row: span 3;
}

/* Animasi masuk untuk setiap foto */
.gallery-img {
  animation: fadeInScale 0.6s ease-out backwards;
}

.gallery-img:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-img:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-img:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-img:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-img:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-img:nth-child(6) {
  animation-delay: 0.6s;
}
.gallery-img:nth-child(7) {
  animation-delay: 0.7s;
}
.gallery-img:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* RSVP Form */
.rsvp-section {
  margin-bottom: 40px;
}

.rsvp-section form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rsvp-section input[type="text"],
.rsvp-section textarea {
  width: 100%;
  background-color: rgba(40, 40, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
  color: var(--spotify-white);
  font-size: 0.95rem;
  font-family: var(--font-family);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.rsvp-section input[type="text"][readonly] {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #444;
  border-bottom-color: #444;
  border-radius: 0;
  padding-left: 5px;
  padding-right: 5px;
  color: var(--spotify-white);
  cursor: default;
  opacity: 1;
  -webkit-text-fill-color: var(--spotify-white);
}

.rsvp-section input[type="text"]:focus,
.rsvp-section textarea:focus {
  outline: 2px solid var(--spotify-green);
  outline-offset: 1px;
  border-color: var(--spotify-green);
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-group input[type="radio"] {
  accent-color: var(--spotify-green);
  width: 18px;
  height: 18px;
}

.notification {
  display: none;
  margin-top: 20px;
  padding: 18px;
  background: rgba(29, 185, 84, 0.1);
  color: var(--spotify-green);
  border-left: 4px solid var(--spotify-green);
  border-radius: 10px;
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

.notification i {
  margin-right: 10px;
}

/* gift section */
#wedding-gift {
  padding-bottom: 40px;
}

.gift-description {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 28px;
  text-align: center;
  font-style: italic;
}

/* Mengatur layout utama setiap baris item */
#wedding-gift .playlist-item {
  display: flex;
  align-items: center; /* Membuat semua item sejajar secara vertikal di tengah */
  gap: 15px;
  padding: 10px 0;
}

.bank-icon {
  width: 30px;
  height: auto;
  flex-shrink: 0; /* Mencegah logo gepeng/menyusut */
}

/* Memastikan info bank mengisi ruang kosong di tengah */
#wedding-gift .track-info {
  flex-grow: 1;
}

.copy-gift-button {
  background-color: var(--spotify-green);
  color: var(--spotify-white);
  border: none;
  padding: 8px 20px; /* Sedikit menyesuaikan padding agar lebih proporsional */
  border-radius: 50px;
  font-size: 0.8rem; /* Menyesuaikan ukuran font */
  font-weight: bold;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s;
  flex-shrink: 0; /* Mencegah tombol menyusut */

  /* INI KUNCI UTAMANYA: Mendorong tombol ke paling kanan */
  margin-left: auto;
}

.copy-gift-button:hover {
  background-color: #1ed760;
  transform: scale(1.05);
}

/* Gift Tabs */
.gift-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.gift-tab {
  background-color: var(--spotify-dark-gray);
  color: var(--spotify-light-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.gift-tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--spotify-white);
}

.gift-tab.active {
  background-color: var(--spotify-green);
  color: var(--spotify-white);
  border-color: var(--spotify-green);
}

.gift-tab-content {
  display: none;
}

.gift-tab-content.active {
  display: block;
}

/* Gift Address Card */
.gift-address-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
}

.gift-address-icon {
  width: 40px;
  height: 40px;
  background-color: var(--spotify-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--spotify-white);
}

.gift-address-info {
  flex-grow: 1;
}

.gift-address-name {
  color: var(--spotify-white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.gift-address-detail {
  color: var(--spotify-light-gray);
  font-size: 0.85rem;
  line-height: 1.5;
}

.gift-address-card .copy-gift-button {
  margin-top: 5px;
  align-self: center;
}

/* Footer (Now Playing Bar) */
.now-playing-bar {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: rgba(40, 40, 40, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  height: 70px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden; /* Penting untuk progress bar */
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%; /* Lebar diatur oleh JavaScript */
  background-color: var(--spotify-green);
  opacity: 0.3;
  z-index: -1; /* Tampil di belakang konten */
  transition: width 1s linear;
}

.album-art-gift,
.countdown-container {
  position: relative; /* Agar selalu di atas progress bar */
  z-index: 1;
}

.album-art-gift {
  width: 45px; /* UKURAN DIPERKECIL */
  height: 45px;
  background-color: #535353;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem; /* Ikon diperkecil */
  flex-shrink: 0;
}

.countdown-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 0 10px;
}

.time-block {
  text-align: center;
}

.time-block span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--spotify-white);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.time-block span.tick-animation {
  transform: scale(1.15);
  color: var(--spotify-green);
}

.time-block p {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 1px;
}

/* Modal Gambar Besar */
/* GANTI SEMUA CSS MODAL LAMA ANDA DENGAN YANG INI */

/* Overlay untuk modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

/* Konten gambar di dalam modal */
.modal-content {
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  animation: zoomIn 0.4s ease;
  transition: transform 0.2s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #f1f1f1;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
  z-index: 1002;
}

.close-modal-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.close-modal-btn:focus-visible {
  outline: 2px solid var(--spotify-green);
  outline-offset: 2px;
}

.modal-nav {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 60px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.25s ease;
  border-radius: 0 4px 4px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  z-index: 1002;
}

.modal-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-nav:focus-visible {
  outline: 2px solid var(--spotify-green);
  outline-offset: 2px;
}

.prev-btn {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.next-btn {
  right: 0;
  border-radius: 0 3px 3px 0;
}

/* ========================================== */
/* Guest Book Section */
/* ========================================== */
.guest-book-section {
  padding: 20px 0 100px;
}

.guest-book-subtitle {
  font-size: 0.9rem;
  color: var(--spotify-light-gray);
  margin-top: -15px;
  margin-bottom: 25px;
  font-weight: 400;
}

/* Comment Form - Spotify Style */
.guest-book-form {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #404040;
  padding-bottom: 20px;
}

.comment-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.guest-book-form textarea {
  flex: 1;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background-color: rgba(42, 42, 42, 0.6);
  color: var(--spotify-white);
  font-family: var(--font-family);
  font-size: 0.92rem;
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
}

.guest-book-form textarea:focus {
  outline: 2px solid var(--spotify-green);
  outline-offset: 1px;
  border-color: var(--spotify-green);
  background-color: rgba(50, 50, 50, 0.85);
  box-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 52px;
}

.char-count {
  font-size: 0.85rem;
  color: var(--spotify-light-gray);
}

.comment-button {
  background-color: var(--spotify-green);
  color: #000;
  border: none;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-button:hover {
  background-color: #1ed760;
  transform: scale(1.05);
}

.comment-button:active {
  transform: scale(0.98);
}

/* Guest Book List */
.guest-book-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guest-wish-item {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  transition: none;
}

.guest-wish-item:hover {
  transform: none;
}

.guest-wish-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.guest-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--spotify-green), #1ed760);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--spotify-black);
  font-size: 1.1rem;
}

.guest-avatar-comment {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.guest-wish-info {
  flex: 1;
}

.guest-wish-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--spotify-white);
  margin-bottom: 2px;
}

.guest-wish-time {
  font-size: 0.8rem;
  color: var(--spotify-light-gray);
}

.guest-wish-message {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 12px 52px;
}

/* Comment Actions */
.comment-actions {
  display: flex;
  gap: 15px;
  margin-left: 52px;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--spotify-light-gray);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-family: var(--font-family);
  font-weight: 500;
}

.action-btn:hover {
  color: var(--spotify-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.action-btn i {
  font-size: 0.9rem;
}

.like-btn.liked {
  color: #ff4081;
}

.like-btn.liked i {
  font-weight: 900;
}

.like-btn.liked .fa-heart::before {
  content: "\f004";
  font-weight: 900;
}

/* ===================================== */
/* ==== TAMPILAN LAYAR LEBAR (LAPTOP / TABLET / LANDSCAPE) ==== */
/* ===================================== */

/* Di HP latar ini tidak terlihat; muncul saat layar lebih lebar dari kolom undangan */
.desktop-backdrop {
  display: none;
}

@media (min-width: 600px), (orientation: landscape) {
  .desktop-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-color: #0a0a0a;
  }

  /* Aurora (northern lights): dua lapisan bergerak pelan berlawanan arah */
  .aurora {
    position: absolute;
    inset: -10%;
    background: url("/assets/northern-lights.jpg") center / cover no-repeat;
    will-change: transform, opacity;
  }

  .aurora-1 {
    animation: auroraDrift 26s ease-in-out infinite alternate;
  }

  /* Lapisan cermin yang berkilau masuk-keluar, memberi kesan cahaya berjalan */
  .aurora-2 {
    mix-blend-mode: screen;
    opacity: 0.35;
    animation:
      auroraDriftReverse 34s ease-in-out infinite alternate,
      auroraShimmer 9s ease-in-out infinite alternate;
  }

  /* Tekstur grain halus seperti file aslinya */
  .desktop-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: url("/assets/grain.png") repeat;
    opacity: 0.04;
    mix-blend-mode: overlay;
  }

  /* Vignette gelap agar kolom undangan tetap jadi fokus */
  .desktop-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(8, 12, 30, 0.1) 0%, rgba(5, 8, 20, 0.7) 80%);
  }

  .spotify-container {
    z-index: 1;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.85);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
}

/* Nama pasangan di sisi kiri, hanya untuk layar laptop yang cukup lebar & tinggi */
.desktop-caption {
  display: none;
}

@media (min-width: 1100px) and (min-height: 560px) {
  .desktop-caption {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0;
    width: calc(50vw - 215px);
    padding: 0 48px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    animation: desktopCaptionIn 1.2s ease-out both;
  }

  .desktop-caption-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.95rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(200, 250, 228, 0.9);
  }

  .desktop-caption-names {
    font-family: "Great Vibes", cursive;
    font-size: clamp(3rem, 5vw, 4.6rem);
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 2px 28px rgba(75, 232, 160, 0.35);
  }

  .desktop-caption-date {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(-5%, 0, 0) scale(1.05);
  }
  100% {
    transform: translate3d(5%, -3%, 0) scale(1.15);
  }
}

@keyframes auroraDriftReverse {
  0% {
    transform: scaleX(-1) translate3d(-6%, 2%, 0) scale(1.2);
  }
  100% {
    transform: scaleX(-1) translate3d(6%, -2%, 0) scale(1.1);
  }
}

@keyframes auroraShimmer {
  0% {
    opacity: 0.15;
  }
  100% {
    opacity: 0.55;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .desktop-caption,
  .aurora {
    animation: none;
  }
}
