/* ===========================================================
   ADHD NEWS — main stylesheet
   =========================================================== */

:root {
  --black: #0d0d0d;
  --near-black: #1a1a1a;
  --card-bg: #1e1e1e;
  --red: #E24B4A;
  --red-dark: #A32D2D;
  --red-light: #F09595;
  --white: #ffffff;
  --gray-light: #f4f4f2;
  --gray-mid: #8a8a86;
  --gray-text: #b8b8b5;
  --radius: 10px;
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--gray-light);
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Breaking ticker ---------- */
.ticker {
  background: var(--red);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ticker-badge {
  background: #4A1B0C;
  color: #F7C1C1;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}
.ticker-text a { text-decoration: underline; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
}
.logo-accent { color: var(--red); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  color: #cfcfcf;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a.nav-watch {
  background: var(--red);
  color: #4A1B0C;
  padding: 6px 14px;
  border-radius: 6px;
}
.main-nav a.nav-watch:hover { color: #4A1B0C; opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------- Category badges ---------- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ---------- Hero / featured grid ---------- */
.hero-section {
  padding: 32px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.hero-card {
  background: var(--black);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-card .thumb {
  height: 260px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 13px;
}
.hero-card .hero-content { padding: 22px; }
.hero-card h2 {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 12px 0 8px;
}
.hero-card p { color: var(--gray-text); font-size: 14px; }

.side-list { display: flex; flex-direction: column; gap: 12px; }
.side-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: background 0.15s ease;
}
.side-item:hover { background: #262626; }
.side-item .thumb-sm {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: #2a2a2a;
  flex-shrink: 0;
}
.side-item h3 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 4px;
}

/* ---------- Article card grid (category pages, feeds) ---------- */
.section-heading {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ddd;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 20px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e5e5e2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.article-card .thumb {
  height: 150px;
  background: linear-gradient(135deg, #e8e8e5, #d8d8d4);
}
.article-card .card-body { padding: 16px; }
.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 10px 0 8px;
}
.article-card p { font-size: 13px; color: #6b6b68; }
.card-meta {
  font-size: 12px;
  color: var(--gray-mid);
  margin-top: 10px;
}

/* ---------- Promo tiles (reviews / screen / watch) ---------- */
.promo-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 10px 0 30px;
}
.promo-tile {
  background: var(--near-black);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.promo-tile.accent { background: var(--red-dark); }
.promo-tile .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red-light);
  margin-bottom: 8px;
}
.promo-tile.accent .label { color: #F7C1C1; }
.promo-tile p { color: var(--white); font-size: 13px; }

/* ---------- Ad slots ---------- */
.ad-slot {
  background: #eceae4;
  border: 1px dashed #c8c6c0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9894;
  font-size: 12px;
  margin: 30px 0;
}
.ad-slot.leaderboard { height: 90px; }
.ad-slot.rectangle { height: 250px; max-width: 300px; margin-left: auto; margin-right: auto; }
.ad-slot.incontent { height: 250px; margin: 30px 0; }
.ad-slot.sidebar { height: 250px; }

/* Wrapper for admin-pasted ad code (AdSense, custom creative, whatever) —
   deliberately unstyled beyond spacing so it doesn't fight with your creative. */
.ad-slot-live { margin: 30px 0; text-align: center; overflow: hidden; }

/* ---------- Real images (fill the same boxes the placeholders use) ---------- */
.thumb.has-image, .thumb-sm.has-image {
  background: none;
  overflow: hidden;
  padding: 0;
}
.thumb.has-image img, .thumb-sm.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Original illustrations (default fallback, one per category) ---------- */
.thumb.has-illustration, .thumb-sm.has-illustration {
  background-size: cover;
  background-position: center;
}

/* ---------- Article page ---------- */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px;
}
.article-page .badge { margin-bottom: 14px; }
.article-page h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.article-meta {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 24px;
}
.article-body { font-size: 17px; line-height: 1.75; }
.article-body p { margin-bottom: 18px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--black); padding: 40px 0; }
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter h3 { color: var(--white); font-size: 20px; margin-bottom: 6px; }
.newsletter p { color: var(--gray-text); font-size: 14px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 12px 14px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  min-width: 220px;
}
.newsletter-form button {
  background: var(--red);
  color: #4A1B0C;
  font-weight: 700;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.newsletter-form button:hover { opacity: 0.9; }

/* ---------- Footer ---------- */
.site-footer { background: #050505; padding: 40px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
}
.footer-col p { color: var(--gray-mid); font-size: 13px; margin: 10px 0; }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.footer-col a {
  display: block;
  color: var(--gray-text);
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--white); }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--gray-text);
  margin-bottom: 0;
}
.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p { color: #666; font-size: 12px; }

/* ---------- Contact form ---------- */
.contact-page { max-width: 560px; margin: 0 auto; padding: 50px 20px; }
.contact-page h1 { font-size: 28px; margin-bottom: 8px; }
.contact-page p.lead { color: var(--gray-mid); margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  background: var(--red);
  color: #4A1B0C;
  font-weight: 700;
  border: none;
  padding: 14px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  align-self: flex-start;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .promo-tiles { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 16px;
    border-bottom: 2px solid var(--red);
  }
  .main-nav.open { display: flex; }
  .header-inner { position: relative; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
}
