/* Blog styles — extends theme.css */

/* --- NAV LINKS --- */
.nav-inner {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--green); }

/* --- BLOG HERO --- */
.blog-hero {
  padding: 80px 48px 64px;
  background: var(--bg);
  border-bottom: 1px solid rgba(45, 80, 22, 0.08);
}
.blog-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.blog-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 20px;
}
.blog-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.blog-hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 300;
}

/* --- POSTS GRID --- */
.posts-section {
  padding: 80px 48px;
  background: var(--bg);
}
.posts-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(45, 80, 22, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 80, 22, 0.1);
}
.post-card-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img {
  transform: scale(1.04);
}
.post-card-body {
  padding: 28px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.post-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
}
.post-dot { color: var(--text-light); font-size: 12px; }
.post-read-time { font-size: 12px; color: var(--text-light); }
.post-date { font-size: 12px; color: var(--text-light); }
.post-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.post-read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

/* --- SUBSCRIBE SECTION --- */
.subscribe-section {
  padding: 96px 48px;
  background: var(--surface);
  border-top: 1px solid rgba(45, 80, 22, 0.06);
}
.subscribe-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.subscribe-box {
  max-width: 640px;
}
.subscribe-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.subscribe-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}
.subscribe-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.subscribe-input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border: 1.5px solid rgba(45, 80, 22, 0.15);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-input:focus {
  border-color: var(--green);
}
.subscribe-input::placeholder { color: var(--text-light); }
.subscribe-btn {
  padding: 14px 28px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.subscribe-btn:hover { background: var(--green-light); }
.subscribe-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.subscribe-msg {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.subscribe-msg.success { color: var(--green); }
.subscribe-msg.error { color: #c0392b; }

/* --- POST ARTICLE --- */
.post-article { padding-bottom: 80px; }

.post-header {
  padding: 72px 48px 48px;
  background: var(--bg);
  border-bottom: 1px solid rgba(45, 80, 22, 0.08);
}
.post-header-inner {
  max-width: 760px;
  margin: 0 auto;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.post-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.post-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.post-hero-img-wrap {
  max-width: 860px;
  margin: 48px auto;
  padding: 0 48px;
}
.post-hero-img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-body-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
}

.post-toc {
  position: sticky;
  top: 32px;
  padding-top: 8px;
}
.toc-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.toc-link {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(45, 80, 22, 0.06);
  transition: color 0.2s;
  line-height: 1.4;
}
.toc-link:hover { color: var(--green); }

.post-content { min-width: 0; }

.post-section { margin-bottom: 56px; }
.section-heading {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.3;
}
.post-section p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.post-section p strong { color: var(--text); font-weight: 600; }
.post-section ul {
  list-style: none;
  margin: 16px 0 24px;
}
.post-section ul li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 8px 0;
  border-bottom: 1px solid rgba(45, 80, 22, 0.06);
  padding-left: 20px;
  position: relative;
}
.post-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 600;
}

/* --- AFFILIATE SECTION --- */
.affiliate-section {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px;
  margin-top: 48px;
  border: 1px solid rgba(45, 80, 22, 0.08);
}
.affiliate-intro {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 16px 0 28px;
}
.affiliate-links { display: flex; flex-direction: column; gap: 16px; }
.affiliate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border: 1px solid rgba(45, 80, 22, 0.08);
  border-radius: 10px;
  padding: 20px 24px;
}
.affiliate-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.affiliate-context {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  line-height: 1.5;
}
.affiliate-btn {
  white-space: nowrap;
  padding: 10px 20px;
  background: var(--orange);
  color: var(--white);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.affiliate-btn:hover { background: var(--orange-light); }
.affiliate-disclaimer {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 20px;
  line-height: 1.5;
}

/* --- CLICKBANK CTA --- */
.clickbank-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, #f8f3ea 0%, #fdf6ec 100%);
  border-radius: 16px;
  padding: 36px 40px;
  border: 1.5px solid rgba(197, 110, 51, 0.2);
}
.clickbank-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 12px;
}
.clickbank-headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.clickbank-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.clickbank-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.clickbank-btn:hover { background: var(--green-light); }
.clickbank-disclaimer {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 16px;
  line-height: 1.5;
}

/* --- SUBSCRIBE CTA (in post) --- */
.subscribe-cta-wrap {
  padding: 80px 48px;
  background: var(--green);
}
.subscribe-cta { max-width: 540px; margin: 0 auto; text-align: center; }
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.subscribe-cta .subscribe-input {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.subscribe-cta .subscribe-input::placeholder { color: rgba(255,255,255,0.5); }
.subscribe-cta .subscribe-input:focus { border-color: var(--white); }
.subscribe-cta .subscribe-btn { background: var(--orange); }
.subscribe-cta .subscribe-btn:hover { background: var(--orange-light); }

/* --- RELATED POSTS --- */
.related-posts {
  padding: 80px 48px;
  background: var(--surface);
  border-top: 1px solid rgba(45, 80, 22, 0.08);
}
.related-inner { max-width: 1100px; margin: 0 auto; }
.related-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .post-body-wrap { grid-template-columns: 1fr; gap: 0; }
  .post-toc { display: none; }
}
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .blog-hero { padding: 56px 24px 48px; }
  .posts-section { padding: 56px 24px; }
  .posts-grid { grid-template-columns: 1fr; gap: 24px; }
  .subscribe-section { padding: 64px 24px; }
  .subscribe-form { flex-direction: column; }
  .post-header { padding: 48px 24px; }
  .post-hero-img-wrap { padding: 0 24px; }
  .post-body-wrap { padding: 0 24px; }
  .post-section { margin-bottom: 40px; }
  .affiliate-section { padding: 28px; }
  .affiliate-card { flex-direction: column; align-items: flex-start; }
  .subscribe-cta-wrap { padding: 64px 24px; }
  .related-posts { padding: 64px 24px; }
  .related-grid { grid-template-columns: 1fr; }
}