/* ============================================================ */
/* DESIGN TOKENS & TYPOGRAPHY                                   */
/* ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Forum&family=Great+Vibes&family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&family=Pinyon+Script&display=swap');

:root {
  --font-serif: 'Forum', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gold-ochre: #b38827;
  --gold-dark: #8c6819;
  --gold-light: #e5c365;
  --navy-dark: #0a1426;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-sand: #fbf9f5;
  --card-bg: #ffffff;
  --border-gold: rgba(179, 136, 39, 0.25);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: #0b111e;
  font-family: var(--font-sans);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* Central Mobile Viewport Container */
.app-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background-color: #ffffff;
  position: relative;
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.6);
  padding-bottom: 90px;
}

/* ============================================================ */
/* SCREEN 1: COVER OVERLAY (Matches Reference Photo Exactly)    */
/* ============================================================ */
.cover-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: 
    radial-gradient(ellipse at 35% 25%, rgba(238, 241, 245, 0.85) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 75%, rgba(230, 235, 242, 0.8) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, #ffffff 0%, #f6f7f9 100%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.85s ease;
  overflow: hidden;
}

.cover-overlay.opened {
  transform: translate(-50%, -105%);
  opacity: 0;
  pointer-events: none;
}

/* Center Content Container */
.cover-center-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  width: 100%;
  max-width: 380px;
}

.cover-title-box {
  margin-top: 0;
  margin-bottom: 32px;
}

/* Wave Ribbons from Canva (Exact Dimensions & Flow) */
.wave-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.wave-top-right {
  top: 0;
  right: 0;
  width: 230px;
  max-width: 58%;
  height: auto;
  mix-blend-mode: multiply;
}

.wave-bottom-left {
  bottom: 0;
  left: 0;
  width: 220px;
  max-width: 56%;
  height: auto;
  mix-blend-mode: multiply;
}

/* Canva Glossy Frosted White Pill Button */
.btn-open-invitation {
  z-index: 2;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #1a1a1a;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 13px 44px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 10px 25px -4px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  margin: 0 auto;
}

.btn-open-invitation:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 
    0 14px 30px -4px rgba(184, 134, 11, 0.25),
    0 0 12px rgba(212, 175, 55, 0.25);
  color: #000000;
}

.btn-open-invitation:active {
  transform: translateY(1px);
}

/* ============================================================ */
/* CARD 1: MAIN CEREMONY INVITATION CARD (Screenshot 1)         */
/* ============================================================ */
.invitation-card {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #ffffff 0%, #fcfcfc 60%, #f6f6f7 100%);
  padding: 40px 24px 35px 24px;
  text-align: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ============================================================ */
/* INVITATION TITLE TYPOGRAPHY & ARTWORK INTEGRATION            */
/* ============================================================ */
.invitation-title-group {
  text-align: center;
  margin: 10px auto 22px auto;
  position: relative;
  z-index: 2;
  user-select: none;
  width: 100%;
  max-width: 380px;
  padding: 0 8px;
}

.cover-title-box {
  margin-top: 10px;
  margin-bottom: 28px;
}

/* 1. Top "INVITATION" Spaced Sans-Serif (Matches Canva Harmony) */
.title-invitation {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: #334155;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-left: 0.42em;
  display: block;
  text-align: center;
  position: relative;
}

/* 2. GRAND LAUNCHING CEREMONY Artwork - 100% Transparent, Seamless & Sharp */
.canva-grand-ceremony-img {
  width: 100%;
  max-width: 315px;
  height: auto;
  margin: 4px auto 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(181, 136, 45, 0.07));
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.canva-grand-ceremony-img:hover {
  transform: scale(1.02);
}

/* Flag Logo: PT. Pelayaran Lestari Abadi Serasi */
.company-flag-logo {
  width: 100%;
  max-width: 270px;
  height: auto;
  margin: 10px auto 16px auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Vessel Title */
.vessel-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-ochre);
  line-height: 1.35;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.vessel-dwt {
  font-size: 1.1rem;
  font-weight: 800;
}

/* Builder Block */
.builder-block {
  margin: 8px auto 18px auto;
}

.builder-logo {
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Date Box Section matching Canva (Forum & Source Serif 4) */
.date-display-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 12px auto;
  max-width: 320px;
}

.date-side {
  flex: 1;
  display: flex;
  align-items: center;
}

.date-line-framed {
  width: 100%;
  font-family: 'Forum', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #111111;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 0;
  border-top: 1.5px solid #111111;
  border-bottom: 1.5px solid #111111;
  text-align: center;
}

.date-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.date-number {
  font-family: 'Source Serif 4', 'Forum', Georgia, serif;
  font-size: 3.1rem;
  font-weight: 800;
  color: #111111;
  line-height: 0.95;
}

.date-month-year {
  font-family: 'Forum', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-ochre);
  letter-spacing: 2px;
  margin-top: 5px;
  text-transform: uppercase;
}

