/*
Theme Name: HotTakeDaily
Theme URI: https://hottakedaily.com
Description: A fast, editorial news theme with built-in ad zones, sponsored post support, and affiliate link management. Designed for high-traffic general news websites.
Author: HotTakeDaily
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: hottakedaily
Tags: news, magazine, blog, ad-ready, monetisation
*/

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --ink:    #111111;
  --paper:  #f6f3ee;
  --red:    #cc2200;
  --gold:   #b8973a;
  --muted:  #6a6a6a;
  --light:  #eae6de;
  --white:  #ffffff;
  --radius: 0px;
  --shadow: 0 2px 16px rgba(0,0,0,.07);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-ui:   'Barlow Condensed', system-ui, sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.2; }
p { margin-bottom: 1.2em; }

/* ─── BREAKING TICKER ────────────────────────────────────── */
.htd-ticker {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}
.htd-ticker__label {
  background: var(--ink);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.htd-ticker__track {
  display: flex;
  white-space: nowrap;
  animation: htd-ticker 50s linear infinite;
  font-size: 13px;
  font-weight: 500;
}
.htd-ticker__track span { padding: 0 36px; }
.htd-ticker__track span::after { content: " ◆ "; color: var(--gold); opacity: .8; }
@keyframes htd-ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ─── HEADER ─────────────────────────────────────────────── */
.htd-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 200;
}
.htd-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.htd-logo {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--ink);
}
.htd-logo span { color: var(--red); }
.htd-header__right { display: flex; align-items: center; gap: 20px; }
.htd-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
}
.htd-live__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.2} }
.htd-search { background: none; border: 1px solid #ccc; padding: 6px 12px; font-size: 13px; outline: none; cursor: pointer; }
.htd-search:focus { border-color: var(--ink); }

/* ─── NAV ────────────────────────────────────────────────── */
.htd-nav { background: var(--ink); }
.htd-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}
.htd-nav a {
  color: #bbb;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 11px 18px;
  white-space: nowrap;
  transition: color .2s, background .2s;
  display: block;
}
.htd-nav a:hover,
.htd-nav a.current-menu-item { color: #fff; background: var(--red); text-decoration: none; }
.htd-nav__sponsored {
  margin-left: auto;
  color: var(--gold) !important;
  border-left: 1px solid #333;
}

/* ─── AD ZONES ───────────────────────────────────────────── */
.htd-ad {
  text-align: center;
  padding: 10px 0;
}
.htd-ad__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0ece3;
  border: 1px dashed #ccc;
  color: #aaa;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  min-height: 90px;
  width: 100%;
  max-width: 728px;
}
.htd-ad--sidebar .htd-ad__inner { max-width: 300px; min-height: 250px; }
.htd-ad--leaderboard { margin: 16px auto; max-width: 1280px; padding: 0 24px; }
.htd-ad__label {
  font-size: 9px;
  color: #bbb;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.htd-container { max-width: 1280px; margin: 0 auto; padding: 0 24px 64px; }
.htd-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}
@media(max-width:900px) { .htd-two-col { grid-template-columns: 1fr; } }

