/* ============================================
   SAVEHUB - SIMPLE PREMIUM DESIGN
   Clean, Beautiful, Easy to Customize
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: #F8FAFC;
  color: #0F172A;
  line-height: 1.6;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #0F172A;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.logo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 11px;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.search-box {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 24px 14px 52px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  pointer-events: none;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
}

.nav-btn {
  padding: 12px 24px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #0F172A;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  border-color: #6366F1;
  color: #6366F1;
  transform: translateY(-2px);
}

.nav-btn.primary {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 180px 2rem 100px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.2) 0px, transparent 50%),
              radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.15) 0px, transparent 50%);
  opacity: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #EF4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   FILTERS
   ============================================ */
.filters {
  background: white;
  padding: 2rem 0;
  border-bottom: 1px solid #E2E8F0;
}

.filter-chips {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.chip {
  padding: 10px 20px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.chip:hover, .chip.active {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-color: transparent;
  color: white;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0F172A;
}

.clear-filter {
  padding: 12px 24px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  text-decoration: none;
  transition: all 0.3s ease;
}

.clear-filter:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: white;
}

.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

.coupon-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

.coupon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.coupon-card:hover::before {
  transform: scaleX(1);
}

.coupon-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.coupon-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E2E8F0;
}

.store-badge {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
}

.discount-badge {
  padding: 12px 20px;
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  color: white;
  font-size: 20px;
  font-weight: 700;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.coupon-body {
  padding: 1.5rem;
}

.coupon-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.75rem;
}

.coupon-description {
  font-size: 15px;
  color: #64748B;
  margin-bottom: 1rem;
}

.coupon-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #E2E8F0;
  font-size: 13px;
  color: #64748B;
}

.coupon-footer {
  padding: 1rem 1.5rem;
  background: #F8FAFC;
}

.reveal-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
  text-decoration: none;
  display: block;
  text-align: center;
}

.reveal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.code-display {
  display: none;
  padding: 1.5rem;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
  border: 2px dashed #F59E0B;
  border-radius: 1rem;
  text-align: center;
}

.code-display.active {
  display: block;
}

.code-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.code-value {
  font-family: 'Courier New', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.copy-btn {
  padding: 10px 24px;
  background: #F59E0B;
  color: white;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #FBBF24;
  transform: scale(1.05);
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.no-results-icon {
  font-size: 64px;
  margin-bottom: 1.5rem;
}

.no-results h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.no-results p {
  font-size: 16px;
  color: #64748B;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: white;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.2) 0px, transparent 50%);
}

.newsletter-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-content {
  text-align: center;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 16px;
  color: white;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #F59E0B;
}

.newsletter-btn {
  padding: 18px 36px;
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.newsletter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.message {
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 600;
  display: none;
}

.message.success {
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #10B981;
  color: white;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0F172A;
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #F59E0B;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .hero {
    padding: 140px 1rem 60px;
  }
  
  .coupons-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-input,
  .newsletter-btn {
    width: 100%;
  }
}

/* Compliance Disclaimer Section */
.disclaimer-section { background: #FEF3C7; padding: 2rem 0; border-top: 2px solid #F59E0B; }
.disclaimer-box { background: white; padding: 1.5rem 2rem; border-radius: 1rem; border: 2px solid #F59E0B; }
.disclaimer-box p { font-size: 13px; line-height: 1.7; color: #64748B; margin: 0; }
.disclaimer-box strong { color: #0F172A; font-weight: 700; }
.disclaimer-box a { color: #F59E0B; text-decoration: underline; }
