/* ================================================================
   A New Dawn AI — /posts shared stylesheet
   Covers: nav, footer, library page, series pages, post pages
================================================================ */

/* ── Reset & Variables ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0A1628;
  --navy-mid:    #0C1B30;
  --navy-card:   #0E2035;
  --teal:        #0D9488;
  --teal-light:  #14B8A9;
  --orange:      #F97316;
  --orange-dk:   #EA6C0A;
  --white:       #ffffff;
  --grey:        rgba(255,255,255,.6);
  --grey-dim:    rgba(255,255,255,.32);
  --grey-card:   rgba(255,255,255,.05);
  --radius:      10px;
  --radius-lg:   16px;
  --t:           .2s ease;
  --font-body:   'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-display:'Fraunces', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 740px; }

/* ── Site Header / Nav ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,22,40,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}
.logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo img { height: 60px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 7px;
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: var(--white); background: rgba(255,255,255,.08); }
.main-nav a.active { color: var(--teal-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--orange);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--t);
  white-space: nowrap;
}
.btn-nav:hover { background: var(--orange-dk); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 190;
  padding: 80px 32px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--t);
}
.mobile-menu a:hover { color: var(--teal-light); }
.mobile-cta-wrap { margin-top: 24px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #060E1A;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 44px 0 28px;
  margin-top: 80px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,.38); margin-top: 8px; max-width: 280px; }
.footer-logo { font-size: 1.1rem; font-weight: 700; color: var(--white); text-decoration: none; }
.footer-logo span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-light); }
.footer-social { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.footer-social a:hover { background: rgba(24,119,242,.2); color: #5B9BF8; border-color: rgba(24,119,242,.4); }
.footer-social a.social--whatsapp:hover { background: rgba(37,211,102,.2); color: #25D366; border-color: rgba(37,211,102,.4); }
.footer-social svg { width: 16px; height: 16px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-nav a { font-size: .875rem; color: rgba(255,255,255,.45); text-decoration: none; transition: color var(--t); }
.footer-nav a:hover { color: var(--teal-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.05); padding-top: 20px; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.28); }
.footer-legal a { font-size: .78rem; color: rgba(255,255,255,.28); text-decoration: none; transition: color var(--t); }
.footer-legal a:hover { color: rgba(255,255,255,.55); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: var(--radius);
  font-size: .93rem; font-weight: 700; text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t);
  cursor: pointer; border: none;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dk); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--teal-light); }
.btn--outline { border: 1.5px solid rgba(13,148,136,.4); color: var(--teal-light); background: transparent; }
.btn--outline:hover { border-color: var(--teal-light); color: var(--white); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Eyebrow / badge ─────────────────────────────────────────── */
.eyebrow {
  display: inline-block; font-size: .7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-light);
  background: rgba(13,148,136,.1); border: 1px solid rgba(13,148,136,.28);
  border-radius: 100px; padding: 4px 14px; margin-bottom: 14px;
}
.badge {
  display: inline-flex; align-items: center;
  font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
}
.badge--complete { background: rgba(13,148,136,.18); color: var(--teal-light); border: 1px solid rgba(13,148,136,.3); }
.badge--soon     { background: rgba(249,115,22,.15); color: var(--orange); border: 1px solid rgba(249,115,22,.3); }
.badge--myth     { background: rgba(249,115,22,.15); color: var(--orange); border: 1px solid rgba(249,115,22,.3); }

/* ── Page hero ───────────────────────────────────────────────── */
.page-hero {
  padding: 64px 0 52px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  padding: 16px 0 0;
  font-size: .78rem;
  color: var(--grey-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--grey-dim); text-decoration: none; transition: color var(--t); }
.breadcrumb a:hover { color: var(--teal-light); }
.breadcrumb__sep { color: rgba(255,255,255,.2); }
.breadcrumb__current { color: rgba(255,255,255,.5); }

/* ── Back link ───────────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 600; color: var(--teal-light);
  text-decoration: none; padding: 8px 0; margin-bottom: 8px;
  transition: gap var(--t), color var(--t);
}
.back-link:hover { color: var(--white); gap: 10px; }
.back-link svg { width: 16px; height: 16px; }

/* ── Library page — series cards ────────────────────────────── */
.series-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 52px 0;
}
.series-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--t), transform var(--t);
}
.series-card:hover { border-color: rgba(13,148,136,.35); transform: translateY(-2px); }
.series-card--disabled { opacity: .55; pointer-events: none; }
.series-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.series-card__num {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 6px;
}
.series-card__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.series-card__desc { font-size: .9rem; color: var(--grey); line-height: 1.65; }
.series-card__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--grey-dim); }
.series-card__meta svg { width: 14px; height: 14px; }
.series-card__actions { margin-top: 4px; }

/* ── Series landing page ─────────────────────────────────────── */
.series-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.series-hero__label {
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-light); margin-bottom: 10px;
}
.series-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 14px;
}
.series-hero__desc { font-size: 1rem; color: var(--grey); max-width: 600px; line-height: 1.7; margin-bottom: 20px; }