/* ============================================================ */
/* CARDS 2 & 3: RUN DOWN SCHEDULE (Screenshot 4)                */
/* ============================================================ */
.section-rundown {
  position: relative;
  background: #ffffff;
  padding: 30px 24px 35px 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.rundown-header-box {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 5px auto 25px auto;
  text-align: center;
}

.rundown-header-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(181, 136, 45, 0.08));
}

.schedule-day-block {
  margin-bottom: 24px;
}

.schedule-day-header {
  font-family: 'Forum', 'Montserrat', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #a88127;
  letter-spacing: 0.8px;
  border-bottom: 1.5px solid #d1d5db;
  padding-bottom: 5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-align: left;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: left;
}

.schedule-time {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  color: #111111;
  white-space: nowrap;
  min-width: 100px;
  flex-shrink: 0;
}

.schedule-activity {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2b2b2b;
  font-weight: 400;
  flex: 1;
}

/* Canva Swirling Bottom Glitter Dust Wave */
.rundown-glitter-bot {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 15px auto -10px auto;
  object-fit: contain;
  pointer-events: none;
}

/* ============================================================ */
/* CARD 4: LOCATION SECTION (Screenshot 4)                      */
/* ============================================================ */
.section-location {
  background: #ffffff;
  margin-bottom: 10px;
}

.location-gold-banner {
  background-color: #9c6c13;
  padding: 30px 18px 24px 18px;
  text-align: center;
}

.location-title-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 16px auto;
  display: block;
}

.shipyard-photo-box {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 200px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.shipyard-address-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.8);
}

/* Location Body (Map Route & QR Code & Huryani Group) */
.location-body {
  padding: 15px 15px 25px 15px;
  background: #ffffff;
  text-align: center;
}

.map-route-container {
  width: 100%;
  max-width: 390px;
  margin: 0 auto 10px auto;
}

.location-route-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Action Buttons Group (Auto-Detect Map & Salin Alamat) */
.location-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 14px auto 16px auto;
}

.btn-location-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 25px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-nav-map {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-nav-map:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.btn-copy-address {
  background: #ffffff;
  color: #9c6c13;
  border: 1.5px solid #c8a14b;
}

.btn-copy-address:hover {
  background: #fdfaf3;
  color: #7b530c;
  border-color: #9c6c13;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(156, 108, 19, 0.2);
}

.btn-location-action:active {
  transform: scale(0.97);
}

.huryani-branding-box {
  width: 100%;
  max-width: 320px;
  margin: 18px auto 14px auto;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.huryani-logo-video {
  width: 100%;
  max-width: 310px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  image-rendering: -webkit-optimize-contrast;
  border: none;
  outline: none;
}

.huryani-logo-img {
  width: 100%;
  max-width: 310px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ============================================================ */
/* FIXED FLOATING AUDIO PLAYER (Screenshot 4)                   */
/* ============================================================ */
.audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: 60px;
  background: #f0f2f5;
  border-top: 1px solid #dbe0e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 990;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
}

.audio-time {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  color: #333333;
  width: 45px;
}

.audio-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d5dbe5;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.audio-control-btn:hover {
  transform: scale(1.06);
}

.audio-control-btn:active {
  transform: scale(0.95);
}

/* Play Icon (Black Triangle) */
.play-triangle {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 13px solid #111111;
  margin-left: 3px;
}

/* Pause Icon (Double Bars) */
.pause-bars {
  display: flex;
  gap: 4px;
}

.pause-bars span {
  width: 4px;
  height: 14px;
  background: #111111;
  border-radius: 1px;
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1e293b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
