/*
Theme Name:   ChilliCoupons
Theme URI:    https://www.couponspromocode.com/
Description:  Deal-First Marketplace design for coupon sites. Child theme of WP Coupon Mate Pro — flash-deal strip, hero search, trust stats, tear-off coupon cards, chilli-red accent, category directory and SEO-safe category about blocks. Includes a one-click content setup screen (Appearance → ChilliCoupons Setup).
Author:       ChilliCoupons
Version:      1.1.0
Template:     wp-coupon-mate-pro-main
License:      GNU General Public License v2 or later
Text Domain:  chillicoupons
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --cc-navy:    #131b33;   /* deep navy — headers, footer, flap  */
  --cc-navy2:   #1d2947;   /* lighter navy — gradients           */
  --cc-red:     #d92323;   /* chilli red — primary accent        */
  --cc-red-d:   #a81a1a;   /* dark chilli — hover states         */
  --cc-amber:   #ffb703;   /* amber — coupon code peek           */
  --cc-green:   #0d9f6e;   /* green — verified badges            */
  --cc-bg:      #f6f7fb;   /* page background                    */
  --cc-line:    #e7e9f0;   /* card borders                       */
  --cc-ink:     #1a2138;   /* body ink on light backgrounds      */
}

body { background: var(--cc-bg); }

/* ============================================================
   2. HEADER — navy bar, white logo chip, light menu
   ============================================================ */
.site-header,
.site-header .primary-header,
.primary-header {
  background: var(--cc-navy) !important;
  border-bottom: none;
}
.site-header .container { position: relative; }

.site-header .site-branding img,
.site-header .custom-logo {
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}

/* menu links on navy */
.site-header .primary-menu > li > a,
.site-header .main-navigation a,
.primary-header .menu a {
  color: #eef1f8 !important;
  font-weight: 600;
}
.site-header .primary-menu > li > a:hover,
.primary-header .menu a:hover { color: var(--cc-amber) !important; }

/* header search */
.site-header .search-field,
.primary-header input[type="search"] {
  border-radius: 10px;
  border: none;
}
.site-header .search-submit,
.primary-header .search-submit {
  background: var(--cc-red);
  border-radius: 10px;
}

