/*
Theme Name: Ann's Daily Deals
Theme URI: https://annsdailydeals.com
Author: Ann
Description: UK daily-deals theme for the AnnsDailyDeals TikTok creator. Deal custom post type, coupon codes, TikTok embeds, Product/FAQ/Video schema, affiliate-ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anns-daily-deals
*/

:root {
  --cream: #FBF8F3;
  --ink: #2B2733;
  --accent: #A22FB8;
  --teal: #7EE0D3;
  --teal-dark: #0E8B7B;
  --body-grey: #57505F;
  --muted: #7A7386;
  --faint: #9A93A5;
  --surface: #F1EDE6;
  --surface-2: #E7E1D7;
  --expiry-red: #C2483B;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Karla', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.add-wrap { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* ---------- Marquee ---------- */
@keyframes add-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.add-marquee { background: var(--ink); color: var(--cream); overflow: hidden; padding: 8px 0; white-space: nowrap; }
.add-marquee__inner {
  display: inline-flex; gap: 48px; animation: add-marquee 22s linear infinite;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Header ---------- */
.add-header {
  display: flex; align-items: center; gap: 16px; padding: 16px 40px;
  border-bottom: 2px solid var(--ink); background: var(--cream);
  position: sticky; top: 0; z-index: 20;
}
.add-header__avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; flex-shrink: 0; }
.add-header__brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.add-header__nav { display: flex; gap: 28px; margin-left: auto; font-weight: 600; font-size: 15px; }
.add-header__nav a { color: var(--ink); text-decoration: none; }
.add-header__nav a:hover { color: var(--accent); }
.add-btn-tiktok {
  margin-left: 12px; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); white-space: nowrap;
  transition: box-shadow 0.15s;
}
.add-btn-tiktok:hover { box-shadow: 1px 1px 0 var(--ink); }

/* ---------- Hero ---------- */
.add-hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 64px 40px 56px; max-width: 1200px; margin: 0 auto;
}
.add-hero__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.add-hero__title {
  font-family: var(--font-display); font-weight: 800; font-size: 58px; line-height: 1.02;
  letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: pretty;
}
.add-highlight { background: linear-gradient(transparent 62%, var(--teal) 62%); padding: 0 2px; }
.add-hero__body { font-size: 18px; line-height: 1.55; color: var(--body-grey); margin: 0 0 26px; max-width: 480px; }
.add-hero__actions { display: flex; gap: 14px; }
.add-btn-primary {
  background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 700;
  font-size: 16px; padding: 14px 26px; border-radius: 999px; display: inline-block;
}
.add-btn-secondary {
  background: transparent; color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 16px; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--ink); display: inline-block;
}

