/* ============================================================
   marketing.css — SesiPotret Fitur Marketing
   8 Fitur: Promo Banner, Galeri Hasil, Testimoni, WA CS,
            Promo Banner, Demo, Counter, Share Button
   ============================================================ */

/* ── 1. PROMO BANNER (Top of page) ──────────────────────── */
.promo-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #7C3AED, #EC4899, #F59E0B, #EC4899, #7C3AED);
  background-size: 300% 100%;
  animation: promoBannerShift 6s ease infinite;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
@keyframes promoBannerShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.promo-banner-timer {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 2px 10px;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.promo-banner-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.promo-banner-close:hover { color: #fff; }
.promo-banner-cta {
  background: #fff;
  color: #7C3AED;
  border-radius: 20px;
  padding: 3px 12px;
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  transition: transform 0.2s;
  white-space: nowrap;
}
.promo-banner-cta:hover { transform: scale(1.05); }

/* ── 2. GALERI HASIL FOTO NYATA ──────────────────────────── */
.results-gallery-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-secondary, #0f0f1a) 0%, var(--bg-primary, #08080f) 100%);
}
.results-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.result-strip-card {
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}
.result-strip-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(124,58,237,0.3);
}
.result-strip-card:hover .result-card-overlay {
  opacity: 1;
}
.result-card-inner {
  width: 100%;
  aspect-ratio: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  box-sizing: border-box;
}
.result-photo-slot {
  flex: 1;
  border-radius: 6px;
  background: #2a2a3e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
  position: relative;
}
.result-card-header {
  text-align: center;
  padding: 6px 4px 2px;
  font-size: 0.45rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
}
.result-card-footer {
  text-align: center;
  padding: 4px 4px 6px;
  font-size: 0.38rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.result-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(124,58,237,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 14px;
}
.result-card-overlay span {
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
}
.result-card-label {
  text-align: center;
  padding: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

/* Color themes for result cards */
.rcard-theme-pink   .result-card-header { color: #f9a8d4; }
.rcard-theme-blue   .result-card-header { color: #93c5fd; }
.rcard-theme-green  .result-card-header { color: #86efac; }
.rcard-theme-yellow .result-card-header { color: #fde68a; }
.rcard-theme-purple .result-card-header { color: #d8b4fe; }
.rcard-theme-orange .result-card-header { color: #fed7aa; }

.rcard-theme-pink   { border-color: rgba(249,168,212,0.2); }
.rcard-theme-blue   { border-color: rgba(147,197,253,0.2); }
.rcard-theme-purple { border-color: rgba(216,180,254,0.2); }

/* ── 3. TESTIMONI YANG LEBIH KAYA ────────────────────────── */
.testi-card-enhanced {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.testi-card-enhanced:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 16px 40px rgba(124,58,237,0.15);
}
.testi-card-enhanced::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: rgba(124,58,237,0.15);
  line-height: 1;
  pointer-events: none;
}
.testi-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7C3AED, #EC4899);
  flex-shrink: 0;
}
.testi-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: #10B981;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 4px;
}
.testi-result-strip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  gap: 4px;
  margin-top: 14px;
}
.testi-mini-photo {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255,255,255,0.08);
}
.testimonials-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* ── 4. FLOATING WA CS BUTTON ────────────────────────────── */
.wa-cs-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wa-cs-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  animation: waPulse 2.5s ease infinite;
  position: relative;
}
.wa-cs-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.7);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 6px 32px rgba(37,211,102,0.8), 0 0 0 10px rgba(37,211,102,0.1); }
}
.wa-cs-tooltip {
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  position: absolute;
  right: 70px;
  bottom: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}
.wa-cs-btn:hover + .wa-cs-tooltip,
.wa-cs-fab:hover .wa-cs-tooltip {
  opacity: 1;
  transform: translateX(0);
}
.wa-cs-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #111827;
  border-right: none;
}

/* ── 5. DEMO ANIMATED SECTION ─────────────────────────────── */
.demo-section {
  padding: 80px 0;
  overflow: hidden;
}
.demo-phone-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.demo-phone-mockup {
  width: 220px;
  height: 420px;
  background: #1a1a2e;
  border: 3px solid rgba(255,255,255,0.12);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.demo-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.demo-screen-header {
  padding: 14px 16px 10px;
  background: rgba(124,58,237,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.65rem;
  font-weight: 800;
  color: #d8b4fe;
  letter-spacing: 0.05em;
  text-align: center;
}
.demo-camera-area {
  flex: 1;
  background: #0a0a15;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.demo-camera-face {
  font-size: 3.5rem;
  animation: demoBob 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(236,72,153,0.4));
}
@keyframes demoBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.demo-camera-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(236,72,153,0.3);
  animation: demoRingPulse 2s ease-in-out infinite;
}
.demo-camera-ring:nth-child(2) {
  width: 160px;
  height: 160px;
  animation-delay: 0.5s;
  border-color: rgba(124,58,237,0.2);
}
@keyframes demoRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.1); opacity: 1; }
}
.demo-countdown-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(236,72,153,0.9);
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  animation: demoCountdown 3s steps(1) infinite;
}
@keyframes demoCountdown {
  0%   { content: '3'; }
  33%  { opacity: 0.4; }
  66%  { opacity: 0.7; }
  100% { opacity: 1; }
}
.demo-bottom-bar {
  padding: 12px;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
}
.demo-shutter-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 16px rgba(255,255,255,0.4);
  animation: shutterPulse 2s ease-in-out infinite;
}
@keyframes shutterPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(0.95); }
}
.demo-steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 340px;
}
.demo-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s, transform 0.5s;
}
.demo-step-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.demo-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #EC4899);
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.demo-step-text strong {
  display: block;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 0.95rem;
}
.demo-step-text span {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ── 6. ANIMATED COUNTER ──────────────────────────────────── */
.stat-number.counting {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 7. SHARE BUTTONS (in app.html after download) ─────────── */
.share-strip-section {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}
.share-strip-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-align: center;
}
.share-strip-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-share-wa {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-share-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.4);
}
.btn-share-ig {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-share-ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220,39,67,0.4);
}
.btn-share-copy {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s, background 0.2s;
}
.btn-share-copy:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.share-watermark-note {
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
}

/* ── 8. SEO / Open Graph preview (visual) ──────────────────── */
/* No visual CSS needed — handled in HTML meta tags */

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .results-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .demo-phone-container {
    gap: 30px;
  }
  .demo-steps-list {
    max-width: 100%;
  }
  .demo-step-item {
    opacity: 1;
    transform: none;
  }
  .testimonials-grid-enhanced {
    grid-template-columns: 1fr;
  }
  .wa-cs-fab {
    bottom: 20px;
    right: 16px;
  }
  .promo-banner {
    font-size: 0.75rem;
    padding: 8px 12px;
  }
}