/* ─── HERO ───────────────────────────────────────────────── */
.htd-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  border: 2px solid var(--ink);
  margin-top: 20px;
  overflow: hidden;
}
.htd-hero__main { position: relative; overflow: hidden; cursor: pointer; }
.htd-hero__main img { width:100%; height:500px; object-fit:cover; transition:transform .5s; }
.htd-hero__main:hover img { transform: scale(1.03); }
.htd-hero__overlay {
  position: absolute; bottom:0; left:0; right:0;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  padding: 50px 28px 28px;
  color: #fff;
}
.htd-hero__cat {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.htd-hero__title { font-size: 30px; font-weight: 900; line-height: 1.2; margin-bottom: 10px; }
.htd-hero__meta { font-size: 12px; opacity: .7; }
.htd-hero__side { border-left: 2px solid var(--ink); overflow:hidden; }
.htd-hero__side-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--light);
  cursor: pointer;
  transition: background .2s;
}
.htd-hero__side-item:hover { background: #fff; }
.htd-hero__side-item:last-child { border-bottom: none; }
.htd-hero__side-item .cat { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 6px; }
.htd-hero__side-item h3 { font-size: 15px; font-weight: 700; line-height: 1.35; }
.htd-hero__side-item .meta { font-size: 11px; color: var(--muted); margin-top: 6px; }

@media(max-width:900px) {
  .htd-hero { grid-template-columns:1fr; }
  .htd-hero__main img { height: 300px; }
  .htd-hero__side { border-left:none; border-top: 2px solid var(--ink); }
}

/* ─── SECTION HEADER ─────────────────────────────────────── */
.htd-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 20px;
}
.htd-section-header__tag {
  background: var(--red);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  flex-shrink: 0;
}
.htd-section-header h2 {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.htd-section-header::after { content:''; flex:1; height:2px; background:var(--ink); }

/* ─── ARTICLE CARDS ──────────────────────────────────────── */
.htd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 24px;
}
.htd-card {
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border-top: 3px solid transparent;
  position: relative;
}
.htd-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.13); border-top-color: var(--red); }
.htd-card__img { width:100%; height:200px; object-fit:cover; }
.htd-card__body { padding: 18px; }
.htd-card__cat { font-family: var(--font-ui); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 8px; }
.htd-card__title { font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.htd-card__title a:hover { color: var(--red); text-decoration: none; }
.htd-card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.htd-card__meta { display:flex; justify-content:space-between; align-items:center; font-size:11px; color:var(--muted); }
.htd-card__source { font-weight: 700; color: var(--ink); }

/* ─── SPONSORED POST BADGE ───────────────────────────────── */
.htd-card--sponsored::before {
  content: "Sponsored";
  position: absolute;
  top: 10px; right: 10px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  font-weight: 700;
}
/* ─── AFFILIATE BADGE ────────────────────────────────────── */
.htd-card--affiliate::before {
  content: "Partner";
  position: absolute;
  top: 10px; right: 10px;
  background: #2a6;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  font-weight: 700;
}

/* ─── SIDEBAR ────────────────────────────────────────────── */
.htd-sidebar { position: sticky; top: 90px; }
.htd-widget { margin-bottom: 32px; background: var(--white); padding: 20px; box-shadow: var(--shadow); }
.htd-widget__title {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.htd-trending-item { display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--light); align-items:flex-start; }
.htd-trending-item:last-child { border-bottom:none; }
.htd-trending-item__num { font-family:var(--font-head); font-size:28px; font-weight:900; color:var(--light); line-height:1; flex-shrink:0; width:28px; }
.htd-trending-item__text { font-size:13px; font-weight:600; line-height:1.4; }
.htd-trending-item__text a:hover { color:var(--red); }

/* ─── NEWSLETTER ─────────────────────────────────────────── */
.htd-newsletter { background: var(--ink); padding: 24px; }
.htd-newsletter .htd-widget__title { color:#fff; border-color:#444; }
.htd-newsletter p { font-size:13px; color:#999; margin-bottom:14px; line-height:1.5; }
.htd-newsletter input[type="email"] {
  width:100%; padding:10px 14px; border:none;
  background:rgba(255,255,255,.1); color:#fff;
  font-size:14px; margin-bottom:10px; outline:none;
  font-family:var(--font-body);
}
.htd-newsletter input::placeholder { color:#666; }
.htd-newsletter button {
  width:100%; padding:10px; background:var(--red); color:#fff; border:none;
  font-family:var(--font-ui); font-size:14px; letter-spacing:1.5px;
  text-transform:uppercase; font-weight:700; cursor:pointer;
}
.htd-newsletter button:hover { background: #aa1800; }

/* ─── SPONSORED CONTENT SECTION ──────────────────────────── */
.htd-sponsored-section { background: #fffdf5; border: 1px solid #e8d99a; padding: 24px; margin: 40px 0; }
.htd-sponsored-section__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.htd-sponsored-section__badge {
  background: var(--gold);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
}
.htd-sponsored-section__note { font-size: 12px; color: var(--muted); }

/* ─── ARTICLE SINGLE ─────────────────────────────────────── */
.htd-article { max-width: 760px; }
.htd-article__cat { font-family:var(--font-ui); font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--red); font-weight:700; margin-bottom:12px; }
.htd-article__title { font-size: 42px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.htd-article__byline { font-size: 13px; color: var(--muted); padding: 16px 0; border-top: 1px solid var(--light); border-bottom: 1px solid var(--light); margin-bottom: 24px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.htd-article__img { width:100%; max-height:480px; object-fit:cover; margin-bottom:8px; }
.htd-article__caption { font-size:12px; color:var(--muted); font-style:italic; margin-bottom:28px; }
.htd-article__body p { font-size:17px; line-height:1.8; color:#1a1a1a; margin-bottom: 1.4em; }
.htd-attribution {
  background: var(--light);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 32px 0;
  font-size: 13px;
  color: var(--muted);
}
.htd-attribution a { color: var(--ink); font-weight: 700; }

/* ─── AFFILIATE DISCLOSURE ───────────────────────────────── */
.htd-affiliate-disclosure {
  background: #efffef;
  border: 1px solid #b2d8b2;
  border-left: 4px solid #2a6;
  padding: 14px 18px;
  font-size: 13px;
  color: #444;
  margin: 24px 0;
}

/* ─── IN-ARTICLE AD ──────────────────────────────────────── */
.htd-in-article-ad {
  margin: 32px auto;
  text-align: center;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.htd-footer { background: var(--ink); color: #888; margin-top: 64px; padding: 48px 24px 28px; }
.htd-footer__inner { max-width: 1280px; margin: 0 auto; }
.htd-footer__brand { font-family:var(--font-head); font-size:30px; font-weight:900; color:#fff; margin-bottom:6px; }
.htd-footer__brand span { color:var(--red); }
.htd-footer__tagline { font-size:13px; color:#555; margin-bottom:40px; }
.htd-footer__grid { display:grid; grid-template-columns:repeat(4,1fr); gap:32px; margin-bottom:40px; }
.htd-footer__col h4 { color:#fff; font-family:var(--font-ui); font-size:12px; letter-spacing:2px; text-transform:uppercase; margin-bottom:16px; }
.htd-footer__col a { display:block; color:#666; font-size:13px; margin-bottom:9px; }
.htd-footer__col a:hover { color:#fff; text-decoration:none; }
.htd-footer__bottom { border-top:1px solid #222; padding-top:22px; font-size:12px; text-align:center; }
@media(max-width:700px) { .htd-footer__grid { grid-template-columns:1fr 1fr; } }
