/* ================================================================
   NYAHENDE SMART DIGITAL INVITATION CARD - COMPACT MOBILE APP THEME
   Designed for smartphone screens (WhatsApp E-Card standard)
   ================================================================ */

.card-viewport {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 12px 85px 12px; /* Bottom padding for sticky bottom navigation bar */
  position: relative;
}

/* WhatsApp Envelope Tap-to-Open Overlay */
.envelope-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 40%, #0d3023 0%, #04120c 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.envelope-overlay.opened {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.06);
}

.envelope-box {
  max-width: 400px;
  width: 100%;
  background: linear-gradient(145deg, #0a251b 0%, #05140e 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 24px;
  padding: 34px 22px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.3);
  cursor: pointer;
}

.wax-seal {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
  animation: pulseGlow 2s infinite;
}

.envelope-tagline {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 6px;
}

.envelope-names {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.envelope-guest-name {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.envelope-open-btn {
  background: var(--gold-gradient);
  color: #071f16;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-whatsapp-share {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  margin-top: 10px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-whatsapp-share:hover {
  background: #1eb956;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
}

.music-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(13, 40, 30, 0.9);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(212, 175, 55, 0.4);
  transition: var(--transition);
}

.music-toggle.playing {
  animation: rotateMusic 4s linear infinite;
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

@keyframes rotateMusic {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Luxury E-Card Shell */
.wedding-card {
  background: linear-gradient(165deg, #092017 0%, #05140e 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.15);
  min-height: 580px;
}

/* Gold Corner Accents */
.gold-ornament-top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.5);
  border-left: 1px solid rgba(212, 175, 55, 0.5);
  border-right: 1px solid rgba(212, 175, 55, 0.5);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  pointer-events: none;
}

.gold-ornament-bottom {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  border-left: 1px solid rgba(212, 175, 55, 0.5);
  border-right: 1px solid rgba(212, 175, 55, 0.5);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  pointer-events: none;
}

/* Tab Panels */
.card-tab-panel {
  display: none;
  padding: 24px 18px;
  animation: tabFade 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-tab-panel.active {
  display: block;
}

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

/* Sticky Bottom Navigation Bar for Mobile */
.card-bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 460px;
  background: rgba(7, 24, 18, 0.94);
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  display: flex;
  justify-content: space-around;
  padding: 6px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(212, 175, 55, 0.25);
  z-index: 990;
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 12px;
  transition: var(--transition);
  font-family: var(--font-sans);
  flex: 1;
}

.nav-tab-item:hover {
  color: var(--gold-light);
}

.nav-tab-item.active {
  background: var(--gold-gradient);
  color: #071f16;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.nav-tab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.nav-tab-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================================================
   TAB 1: KADI KUU (MAIN CARD)
   ================================================================ */
.card-hero {
  text-align: center;
  padding: 10px 10px 14px 10px;
}

.bride-hero-frame {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.45);
}

.bride-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monogram-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(7, 21, 16, 0.9) 70%);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.monogram-letters {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-intro-script {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 2px;
}

.card-intro-sub {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.couple-names {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

.couple-ampersand {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--gold-primary);
  margin: 0 4px;
}

.wedding-quote {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 6px auto 0 auto;
}

/* Guest Honor Badge Box */
.guest-honor-badge {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(16, 57, 41, 0.45) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  margin: 14px 0;
  padding: 12px 14px;
  text-align: center;
}

.guest-honor-label {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.guest-honor-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.guest-honor-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--gold-light);
  flex-wrap: wrap;
}

.guest-meta-pill {
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-weight: 600;
}

/* Countdown */
.countdown-section {
  padding: 8px 0;
  text-align: center;
}

.countdown-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-box {
  background: rgba(4, 20, 14, 0.65);
  border: 1px solid var(--bg-glass-border);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 2px;
}

.countdown-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Compact QR Gate Pass Box */
.qr-gate-pass {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(10, 37, 26, 0.95) 75%);
  border: 1.5px dashed var(--gold-primary);
  border-radius: 18px;
  margin: 14px 0 10px 0;
  padding: 16px 14px;
  text-align: center;
}

.qr-badge-header {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.qr-badge-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.qr-frame {
  width: 155px;
  height: 155px;
  margin: 0 auto 10px auto;
  background: #ffffff;
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-code-text {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
}

/* Quick Action Buttons on Tab 1 */
.quick-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

/* ================================================================
   TAB 2: RSVP & VINYWAJI
   ================================================================ */
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-heading::before,
.section-heading::after {
  content: "";
  height: 1px;
  width: 30px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.rsvp-card {
  background: rgba(16, 57, 41, 0.5);
  border: 1px solid var(--gold-primary);
  border-radius: 18px;
  padding: 18px 16px;
}

.rsvp-status-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.rsvp-choice-btn {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--bg-glass-border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.rsvp-choice-btn.active {
  background: var(--gold-gradient-soft);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.drinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 8px 0 14px 0;
}

.drink-card {
  border: 1px solid var(--bg-glass-border);
  border-radius: 10px;
  background: rgba(4, 20, 14, 0.6);
  padding: 8px 10px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drink-card:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-light);
}

.drink-card.selected {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.drink-icon {
  font-size: 1.3rem;
}

.drink-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
}

.drink-cat {
  font-size: 0.66rem;
  color: var(--text-muted);
}

/* ================================================================
   TAB 3: UKUMBI & RAMANI
   ================================================================ */
.event-info-box {
  display: flex;
  gap: 12px;
  background: rgba(4, 20, 14, 0.6);
  border: 1px solid var(--bg-glass-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.event-info-icon {
  font-size: 1.4rem;
  background: rgba(212, 175, 55, 0.15);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-info-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.event-info-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ================================================================
   TAB 4: RATIBA
   ================================================================ */
.timeline-list {
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-primary), var(--emerald-500));
}

.timeline-item {
  position: relative;
  padding-bottom: 14px;
}

.timeline-dot {
  position: absolute;
  left: -18px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 2.5px solid #071510;
  box-shadow: 0 0 6px var(--gold-primary);
}

.timeline-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
}

.timeline-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-venue {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ================================================================
   TAB 5: PONGEZI & MEDIA
   ================================================================ */
.media-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.media-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 6px;
  background: rgba(4, 20, 14, 0.6);
  border: 1px solid var(--bg-glass-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.media-link-card:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
}

.media-link-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.media-link-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-light);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 260px;
  overflow-y: auto;
}

.wish-bubble {
  background: rgba(4, 20, 14, 0.6);
  border: 1px solid var(--bg-glass-border);
  border-radius: 12px;
  padding: 10px 12px;
}

.wish-author {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.wish-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.wish-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}
