/* Custom styles for SmartDealz Hub */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --amazon-orange: #FF9900;
  --flipkart-blue: #2874F0;
  --meesho-magenta: #9E1B55;
}

body {
  font-family: var(--font-sans);
  background-color: #F8FAFC;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Product Card animations */
.deal-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
}

/* Store Badge Styles */
.store-badge-amazon {
  background-color: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
}

.store-badge-flipkart {
  background-color: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
}

.store-badge-meesho {
  background-color: #FDF2F8;
  color: #9D174D;
  border: 1px solid #FCE7F3;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Pulse badge for live deals */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-indicator {
  animation: pulse-ring 2s infinite ease-in-out;
}

/* Ad Unit Containers */
.adsense-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    #F8FAFC,
    #F8FAFC 10px,
    #F1F5F9 10px,
    #F1F5F9 20px
  );
  border: 1px dashed #CBD5E1;
}

/* Line clamp helpers */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile Optimization & Touch Enhancements */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal overflow on mobile devices */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .deal-card {
    border-radius: 1.25rem;
  }
  .store-filter-btn {
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }
  .category-chip {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
  }
}
