/* SĂN SALE - GOLD STANDARD 2026 DESIGN SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Platform Brand Colors (2026 Identity) */
  --color-shopee: #ee4d2d;
  --color-shopee-bg: #fff5f2;
  --color-lazada: #0f146d;
  --color-lazada-bg: #f0f3ff;
  --color-tiki: #1a94ff;
  --color-tiki-bg: #f0f7ff;
  --color-tiktok: #111827;
  --color-tiktok-bg: #f3f4f6;
  --color-highlands: #8b181b;
  --color-highlands-bg: #fdf2f2;
  --color-traveloka: #0194f3;
  --color-traveloka-bg: #f0f9ff;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Coupon Card Styling - Clean & Modern (No visual clutter) */
.coupon-card {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.coupon-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Platform specific border accent on hover */
.coupon-card[data-platform="shopee"]:hover { border-color: rgba(238, 77, 45, 0.4); }
.coupon-card[data-platform="lazada"]:hover { border-color: rgba(15, 20, 109, 0.4); }
.coupon-card[data-platform="tiki"]:hover { border-color: rgba(26, 148, 255, 0.4); }
.coupon-card[data-platform="tiktok"]:hover { border-color: rgba(17, 24, 39, 0.4); }
.coupon-card[data-platform="highlands"]:hover { border-color: rgba(139, 24, 27, 0.4); }
.coupon-card[data-platform="traveloka"]:hover { border-color: rgba(1, 148, 243, 0.4); }

/* Ticket Scalloped Edges */
.ticket-edge-left,
.ticket-edge-right {
  position: absolute;
  top: 60%;
  width: 14px;
  height: 14px;
  background-color: #f8fafc;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.ticket-edge-left {
  left: -7px;
  box-shadow: inset -2px 0 3px rgba(0, 0, 0, 0.04);
}

.ticket-edge-right {
  right: -7px;
  box-shadow: inset 2px 0 3px rgba(0, 0, 0, 0.04);
}

/* 1-Click Copy Button Animations & Feedback */
.btn-copy {
  transition: all 0.2s ease;
}

.btn-copy.copied {
  background-color: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  transform: scale(0.98);
}

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

/* Sticky Filter Bar shadow on scroll */
.filter-bar-sticky {
  position: sticky;
  top: 4rem; /* Below header */
  z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow 0.2s ease;
}

/* FAQ Accordion Transition */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease-out;
  opacity: 0;
}

.faq-answer.open {
  max-height: 400px;
  opacity: 1;
}

/* Smooth Toast notification */
#toast {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

#toast.hide {
  transform: translateY(120%);
  opacity: 0;
}

/* Partial Masked Code Box & Gold Standard 2026 Unlock Animation */
.code-box {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.code-box.masked {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px dashed #f59e0b;
}

.code-box.masked:hover {
  border-color: #d97706;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.code-box.unlocked {
  background: #f0fdf4 !important;
  border: 1px solid #10b981 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  animation: unlockGlow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes unlockGlow {
  0% { transform: scale(0.97); box-shadow: 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { transform: scale(1.02); box-shadow: 0 0 16px rgba(16, 185, 129, 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 12px rgba(16, 185, 129, 0.25); }
}

/* Featured Spotlight Cards (Gold Standard UX) */
.featured-card {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  border: 1.5px solid #fed7aa !important;
  box-shadow: 0 4px 20px -2px rgba(249, 115, 22, 0.1);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  border-color: #f97316 !important;
  box-shadow: 0 14px 30px -4px rgba(249, 115, 22, 0.2);
}

.featured-glow-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 50%, #f59e0b 100%);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}
