/* DealDrop — coupons & daily deals */
:root {
  --ink: #16182b;
  --ink-2: #4a4e69;
  --muted: #8a8ea6;
  --line: #e7e8f0;
  --bg: #f6f6fb;
  --card: #ffffff;
  --brand: #ff4f2e;
  --brand-dark: #e03a1b;
  --sun: #ffd23f;
  --mint: #12b981;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 24, 43, .06), 0 6px 18px rgba(22, 24, 43, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Top strip */
.topstrip {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px 12px;
}
.topstrip a { color: var(--sun); font-weight: 700; text-decoration: none; margin-left: 6px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-mark svg { display: block; }
.logo-text { font-size: 25px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.logo-text b { color: var(--brand); }
.search { flex: 1; display: flex; max-width: 520px; }
.search input {
  flex: 1; min-width: 0;
  border: 2px solid var(--line); border-right: 0;
  border-radius: 999px 0 0 999px;
  padding: 10px 16px; font: inherit; font-size: 15px; background: var(--bg);
}
.search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.search button {
  border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 700;
  padding: 0 20px; border-radius: 0 999px 999px 0; cursor: pointer;
}
.header-links { display: flex; gap: 18px; margin-left: auto; font-size: 14px; font-weight: 600; }
.header-links a { text-decoration: none; color: var(--ink-2); }
.header-links .signin { color: var(--brand); }

.chips { display: flex; gap: 8px; padding-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Ads */
.ad-wrap { text-align: center; }
.ad-label {
  display: block;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.ad-slot { display: inline-block; }
.ad-leaderboard { padding: 14px 0 6px; min-height: 112px; }
.ad-mobile { display: none; padding: 10px 0 4px; min-height: 70px; }
.ad-sidebar { position: sticky; top: 16px; min-height: 620px; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 28px; padding-top: 18px; padding-bottom: 40px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); }

.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(120deg, #ff4f2e 0%, #ff7a3d 55%, #ffb03f 100%);
  color: #fff; border-radius: 20px; padding: 26px 30px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.hero h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: -.02em; }
.lede { margin: 0; max-width: 560px; opacity: .95; }
.hero-stat {
  position: relative; z-index: 1;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 18px;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  transform: rotate(2deg); box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}
.hero-stat b { font-size: 32px; color: var(--brand); }
.hero-stat span { font-size: 12px; color: var(--ink-2); line-height: 1.2; }

.sortbar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 20px 0 14px; font-size: 14px; color: var(--muted); }
.sortbar a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.sortbar a.is-active { color: var(--brand); border-bottom: 2px solid var(--brand); }

/* Deal grid */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.deal {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.deal:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(22, 24, 43, .08), 0 12px 28px rgba(22, 24, 43, .1); }
.deal-top {
  position: relative; height: 112px; display: flex; align-items: center; justify-content: center;
  border-bottom: 2px dashed rgba(22, 24, 43, .12);
}
.deal-emoji { font-size: 52px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12)); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 13px;
  padding: 5px 10px; border-radius: 8px; letter-spacing: .02em;
  box-shadow: 0 3px 0 var(--brand-dark);
}
.deal-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.store { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.verified { color: var(--mint); font-size: 12px; }
.hot { background: var(--sun); color: var(--ink); font-size: 10px; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; letter-spacing: .06em; }
.deal h3 { margin: 4px 0 4px; font-size: 17px; line-height: 1.25; }
.fine { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.meta { margin: auto 0 12px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.timer { color: var(--brand-dark); font-weight: 700; }
.used { color: var(--muted); }

.btn {
  display: flex; align-items: center; justify-content: center;
  height: 42px; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: 15px;
}
.btn-deal { background: var(--ink); color: #fff; }
.btn-deal:hover { background: #2a2d47; }
.btn-code { position: relative; overflow: hidden; background: #fff4f1; border: 2px dashed var(--brand); color: var(--ink); justify-content: flex-end; padding-right: 14px; }
.btn-code .btn-label {
  position: absolute; left: 0; top: 0; bottom: 0; right: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  transition: right .2s ease;
}
.btn-code .peek { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; color: var(--brand-dark); }
.btn-code:hover .btn-label { right: 54px; }

.deal-ad {
  align-items: center; justify-content: center; padding: 12px;
  min-height: 300px;
  background: repeating-linear-gradient(45deg, #fff, #fff 10px, #fafafd 10px, #fafafd 20px);
  border: 1px solid var(--line); box-shadow: none;
}
.deal-ad:hover { transform: none; box-shadow: none; }
.deal-ad .ad-label { color: var(--ink-2); font-weight: 700; }

.load-more {
  display: block; margin: 26px auto 0; width: max-content; padding: 12px 26px;
  border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; text-decoration: none;
}
.load-more:hover { background: var(--ink); color: #fff; }

/* Newsletter */
.newsletter { background: var(--ink); color: #fff; padding: 34px 0; }
.nl-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter h2 { margin: 0 0 4px; font-size: 24px; }
.newsletter p { margin: 0; color: #c6c8db; }
.nl-form { display: flex; gap: 8px; flex: 1; max-width: 440px; }
.nl-form input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 10px; border: 0; font: inherit; }
.nl-form button { background: var(--sun); color: var(--ink); border: 0; border-radius: 10px; padding: 0 20px; font: inherit; font-weight: 800; cursor: pointer; }

/* Footer */
.site-footer { background: #0e0f1d; color: #a3a6bd; font-size: 14px; padding: 36px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer .logo-text { color: #fff; }
.site-footer h4 { color: #fff; margin: 4px 0 10px; font-size: 14px; }
.site-footer a { display: block; text-decoration: none; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.copyright { margin-top: 26px; padding-top: 16px; border-top: 1px solid #23253b; font-size: 12px; }

/* Responsive */
@media (max-width: 960px) {
  .header-links { display: none; }
}
@media (max-width: 760px) {
  .ad-leaderboard, .rail { display: none; }
  .ad-mobile { display: block; }
  .layout { grid-template-columns: 1fr; }
  .header-row { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .hero h1 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .deal-grid { grid-template-columns: 1fr; }
}
