/*
Theme Name: DailyAnswered
Theme URI: https://dailyanswered.com
Description: Custom Axios-style editorial theme for DailyAnswered
Author: PeakScale
Version: 1.0
*/

/* === DailyAnswered Theme CSS === */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --accent: #1d4ed8;
  --legal: #7c3aed;
  --finance: #0891b2;
  --insurance: #059669;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* NAV */
.da-nav { border-bottom: 1px solid var(--border); padding: 0 40px; height: 52px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; z-index: 100; }
.da-logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -0.5px; text-decoration: none; }
.da-logo em { color: var(--accent); font-style: normal; }
.da-nav-pills { display: flex; gap: 4px; }
.da-nav-pills .pill { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); transition: background 0.15s; }
.da-nav-pills .pill.legal { color: var(--legal); background: rgba(124,58,237,0.06); }
.da-nav-pills .pill.finance { color: var(--finance); background: rgba(8,145,178,0.06); }
.da-nav-pills .pill.insurance { color: var(--insurance); background: rgba(5,150,105,0.06); }

/* HERO */
.da-hero { max-width: 1180px; margin: 40px auto; padding: 0 24px; }
.da-hero-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.da-hero-img img, .da-no-img { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); object-fit: cover; background: var(--surface); }
.da-topic-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 14px; }
.da-tag-line { width: 20px; height: 2px; border-radius: 1px; flex-shrink: 0; }
.da-hero-title { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 14px; }
.da-hero-title a { text-decoration: none; color: inherit; }
.da-hero-title a:hover { color: var(--accent); }
.da-hero-lede { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.da-hero-meta { font-size: 12px; color: var(--faint); }

/* DIVIDER */
.da-divider { max-width: 1180px; margin: 32px auto 0; padding: 0 24px; }
.da-divider-label { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; border-top: 2px solid var(--text); padding-top: 12px; }
.da-divider-label span { font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.da-divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* CONTENT WRAP */
.da-content-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; }

/* GRID */
.da-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* STORY CARD */
.da-story { display: flex; flex-direction: column; }
.da-story-img-wrap { display: block; overflow: hidden; border-radius: var(--radius); margin-bottom: 12px; aspect-ratio: 16/9; }
.da-story-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.da-story-img-wrap:hover .da-story-img { transform: scale(1.03); }
.da-story-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 6px; }
.da-story-title { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; letter-spacing: -0.2px; }
.da-story-title a { text-decoration: none; color: inherit; }
.da-story-title a:hover { color: var(--accent); }
.da-story-blurb { font-size: 13px; color: var(--muted); line-height: 1.65; flex: 1; }
.da-story-meta { font-size: 11px; color: var(--faint); margin-top: 10px; }

/* SIDEBAR */
.da-sidebar { border-left: 1px solid var(--border); padding-left: 28px; }
.da-sidebar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--text); }
.da-si { display: flex; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.da-si:last-of-type { border: none; }
.da-si-num { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: var(--border); line-height: 1; flex-shrink: 0; width: 28px; }
.da-si-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.da-si-title { font-size: 13px; font-weight: 700; line-height: 1.4; }
.da-si-title a { text-decoration: none; color: inherit; }
.da-si-title a:hover { color: var(--accent); }

/* AD SLOTS */
.da-ad-slot, .da-ad-leaderboard, .da-ad-mid, .da-ad-bottom {
  background: var(--surface); border: 1px dashed var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 11px;
}
.da-ad-slot { height: 280px; margin: 20px 0; }
.da-ad-leaderboard { height: 90px; max-width: 780px; margin: 24px auto; }
.da-ad-mid { height: 280px; max-width: 780px; margin: 32px auto; }
.da-ad-bottom { height: 90px; max-width: 780px; margin: 32px auto; }
.da-ad-label { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }

/* LOAD MORE SECTION */
.da-load-more-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 60px; }

/* ARTICLE */
.da-article-inner { max-width: 780px; margin: 0 auto; padding: 40px 24px; }
.da-article-header { margin-bottom: 28px; }
.da-article-title { font-family: 'Poppins', sans-serif; font-size: 2.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; margin: 14px 0 12px; }
.da-article-meta { font-size: 13px; color: var(--faint); }
.da-article-hero-img { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.da-article-hero-img img { width: 100%; }
.da-article-body { font-size: 17px; line-height: 1.8; color: #1e293b; }
.da-article-body h1 { display: none; } /* hide duplicate title inside content */
/* First figure in content IS the main image — show it */
.da-article-body h2 { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 700; margin: 32px 0 14px; letter-spacing: -0.3px; }
.da-article-body h3 { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 700; margin: 24px 0 10px; }
.da-article-body p { margin-bottom: 20px; }
.da-article-body ul, .da-article-body ol { margin: 0 0 20px 24px; }
.da-article-body li { margin-bottom: 8px; }
.da-article-body strong { font-weight: 700; }
.da-article-body figure { margin: 24px 0; }
.da-article-body figcaption { font-size: 12px; color: var(--faint); text-align: center; margin-top: 6px; }

/* RELATED */
.da-related { border-top: 1px solid var(--border); padding: 40px 0 60px; }
.da-related-grid { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* FOOTER */
.da-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 40px; }
.da-footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.da-footer-logo { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 18px; }
.da-footer-logo em { color: var(--accent); font-style: normal; }
.da-footer-links { display: flex; gap: 20px; }
.da-footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.da-footer-links a:hover { color: var(--text); }
.da-footer-copy { font-size: 12px; color: var(--faint); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .da-hero-inner { grid-template-columns: 1fr; }
  .da-content-wrap { grid-template-columns: 1fr; }
  .da-sidebar { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 28px; }
  .da-grid { grid-template-columns: repeat(2, 1fr); }
  .da-related-grid { grid-template-columns: repeat(2, 1fr); }
  .da-nav { padding: 0 20px; }
}
@media (max-width: 580px) {
  .da-grid, .da-related-grid { grid-template-columns: 1fr; }
  .da-hero { margin: 24px auto; }
  .da-article-title { font-size: 1.6rem; }
  .da-article-body { font-size: 16px; }
}
