/* ===========================
   NOVATECHDEALS.COM — style.css
   =========================== */

/* ── Variables ── */
:root {
  --navy: #0a1628;
  --navy-mid: #132240;
  --blue: #1756f3;
  --blue-dark: #0e3fb5;
  --blue-light: #e8efff;
  --accent: #ff3c3c;
  --accent-soft: #fff0f0;
  --green: #0db87f;
  --green-soft: #e6faf4;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --text: #111827;
  --text-mid: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --bg: #f8f9fc;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(10,22,40,.07);
  --shadow-md: 0 8px 32px rgba(10,22,40,.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; }
ul { list-style: none; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER ── */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 100; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}
.logo-nova { color: var(--white); }
.logo-tech { color: var(--blue); }
.logo-deals { color: var(--accent); }
.logo-footer .logo-nova { color: var(--text-mid); }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 18px; }

.search-bar-wrap { background: var(--navy-mid); padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.search-form { display: flex; gap: 0; max-width: 720px; }
.search-form input {
  flex: 1;
  padding: 11px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  background: white;
  color: var(--text);
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  padding: 11px 22px;
  background: var(--blue);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.search-form button:hover { background: var(--blue-dark); }

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: white;
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(23,86,243,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; }

.hero-eyebrow { font-size: 13px; font-weight: 500; color: var(--blue); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }

.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: white; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--blue); }

.hero-sub { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 520px; margin-bottom: 24px; }

.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges span { font-size: 13px; color: rgba(255,255,255,0.6); }

.hero-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px 28px;
  text-align: center;
  min-width: 130px;
}
.stat-num { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; color: white; }
.stat-label { display: block; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ── TICKER ── */
.ticker-wrap {
  background: var(--blue);
  color: white;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: ticker 40s linear infinite;
}
.ticker-track span { font-size: 13px; font-weight: 500; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── DEALS SECTION ── */
.deals-section { padding: 48px 0; }

.section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.section-header h2 { font-size: 26px; font-weight: 800; }

.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  background: white;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
}
.cat-btn:hover { border-color: var(--blue); color: var(--blue); }
.cat-btn.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ── DEAL CARDS ── */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.deal-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.deal-card[data-cat].hidden { display: none; }

.deal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 1;
}
.deal-badge.hot { background: var(--accent); color: white; }
.deal-badge.new { background: var(--navy); color: white; }
.deal-badge.price { background: var(--amber-soft); color: #92400e; }

.deal-img {
  background: var(--bg);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  border-bottom: 1px solid var(--border);
}

.deal-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.deal-store { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.deal-name { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.45; margin-bottom: 12px; flex: 1; }

.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.price { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); }
.was { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.save-pill { font-size: 12px; font-weight: 600; background: var(--green-soft); color: #065f46; padding: 3px 8px; border-radius: 100px; }

.deal-expires { font-size: 12px; color: var(--accent); margin-bottom: 14px; }
.deal-expires strong { font-weight: 600; }

.deal-btn {
  display: block;
  text-align: center;
  background: var(--blue);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 11px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
  margin-top: auto;
}
.deal-btn:hover { background: var(--blue-dark); text-decoration: none; }

.load-more-wrap { text-align: center; margin-top: 36px; }
.load-more-btn {
  padding: 13px 36px;
  background: white;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
}
.load-more-btn:hover { background: var(--navy); color: white; }

/* ── HOW IT WORKS ── */
.how-it-works { background: white; padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title-center { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 40px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; padding: 0 16px; }
.step-icon { font-size: 36px; margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--text-mid); line-height: 1.65; }

/* ── SEO BLOCK ── */
.seo-block { padding: 64px 0; }
.seo-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }
.seo-text h2 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.seo-text h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.seo-text p { font-size: 15px; color: var(--text-mid); line-height: 1.75; margin-bottom: 16px; }
.seo-text a { color: var(--blue); font-weight: 500; }
.seo-links h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; margin-top: 24px; }
.seo-links h3:first-child { margin-top: 0; }
.seo-links ul { display: flex; flex-direction: column; gap: 8px; }
.seo-links li a { font-size: 14px; color: var(--blue); }
.seo-links li a:hover { text-decoration: underline; }

/* ── NEWSLETTER ── */
.newsletter { background: var(--navy); color: white; padding: 52px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.newsletter p { font-size: 15px; color: rgba(255,255,255,0.65); }
.newsletter-form { display: flex; gap: 0; min-width: 340px; flex: 1; max-width: 460px; }
.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border: none;
  font-size: 15px;
  font-family: var(--font-body);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
  color: var(--text);
}
.newsletter-form button {
  padding: 13px 22px;
  background: var(--blue);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.newsletter-form button:hover { background: var(--blue-dark); }

/* ── FOOTER ── */
.site-footer { background: #f1f3f8; border-top: 1px solid var(--border); padding: 52px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; margin-bottom: 40px; }
.footer-brand .logo { display: inline-block; font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--text-mid); max-width: 360px; line-height: 1.6; margin-bottom: 10px; }
.affiliate-disclosure { font-size: 12px !important; color: var(--text-muted) !important; line-height: 1.5 !important; }

.footer-nav { display: flex; gap: 48px; }
.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.footer-nav a { font-size: 14px; color: var(--text-mid); text-decoration: none; }
.footer-nav a:hover { color: var(--blue); }

.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; }
.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; justify-content: flex-start; }
  .stat-card { min-width: 110px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .seo-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open { display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-mid); padding: 16px; z-index: 99; }
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .deals-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { min-width: unset; width: 100%; }
  .footer-inner { gap: 32px; }
}

@media (max-width: 480px) {
  .deals-grid { grid-template-columns: 1fr; }
}