/* site title / tagline on navy (fallback before JS logo swap) */
.site-header .site-title,
.site-header .site-title a { color: #ffffff !important; }
.site-header .site-description { display: none !important; }

/* ChilliCoupons text logo (injected) */
.cc-textlogo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff !important;
  text-decoration: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.cc-textlogo { display: inline-flex; align-items: center; gap: 0; }
.cc-textlogo span { color: #ffffff; }
.cc-textlogo .cc-logo-ico {
  width: 26px !important;
  height: 26px !important;
  margin-right: 7px;
  flex: none;
}
.cc-textlogo:hover { opacity: .92; }

/* Submit-coupon CTA in the nav (injected) */
.cc-nav-cta {
  display: inline-block;
  background: var(--cc-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: .15s;
}
.cc-nav-cta:hover { background: var(--cc-red-d); }

/* ============================================================
   3. FLASH-DEAL STRIP (top of homepage, injected)
   ============================================================ */
.cc-strip {
  background: linear-gradient(90deg, var(--cc-red) 0%, var(--cc-red-d) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 9px 42px 9px 14px;
  position: relative;
  z-index: 60;
}
.cc-strip b { color: var(--cc-amber); font-weight: 800; }
.cc-strip .cc-strip-count {
  display: inline-block;
  background: rgba(0,0,0,.25);
  border-radius: 7px;
  padding: 2px 9px;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.cc-strip .cc-strip-x {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: 0;
  color: #fff; opacity: .8;
  font-size: 17px; line-height: 1;
  cursor: pointer; padding: 4px 8px;
}
.cc-strip .cc-strip-x:hover { opacity: 1; }

/* ============================================================
   4. HERO — navy gradient with search (homepage, injected)
   ============================================================ */
.cc-hero {
  background: linear-gradient(135deg, var(--cc-navy) 0%, var(--cc-navy2) 60%, #26355c 100%);
  color: #fff;
  text-align: center;
  padding: 46px 20px 78px;
}
.cc-hero h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
.cc-hero h1 em { font-style: normal; color: var(--cc-amber); }
.cc-hero p { color: #c3cade; font-size: 16px; margin: 0 0 22px; }
.cc-hero form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.cc-hero input[type="text"],
.cc-hero input[type="search"] {
  flex: 1; border: 0; outline: none;
  padding: 10px 18px;
  font-size: 15px;
  border-radius: 999px;
  color: var(--cc-ink);
  background: transparent;
}
.cc-hero button {
  background: var(--cc-red);
  color: #fff; border: 0;
  font-weight: 800; font-size: 14px;
  padding: 11px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: .15s;
}
.cc-hero button:hover { background: var(--cc-red-d); }

/* trending chips under the search bar */
.cc-chips { margin-top: 18px; }
.cc-chips a {
  display: inline-block;
  color: #e6eaf5 !important;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  padding: 6px 14px;
  margin: 4px 3px;
  text-decoration: none !important;
  transition: .15s;
}
.cc-chips a:hover { background: var(--cc-red); border-color: var(--cc-red); }

/* ============================================================
   5. TRUST STATS — 4 clickable cards pulled up over the hero
   ============================================================ */
.cc-stats-wrap { max-width: 1120px; margin: -44px auto 8px; padding: 0 20px; position: relative; z-index: 5; }
.cc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
a.cc-stat {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(19,27,51,.07);
  transition: .15s;
}
a.cc-stat:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(19,27,51,.13); border-color: var(--cc-red); }
.cc-stat-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 20px;
  flex: none;
}
.cc-stat b   { display: block; color: var(--cc-navy); font-size: 15px; font-weight: 800; line-height: 1.2; }
.cc-stat span{ display: block; color: #7a8199; font-size: 12.5px; }

/* ============================================================
   6. COUPON CARDS — tear-off look
   ============================================================ */
.coupon-item.shadow-box,
.coupon-item {
  background: #fff;
  border: 1px solid var(--cc-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 6px rgba(19,27,51,.05) !important;
  transition: .18s;
  overflow: hidden;
}
.coupon-item:hover {
  box-shadow: 0 14px 30px rgba(19,27,51,.12) !important;
  transform: translateY(-2px);
  border-color: #d9dce8 !important;
}
.coupon-item .coupon-title a,
.coupon-item h3 a { color: var(--cc-navy); font-weight: 700; }
.coupon-item .coupon-title a:hover { color: var(--cc-red); }
.coupon-item .store-thumb {
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: #fff;
}

/* primary buttons — chilli red */
a.coupon-button,
.coupon-button,
button.coupon-button {
  background: var(--cc-red) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  text-shadow: none !important;
  transition: .15s !important;
}
a.coupon-button:hover,
.coupon-button:hover { background: var(--cc-red-d) !important; }

/* GET CODE flap — navy flap, amber dashed code peek */
span.get-code,
.get-code {
  background: var(--cc-navy) !important;
  color: #fff !important;
}
.get-code::after { border-left-color: var(--cc-navy) !important; }
a.coupon-button.coupon-code,
.coupon-button.coupon-code {
  background: #fff8e6 !important;
  border: 2px dashed var(--cc-amber) !important;
  color: var(--cc-navy) !important;
}

/* deal / verified accents */
.coupon-item .coupon-verified,
.coupon-item .verified { color: var(--cc-green); }

/* ============================================================
   7. SECTION HEADINGS + CATEGORY WIDGETS
   ============================================================ */
.widget-title, .section-title, h2.widget-title {
  color: var(--cc-navy);
  font-weight: 800;
}

/* theme's category grid widget — legible chips (no white-on-white) */
.widget_wpc_categories_grid_view a,
.cat-page-with-icon a {
  color: var(--cc-ink) !important;
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-block;
  text-decoration: none !important;
  font-weight: 600;
}
.widget_wpc_categories_grid_view a:hover,
.cat-page-with-icon a:hover { border-color: var(--cc-red); color: var(--cc-red) !important; }

/* homepage "Browse by Category" grid (setup widget) */
.cc-home-cats { margin: 10px 0 30px; }
.cc-home-cats h3 { font-size: 22px; font-weight: 800; color: var(--cc-navy); margin: 0 0 16px; }
.cc-hcat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cc-hcat {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none !important;
  transition: .15s;
  box-shadow: 0 1px 2px rgba(19,27,51,.04);
}
.cc-hcat:hover { border-color: var(--cc-red); box-shadow: 0 6px 16px rgba(19,27,51,.10); transform: translateY(-2px); }
.cc-hcat-ico { font-size: 22px; line-height: 1; }
.cc-hcat-name { font-weight: 700; font-size: 14px; color: var(--cc-navy); }

/* ============================================================
   8. CATEGORIES DIRECTORY PAGE (created by setup)
   ============================================================ */
.cc-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 10px 0 30px; }
.cc-cat-card {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(19,27,51,.05);
}
.cc-cat-card > a.cc-cat-main {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800;
  color: var(--cc-navy) !important;
  text-decoration: none !important;
  margin-bottom: 10px;
}
.cc-cat-card > a.cc-cat-main:hover { color: var(--cc-red) !important; }
.cc-cat-card .cc-cat-blurb { color: #4a5270; font-size: 13.5px; line-height: 1.65; margin: 0; }
.cc-cat-card ul { list-style: none; margin: 0; padding: 0; }
.cc-cat-card ul li { margin: 0; padding: 0; }
.cc-cat-card ul li a {
  display: block;
  color: #4a5270 !important;
  font-size: 13.5px;
  padding: 5px 0 5px 2px;
  text-decoration: none !important;
  border-radius: 6px;
}
.cc-cat-card ul li a:hover { color: var(--cc-red) !important; padding-left: 6px; }

/* hide sidebar on the categories page + category archives for a clean directory */
body.cc-categories-page .sidebar,
body.cc-categories-page #secondary { display: none !important; }
body.cc-categories-page .content-area,
body.cc-categories-page #primary { width: 100% !important; max-width: 100% !important; }

/* ============================================================
   9. CATEGORY ABOUT BLOCK (auto-rendered under archives)
   ============================================================ */
.cc-cat-about {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-left: 4px solid var(--cc-red);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 26px 0;
}
.cc-cat-about h2 { color: var(--cc-navy); font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.cc-cat-about p { color: #4a5270; font-size: 14.5px; line-height: 1.7; margin: 0; }

/* ============================================================
   10. FOOTER — navy, hide theme credit
   ============================================================ */
.site-footer, footer.site-footer, .footer-area {
  background: var(--cc-navy) !important;
  color: #b9c0d4;
}
.site-footer a { color: #dfe4f2 !important; }
.site-footer a:hover { color: var(--cc-amber) !important; }
.site-footer .widget-title { color: #fff; }
.site-footer .copyright,
.site-footer .site-info { color: #8891ab; }

/* theme credit removed (also stripped by JS) */
.site-footer a[href*="couponthemes"],
.site-info a[href*="couponthemes"] { display: none !important; }

/* ============================================================
   11. MOBILE
   ============================================================ */
/* desktop menu on navy header */
.primary-navigation ul.st-menu > li > a,
nav.primary-navigation a {
  color: #eef1f8 !important;
  font-weight: 600;
}
.primary-navigation ul.st-menu > li > a:hover,
nav.primary-navigation a:hover { color: var(--cc-amber) !important; }
nav.primary-navigation a.cc-nav-cta { color: #fff !important; }

/* slide-out mobile menu: dark links on white panel (fixes invisible items) */
.st-menu.st-menu-mobile a { color: var(--cc-ink) !important; }
.st-menu.st-menu-mobile a:hover { color: var(--cc-red) !important; }

@media (max-width: 900px) {
  .cc-stats { grid-template-columns: repeat(2, 1fr); }
  .cc-cats { grid-template-columns: repeat(2, 1fr); }
  .cc-hcat-grid { grid-template-columns: repeat(3, 1fr); }
  .cc-hero h1 { font-size: 26px; }
}
@media (max-width: 600px) {
  .cc-cats { grid-template-columns: 1fr; }
  .cc-hcat-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-hcat { padding: 11px 12px; }
  .cc-hcat-name { font-size: 13px; }
  .cc-hero { padding: 34px 16px 70px; }
  .cc-hero form { border-radius: 14px; flex-direction: column; gap: 6px; }
  .cc-hero button { width: 100%; }
  .cc-strip { font-size: 12.5px; }
}