/* Progress dots */
.series-progress {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.progress-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}
.progress-dot--done { background: var(--teal); }
.progress-label { font-size: .74rem; color: var(--grey-dim); margin-left: 4px; }

/* YouTube placeholder */
.yt-placeholder {
  border: 2px dashed rgba(13,148,136,.35);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  color: var(--grey-dim);
  margin: 32px 0;
}
.yt-placeholder svg { width: 40px; height: 40px; color: var(--teal); margin: 0 auto 12px; }
.yt-placeholder p { font-size: .85rem; }

/* Post cards grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 40px 0 52px;
}
.post-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: border-color var(--t), transform var(--t);
}
.post-card:hover { border-color: rgba(13,148,136,.35); transform: translateY(-2px); }
.post-card__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center;
  background: var(--navy-mid);
}
.post-card__body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card__label {
  font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 7px;
}
.post-card__title { font-size: .97rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.post-card__teaser { font-size: .8rem; color: var(--grey); line-height: 1.55; flex: 1; }
.post-card__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; color: var(--teal-light);
  text-decoration: none; margin-top: 14px;
  transition: gap var(--t), color var(--t);
}
.post-card:hover .post-card__link { gap: 8px; color: var(--white); }
.post-card__link svg { width: 13px; height: 13px; }

/* Series CTA strip */
.series-cta {
  background: var(--navy-mid);
  border: 1px solid rgba(13,148,136,.18);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 52px;
}
.series-cta h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.series-cta p  { font-size: .9rem; color: var(--grey); margin-bottom: 20px; line-height: 1.65; }
.series-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Individual post page ────────────────────────────────────── */
.post-header {
  padding: 32px 0 28px;
}
.post-header__meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .76rem; color: var(--grey-dim);
  margin-bottom: 16px;
}
.post-header__series {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-light);
}
.post-header__sep { color: rgba(255,255,255,.2); }
.post-header__read-time { color: var(--grey-dim); }
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 0;
}

/* Myth badge — Series 2 only */
.myth-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.35);
  border-radius: 8px; padding: 6px 14px;
  font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.myth-badge svg { width: 15px; height: 15px; }

/* Post hero image */
.post-hero-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; object-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  background: var(--navy-mid);
}

/* Post body content */
.post-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(255,255,255,.85);
}
.post-body p     { margin-bottom: 1.2em; }
.post-body h2    { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 1.8em 0 .7em; color: var(--white); }
.post-body ul    { margin: 0 0 1.2em 1.4em; }
.post-body li    { margin-bottom: .45em; }
.post-body strong{ color: var(--white); font-weight: 700; }
.post-body a     { color: var(--teal-light); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--white); }
.post-body .highlight {
  border-left: 3px solid var(--teal);
  padding: 14px 20px;
  background: rgba(13,148,136,.07);
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
  font-size: .96rem;
}

/* Post hashtags */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.06); }
.post-tag  { font-size: .72rem; color: var(--teal-light); background: rgba(13,148,136,.09); border: 1px solid rgba(13,148,136,.2); border-radius: 100px; padding: 3px 11px; }

/* Prev / Next nav */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 48px 0 0;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.post-nav__item {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t), transform var(--t);
}
.post-nav__item:hover { border-color: rgba(13,148,136,.35); transform: translateY(-1px); }
.post-nav__item--prev { text-align: left; }
.post-nav__item--next { text-align: right; }
.post-nav__dir {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey-dim); margin-bottom: 5px;
  display: flex; align-items: center; gap: 5px;
}
.post-nav__item--next .post-nav__dir { justify-content: flex-end; }
.post-nav__dir svg { width: 13px; height: 13px; }
.post-nav__title { font-size: .88rem; font-weight: 700; line-height: 1.35; color: var(--white); }

/* Post CTA box */
.post-cta {
  background: var(--navy-mid);
  border: 1px solid rgba(13,148,136,.2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  margin: 40px 0 0;
}
.post-cta h3   { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.post-cta p    { font-size: .88rem; color: var(--grey); margin-bottom: 22px; line-height: 1.65; }
.post-cta__btns{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Insights teaser on homepage ─────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.insight-card {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: border-color var(--t), transform var(--t);
}
.insight-card:hover { border-color: rgba(13,148,136,.35); transform: translateY(-2px); }
.insight-card__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: var(--navy-mid);
}
.insight-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.insight-card__series { font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 7px; }
.insight-card__title  { font-size: .95rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.insight-card__teaser { font-size: .8rem; color: var(--grey); line-height: 1.55; flex: 1; }
.insight-card__cta    { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--teal-light); margin-top: 14px; transition: gap var(--t); }
.insight-card:hover .insight-card__cta { gap: 8px; color: var(--white); }
.insight-card__cta svg { width: 13px; height: 13px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-nav  { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-nav   { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .series-cta__btns { flex-direction: column; align-items: center; }
  .post-cta__btns   { flex-direction: column; align-items: center; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .series-card { padding: 22px 18px; }
  .post-header h1 { font-size: 1.5rem; }
  .post-body { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
