/*
Theme Name: CouponScout Affiliate
Theme URI: https://example.com/
Author: OpenAI
Description: A fast, responsive WordPress affiliate coupon theme for coupon and deals publishers. Includes coupon CPT, stores, categories, affiliate links, responsive layouts, search, newsletter CTA and modern deal cards.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: couponscout
Tags: coupons, affiliate, deals, e-commerce, blog, responsive, custom-logo
*/

:root{
  --cs-primary:#1677ff;
  --cs-primary-dark:#0d5ed7;
  --cs-accent:#ff5b3d;
  --cs-green:#17a673;
  --cs-ink:#172033;
  --cs-muted:#667085;
  --cs-bg:#f6f8fb;
  --cs-card:#fff;
  --cs-border:#e7eaf0;
  --cs-radius:16px;
  --cs-shadow:0 10px 30px rgba(16,24,40,.07);
  --cs-max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cs-bg);color:var(--cs-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6}
a{color:var(--cs-primary);text-decoration:none}
a:hover{color:var(--cs-primary-dark)}
img{max-width:100%;height:auto}
.container{width:min(calc(100% - 32px),var(--cs-max));margin:auto}
.site-header{background:#fff;border-bottom:1px solid var(--cs-border);position:sticky;top:0;z-index:50}
.header-row{min-height:72px;display:flex;align-items:center;gap:28px}
.site-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:22px;color:var(--cs-ink)}
.site-brand img{max-height:42px;width:auto}
.brand-mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,var(--cs-primary),#7c5cff);display:grid;place-items:center;color:#fff;font-weight:900}
.main-nav{display:flex;align-items:center;gap:22px;margin-left:auto}
.main-nav a{color:#344054;font-size:14px;font-weight:650}
.header-search{position:relative;width:250px}
.header-search input{width:100%;height:42px;border:1px solid var(--cs-border);border-radius:12px;padding:0 14px 0 40px;outline:0;background:#fafbfc}
.header-search svg{position:absolute;left:13px;top:12px}
.menu-toggle{display:none;border:0;background:transparent;font-size:26px}
.hero{padding:64px 0 48px;background:radial-gradient(circle at 15% 20%,#e6f0ff 0,#f7faff 38%,#fff 75%)}
.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:45px;align-items:center}
.eyebrow{display:inline-flex;padding:7px 12px;border-radius:999px;background:#e9f2ff;color:var(--cs-primary);font-weight:750;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
.hero h1{font-size:clamp(38px,5vw,62px);line-height:1.05;margin:16px 0}
.hero p{font-size:18px;color:var(--cs-muted);max-width:650px}
.hero-search{display:flex;gap:10px;margin-top:26px}
.hero-search input{flex:1;min-width:0;height:54px;border:1px solid #d9deea;border-radius:13px;padding:0 16px;font-size:15px;background:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:12px 18px;font-weight:750;cursor:pointer}
.btn-primary{background:var(--cs-primary);color:#fff}
.btn-primary:hover{background:var(--cs-primary-dark);color:#fff}
.btn-outline{background:#fff;border:1px solid var(--cs-border);color:var(--cs-ink)}
.hero-art{background:#fff;border:1px solid var(--cs-border);border-radius:24px;padding:24px;box-shadow:var(--cs-shadow)}
.hero-art .deal-preview{border:1px dashed #b9c3d6;border-radius:18px;padding:20px}
.ticket{display:flex;align-items:center;gap:15px}
.ticket-logo{width:58px;height:58px;border-radius:14px;background:#f0f4fa;display:grid;place-items:center;font-weight:900}
.ticket strong{font-size:18px}
.ticket small{display:block;color:var(--cs-muted)}
.deal-pill{margin-left:auto;background:#e8fff6;color:#0e8b60;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800}
.section{padding:48px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.section-head h2{margin:0;font-size:30px}
.section-head p{margin:5px 0 0;color:var(--cs-muted)}
.grid{display:grid;gap:18px}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--cs-card);border:1px solid var(--cs-border);border-radius:var(--cs-radius);box-shadow:0 4px 18px rgba(16,24,40,.035)}
.store-card{padding:22px;transition:.2s}
.store-card:hover{transform:translateY(-3px);box-shadow:var(--cs-shadow)}
.store-logo{width:60px;height:60px;border-radius:14px;object-fit:contain;border:1px solid var(--cs-border);background:#fff;padding:7px}
.store-card h3{font-size:17px;margin:13px 0 3px}
.store-card p{color:var(--cs-muted);font-size:13px;margin:0 0 13px}
.coupon-card{padding:20px;position:relative}
.coupon-top{display:flex;gap:13px;align-items:center}
.coupon-logo{width:52px;height:52px;object-fit:contain;border-radius:12px;border:1px solid var(--cs-border);padding:5px;background:#fff}
.coupon-card h3{margin:0;font-size:16px;line-height:1.3}
.coupon-meta{color:var(--cs-muted);font-size:12px;margin-top:3px}
.coupon-offer{font-size:22px;font-weight:850;margin:16px 0 4px}
.coupon-desc{font-size:13px;color:var(--cs-muted);margin:0 0 16px}
.coupon-actions{display:flex;gap:8px}
.coupon-actions .btn{flex:1}
.code-chip{background:#fff3ef;color:#c93d27;border:1px dashed #ff9a88;padding:10px 12px;border-radius:10px;font-weight:800;font-size:12px}
.badge{position:absolute;right:16px;top:16px;background:#fff3d6;color:#a86d00;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800}
.categories{display:flex;flex-wrap:wrap;gap:10px}
.category-pill{background:#fff;border:1px solid var(--cs-border);padding:10px 14px;border-radius:999px;color:#344054;font-size:13px;font-weight:650}
.category-pill:hover{border-color:#a8c7ff;color:var(--cs-primary)}
.newsletter{background:linear-gradient(135deg,#102a56,#1d4d9c);color:#fff;border-radius:22px;padding:38px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.newsletter h2{margin:0 0 6px;font-size:28px}
.newsletter p{margin:0;color:#d7e4fb}
.newsletter-form{display:flex;gap:8px;min-width:380px}
.newsletter-form input{flex:1;border:0;border-radius:11px;padding:13px 14px}
.site-footer{margin-top:50px;background:#111827;color:#cbd5e1;padding:48px 0 25px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:30px}
.site-footer h3,.site-footer h4{color:#fff;margin-top:0}
.site-footer a{color:#cbd5e1}
.footer-links{display:grid;gap:8px;font-size:13px}
.footer-bottom{border-top:1px solid #263244;margin-top:30px;padding-top:18px;font-size:12px;display:flex;justify-content:space-between;gap:15px}
.archive-title{padding:42px 0 22px}
.archive-title h1{margin:0;font-size:38px}
.breadcrumbs{font-size:12px;color:var(--cs-muted);margin-bottom:10px}
.pagination{display:flex;gap:8px;justify-content:center;margin-top:30px}
.pagination a,.pagination span{background:#fff;border:1px solid var(--cs-border);padding:9px 13px;border-radius:9px}
.single-wrap{padding:48px 0}
.single-main{max-width:820px;margin:auto}
.single-main .entry-title{font-size:46px;line-height:1.1;margin:8px 0 14px}
.entry-meta{color:var(--cs-muted);font-size:13px}
.content-box{background:#fff;border:1px solid var(--cs-border);border-radius:18px;padding:28px;margin-top:25px}
.notice{padding:13px 15px;border-radius:11px;background:#eef6ff;color:#275d9e;font-size:13px}
.empty-state{text-align:center;padding:55px 20px}
@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
  .header-search{display:none}
}
@media(max-width:720px){
  .main-nav{display:none}
  .menu-toggle{display:block;margin-left:auto}
  .grid-4,.grid-3,.grid-2{grid-template-columns:1fr}
  .hero{padding-top:40px}
  .newsletter{display:block}
  .newsletter-form{min-width:0;margin-top:20px}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{display:block}
  .single-main .entry-title{font-size:34px}
}
