/* Custom styles complementing Tailwind CSS */
@layer base {
  html {
    scroll-behavior: smooth;
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
}

/* Custom Coupon Ticket Notch Effect */
.coupon-card {
  position: relative;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.coupon-card:hover {
  transform: translateY(-3px);
}

.coupon-divider {
  position: relative;
  border-top: 2px dashed #E2E8F0;
}

.coupon-divider::before,
.coupon-divider::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  background-color: #F8FAFC;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
}

.coupon-divider::before {
  left: -25px;
}

.coupon-divider::after {
  right: -25px;
}

/* Subtle dot pattern for hero */
.hero-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Review card image hover zoom */
.review-card img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.review-card:hover img {
  transform: scale(1.05);
}

/* Toast notification animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.toast-enter {
  animation: slideInUp 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Custom scrollbar for comparison table on mobile */
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Modal backdrop transition */
.modal-open {
  overflow: hidden;
}

/* Active category pill */
.cat-pill-active {
  background-color: #0F294A !important;
  color: #FFFFFF !important;
  border-color: #0F294A !important;
  box-shadow: 0 4px 12px rgba(15, 41, 74, 0.18);
}

/* Pulse highlight when clicking "Xem deal hot" */
@keyframes highlightSection {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.35);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

.section-highlight {
  animation: highlightSection 1.2s ease-out;
}

/* Smooth horizontal swipe for Quick Comparison Table on mobile */
.compare-scroll-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

/* Best Choice column frame using border-separate */
.best-choice-col {
  background-color: #FFF7ED;
  border-left: 2px solid #F97316;
  border-right: 2px solid #F97316;
}

.best-choice-top {
  border-top: 2px solid #F97316;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.best-choice-bottom {
  border-bottom: 2px solid #F97316;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

