/* IEXI TikTok Shop Theme - Mobile First Optimized */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --primary: #FE2C55; /* TikTok signature red/coral */
  --primary-hover: #E01E45;
  --secondary: #25F4EE; /* TikTok signature cyan */
  --dark: #0F1117;
  --dark-surface: #191B24;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --badge-discount: #FE2C55;
  --star-gold: #F59E0B;
  --crypto-green: #10B981;
  --crypto-gold: #F7931A;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  background-color: #F8FAFC;
  color: var(--text-main);
  padding-bottom: 72px; /* space for fixed mobile bottom bar */
}

/* Max mobile container on desktop for realistic preview while keeping mobile perfection */
.app-container {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  background-color: #FFFFFF;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.06);
}

/* Hide scrollbar for clean horizontal scrolls */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* TikTok gradient border accent */
.tiktok-gradient-bg {
  background: linear-gradient(135deg, #FE2C55 0%, #FF5A79 60%, #FF8200 100%);
}

.tiktok-badge {
  background: #FE2C55;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Live Viewing Pulsing Dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Toast Notification Animation */
.toast-slide-enter {
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-slide-exit {
  animation: slideOutDown 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOutDown {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(100%) scale(0.95);
    opacity: 0;
  }
}

/* Drawer Backdrop */
.drawer-backdrop {
  backdrop-filter: blur(4px);
  background-color: rgba(15, 23, 42, 0.6);
  transition: opacity 0.3s ease;
}

/* Turnstile / Captcha Slider Styling */
.captcha-container {
  user-select: none;
  touch-action: none;
}
.captcha-slider-track {
  background: #EEF2F6;
  border: 1px solid #E2E8F0;
  position: relative;
  border-radius: 9999px;
  height: 48px;
  overflow: hidden;
}
.captcha-slider-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #ECFDF5;
  border-radius: 9999px 0 0 9999px;
  pointer-events: none;
}
.captcha-slider-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 42px;
  height: 42px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: background 0.2s;
}
.captcha-slider-thumb:active {
  cursor: grabbing;
}

/* Shimmer Loading Animation */
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Safe area for iPhone notch & home indicator */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .safe-bottom {
    padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
  }
  .bottom-nav-safe {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
