/* ════════════════════════════════════════════════════════════
   MEA Link Bio — share-modal.css
   Modal share: kartu KTP ukuran, salin link, unduh gambar
   ════════════════════════════════════════════════════════════ */

/* ── Overlay ─────────────────────────────────────────────── */
#ml-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  padding-bottom: env(safe-area-inset-bottom);
}

#ml-share-overlay.open {
  display: flex;
  animation: fadeIn 0.18s ease;
}

/* ── Panel ───────────────────────────────────────────────── */
#ml-share-panel {
  width: 100%;
  max-width: 480px;
  background: #131924;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 32px;
  animation: slideUp 0.22s ease;
}

#ml-share-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #A8B6C8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
}

/* ── Kartu KTP ───────────────────────────────────────────── */
#ml-share-card {
  width: 100%;
  aspect-ratio: 85.6/54; /* ukuran KTP ISO */
  border-radius: 12px;
  background: linear-gradient(135deg, #1A2540, #0B111E);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

/* Dekorasi background kartu */
#ml-share-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(129,212,250,0.08) 0%, transparent 60%);
}

.ml-share-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(129,212,250,0.4);
  position: relative;
  z-index: 1;
}

.ml-share-card-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(129,212,250,0.15);
  border: 2px solid rgba(129,212,250,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: #81D4FA;
  position: relative;
  z-index: 1;
}

.ml-share-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #F0F4F8;
  text-align: center;
  position: relative;
  z-index: 1;
}

.ml-share-card-bio {
  font-size: 0.68rem;
  color: #8A9AAD;
  text-align: center;
  line-height: 1.4;
  max-width: 200px;
  position: relative;
  z-index: 1;
}

.ml-share-card-url {
  font-size: 0.65rem;
  color: #81D4FA;
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}

/* ── Aksi ────────────────────────────────────────────────── */
.ml-share-actions {
  display: flex;
  gap: 10px;
}

.ml-share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.ml-share-btn:active { opacity: 0.75; }

.ml-share-btn-copy {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #F0F4F8;
}

.ml-share-btn-download {
  background: #81D4FA;
  border: 1px solid transparent;
  color: #0B111E;
}

.ml-share-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Tutup ───────────────────────────────────────────────── */
#ml-share-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7A8D;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ── Toast copy ──────────────────────────────────────────── */
#ml-copy-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(129,212,250,0.15);
  border: 1px solid rgba(129,212,250,0.3);
  color: #81D4FA;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

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

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

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