/* Deal of the day */
.add-dotd { position: relative; }
.add-dotd__badge {
  position: absolute; top: -16px; left: -16px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 8px; border: 2px solid var(--ink); z-index: 2;
  transform: rotate(-3deg); white-space: nowrap;
}
.add-dotd__card { background: #fff; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.add-dotd__image { height: 220px; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); display: grid; place-items: center; overflow: hidden; }
.add-dotd__image img { width: 100%; height: 220px; object-fit: cover; display: block; }
.add-dotd__body { padding: 20px 22px 22px; }
.add-dotd__chips { display: flex; gap: 8px; margin-bottom: 10px; }
.add-chip-store { font-size: 12px; font-weight: 700; background: var(--surface); padding: 4px 10px; border-radius: 999px; }
.add-chip-discount { font-size: 12px; font-weight: 700; background: var(--teal); padding: 4px 10px; border-radius: 999px; }
.add-dotd__title { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 0 0 8px; }
.add-dotd__prices { display: flex; align-items: baseline; gap: 10px; }
.add-dotd__price { font-weight: 800; font-size: 26px; color: var(--accent); }
.add-dotd__was { font-size: 16px; color: var(--faint); text-decoration: line-through; }

/* ---------- Section headings ---------- */
.add-section { max-width: 1200px; margin: 0 auto; padding: 24px 40px 64px; }
.add-section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.add-h2 { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; margin: 0; }
.add-section__count { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- Deal cards grid ---------- */
.add-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.add-card {
  background: #fff; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s;
}
.add-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.add-card__image {
  height: 160px; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.add-card__image img { width: 100%; height: 160px; object-fit: cover; display: block; }
.add-card__image--sm, .add-card__image--sm img { height: 140px; }
.add-card__badge {
  position: absolute; top: 10px; right: 10px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 8px;
}
.add-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.add-card__meta { display: flex; gap: 8px; align-items: center; }
.add-card__store { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: var(--surface); padding: 3px 9px; border-radius: 999px; }
.add-card__video-tag { font-size: 11px; font-weight: 700; color: var(--teal-dark); display: inline-flex; align-items: center; gap: 4px; }
.add-card__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.25; margin: 0; text-wrap: pretty; }
.add-card__title a { color: var(--ink); text-decoration: none; }
.add-card__title--sm { font-size: 16px; }
.add-card__prices { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.add-card__price { font-weight: 800; font-size: 20px; color: var(--accent); }
.add-card__price--sm { font-size: 19px; }
.add-card__was { font-size: 14px; color: var(--faint); text-decoration: line-through; }
.add-card__expiry { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--expiry-red); }
.add-card__expired { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--faint); }
.add-btn-deal {
  display: block; text-align: center; background: var(--ink); color: var(--cream);
  text-decoration: none; font-weight: 700; font-size: 14px; padding: 11px 0;
  border-radius: 999px; transition: background 0.15s;
}
.add-btn-deal:hover { background: var(--accent); color: #fff; }
.add-disclosure { font-size: 12px; color: var(--faint); margin: 20px 0 0; }

/* ---------- TikTok strip ---------- */
.add-videos { background: var(--ink); padding: 56px 40px; }
.add-videos__inner { max-width: 1200px; margin: 0 auto; }
.add-videos__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.add-videos__head .add-h2 { color: var(--cream); }
.add-videos__handle { margin-left: auto; color: var(--teal); font-weight: 700; font-size: 15px; text-decoration: none; }
.add-videos__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.add-video-card {
  aspect-ratio: 9 / 16; border-radius: 16px; border: 2px solid var(--body-grey);
  background: repeating-linear-gradient(45deg, #3A3544, #3A3544 12px, #332E3D 12px, #332E3D 24px);
  display: grid; place-items: center; position: relative; cursor: pointer; overflow: hidden;
  transition: border-color 0.15s; padding: 0;
}
.add-video-card:hover { border-color: var(--teal); }
.add-video-card__caption { position: absolute; bottom: 14px; left: 14px; right: 14px; color: var(--cream); font-size: 13px; font-weight: 600; line-height: 1.3; text-align: left; }
.add-video-card__play {
  width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 20px; border: 2px solid var(--cream);
}
.add-video-card iframe, .add-video-card blockquote { width: 100% !important; height: 100% !important; margin: 0 !important; min-width: 0 !important; }
.add-video-card.is-loaded { background: #000; display: block; cursor: default; }

/* ---------- Coupons ---------- */
.add-coupons { max-width: 1200px; margin: 0 auto; padding: 64px 40px; }
.add-coupons__sub { font-size: 16px; color: var(--body-grey); margin: 0 0 24px; }
.add-coupons__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.add-coupon {
  text-align: left; background: #fff; border: 2px dashed var(--ink); border-radius: 14px;
  padding: 18px 20px; cursor: pointer; font-family: var(--font-body);
  display: flex; flex-direction: column; gap: 6px; transition: background 0.15s;
}
.add-coupon:hover { background: #F5FBFA; border-style: solid; }
.add-coupon__store { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.add-coupon__code { font-family: monospace; font-weight: 700; font-size: 20px; color: var(--accent); }
.add-coupon__desc { font-size: 14px; font-weight: 600; color: var(--ink); }
.add-coupon__hint { font-size: 12px; font-weight: 700; color: var(--teal-dark); }
.add-coupon__shop { display: inline-block; margin-top: 8px; align-self: flex-start; background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 999px; transition: background 0.15s; }
.add-coupon__shop:hover { background: var(--accent); color: #fff; }

/* ---------- Newsletter ---------- */
.add-newsletter { max-width: 760px; margin: 0 auto 72px; padding: 0 40px; }
.add-newsletter__card {
  background: var(--teal); border: 2px solid var(--ink); border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink); padding: 36px 40px; text-align: center;
}
.add-newsletter__title { font-family: var(--font-display); font-weight: 800; font-size: 28px; margin: 0 0 8px; }
.add-newsletter__sub { font-size: 16px; margin: 0 0 20px; color: var(--ink); }
.add-newsletter__form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.add-newsletter__input {
  flex: 1; padding: 13px 18px; border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; background: var(--cream); min-width: 0;
}
.add-newsletter__btn {
  background: var(--ink); color: var(--cream); border: none; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; cursor: pointer; font-family: var(--font-body);
}

/* ---------- Footer ---------- */
.add-footer { border-top: 2px solid var(--ink); padding: 40px; background: var(--cream); }
.add-footer__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.add-footer__brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.add-footer__avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.add-footer__brand { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.add-footer__about { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 460px; }
.add-footer__cols { display: flex; gap: 56px; font-size: 14px; }
.add-footer__col { display: flex; flex-direction: column; gap: 8px; }
.add-footer__col-title { font-weight: 700; margin-bottom: 4px; }
.add-footer__col a { color: var(--body-grey); text-decoration: none; }
.add-footer__col a:hover { color: var(--accent); }
.add-footer__copy { max-width: 1200px; margin: 24px auto 0; font-size: 12px; color: var(--faint); }
.add-footer--slim { padding: 32px 40px; }
.add-footer__slim-row { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.add-footer__slim-copy { font-size: 12px; color: var(--faint); }

/* ---------- Single deal ---------- */
.add-single { max-width: 1100px; margin: 0 auto; padding: 32px 40px 64px; }
.add-breadcrumb { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.add-breadcrumb a { color: var(--muted); text-decoration: none; }
.add-breadcrumb a:hover { color: var(--accent); }
.add-breadcrumb__current { color: var(--ink); }
.add-single__titleblock { max-width: 780px; }
.add-single__chips { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.add-single__discount { background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 8px; }
.add-single__store { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: var(--surface); padding: 4px 11px; border-radius: 999px; }
.add-single__updated { font-size: 13px; font-weight: 600; color: var(--muted); }
.add-single__title { font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; text-wrap: pretty; }
.add-single__intro { font-size: 18px; line-height: 1.55; color: var(--body-grey); margin: 0 0 24px; }
.add-single__product { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; margin-bottom: 40px; }
.add-single__imagebox { border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; background: #fff; }
.add-single__image {
  height: 380px; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px);
  display: grid; place-items: center;
}
.add-single__image img { width: 100%; height: 380px; object-fit: cover; display: block; }

.add-buybox {
  background: #fff; border: 2px solid var(--ink); border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink); padding: 26px 28px; position: sticky; top: 96px;
}
.add-buybox__prices { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.add-buybox__price { font-weight: 800; font-size: 36px; color: var(--accent); }
.add-buybox__was { font-size: 19px; color: var(--faint); text-decoration: line-through; }
.add-buybox__save { font-size: 14px; font-weight: 700; color: var(--teal-dark); margin-bottom: 16px; }
.add-buybox__expiry { font-size: 13px; font-weight: 700; color: var(--expiry-red); background: #FAEEEC; border-radius: 8px; padding: 8px 12px; margin-bottom: 16px; }
.add-buybox__expired { font-size: 13px; font-weight: 700; color: var(--faint); background: var(--surface); border-radius: 8px; padding: 8px 12px; margin-bottom: 16px; }
.add-buybox__btn {
  display: block; text-align: center; background: var(--ink); color: var(--cream);
  text-decoration: none; font-weight: 700; font-size: 17px; padding: 15px 0;
  border-radius: 999px; margin-bottom: 12px; transition: background 0.15s;
}
.add-buybox__btn:hover { background: var(--accent); color: #fff; }
.add-buybox__coupon {
  width: 100%; background: #fff; border: 2px dashed var(--ink); border-radius: 12px;
  padding: 12px 16px; cursor: pointer; font-family: var(--font-body);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: background 0.15s;
}
.add-buybox__coupon:hover { background: #F5FBFA; border-style: solid; }
.add-buybox__coupon-code { font-family: monospace; font-weight: 700; font-size: 17px; color: var(--accent); }
.add-buybox__coupon-hint { font-size: 12px; font-weight: 700; color: var(--muted); }
.add-buybox__disclosure { font-size: 11px; color: var(--faint); line-height: 1.5; margin: 14px 0 0; }
.add-buybox__extra { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--ink); background: #F5FBFA; border: 2px dashed var(--ink); border-radius: 12px; padding: 12px 14px; line-height: 1.45; }

.add-article { max-width: 720px; }
.add-article .add-h2--sm, .add-h2--sm { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 12px; }
.add-article p { font-size: 17px; line-height: 1.65; color: var(--body-grey); margin: 0 0 16px; }
.add-article ul, .add-article ol { font-size: 17px; line-height: 1.65; color: var(--body-grey); }

.add-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 32px; }
.add-proscons__card { background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 20px 22px; }
.add-proscons__title { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.add-proscons__title--pros { color: var(--teal-dark); }
.add-proscons__title--cons { color: var(--expiry-red); }
.add-proscons__card ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.7; color: var(--body-grey); }

.add-tiktok-single { width: 320px; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; border: 2px solid var(--ink); overflow: hidden; margin-bottom: 36px; }
.add-tiktok-single .add-video-card { width: 100%; height: 100%; aspect-ratio: auto; border: none; border-radius: 0; }

.add-faq { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.add-faq details { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 16px 20px; }
.add-faq summary { font-weight: 700; font-size: 16px; cursor: pointer; }
.add-faq details p { font-size: 15px; line-height: 1.6; color: var(--body-grey); margin: 10px 0 0; }

.add-author { display: flex; gap: 18px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 20px 24px; margin-bottom: 8px; }
.add-author__avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; flex-shrink: 0; }
.add-author__name { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.add-author__bio { font-size: 14px; line-height: 1.55; color: var(--body-grey); margin: 4px 0 0; }
.add-author__bio a { color: var(--accent); font-weight: 700; }

.add-related { margin-top: 48px; }
.add-related .add-h2--sm { margin-bottom: 20px; }

/* ---------- Archive / fallback ---------- */
.add-archive-title { font-family: var(--font-display); font-weight: 800; font-size: 42px; letter-spacing: -0.03em; margin: 0 0 24px; }
.add-pagination { margin-top: 32px; display: flex; gap: 8px; font-weight: 700; }
.add-pagination .page-numbers { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; }
.add-pagination .page-numbers.current { background: var(--ink); color: var(--cream); }
.add-entry-content { max-width: 720px; font-size: 17px; line-height: 1.65; color: var(--body-grey); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .add-hero { grid-template-columns: 1fr; padding: 48px 24px 40px; gap: 56px; }
  .add-hero__title { font-size: 42px; }
  .add-grid-3, .add-coupons__grid { grid-template-columns: repeat(2, 1fr); }
  .add-videos__grid { grid-template-columns: repeat(2, 1fr); }
  .add-single__product { grid-template-columns: 1fr; }
  .add-buybox { position: static; }
  .add-single__title { font-size: 32px; }
  .add-header { padding: 12px 20px; flex-wrap: wrap; }
  .add-header__nav { gap: 16px; }
  .add-section, .add-coupons, .add-single { padding-left: 24px; padding-right: 24px; }
  .add-videos { padding: 48px 24px; }
  .add-footer { padding: 32px 24px; }
  .add-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .add-grid-3, .add-coupons__grid, .add-videos__grid { grid-template-columns: 1fr; }
  .add-hero__title { font-size: 36px; }
  .add-hero__actions { flex-wrap: wrap; }
  .add-newsletter__form { flex-direction: column; }
  .add-dotd__badge { left: 0; }
}
