/* Blog-specific styles. Extends the design tokens + nav/footer from styles.css. */

.blog-main {
  padding-top: 68px;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 32px 0 0;
  color: var(--soft-muted);
  font-size: 13px;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--soft-muted);
}

/* ---- Blog index hero ---- */
.blog-hero {
  padding: 56px 0 12px;
  text-align: center;
}

.blog-hero h1 {
  margin: 16px 0 14px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.blog-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

/* ---- Category filter chips ---- */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 8px;
}

.category-chip {
  padding: 8px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.category-chip:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ---- Category sections ---- */
.category-block {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.category-block:first-of-type {
  border-top: 0;
}

.category-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.category-block-head .cat-icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 20px;
}

.category-block-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.category-block-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---- Post cards ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.post-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 12px 30px rgba(26, 30, 46, 0.07);
  transform: translateY(-2px);
}

.post-tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.post-meta {
  margin-top: auto;
  color: var(--soft-muted);
  font-size: 12px;
  font-weight: 600;
}

.post-card.read-more {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.post-card--empty {
  align-items: center;
  justify-content: center;
  border-style: dashed;
  background: var(--section);
  color: var(--soft-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  min-height: 120px;
}

/* ---- Article page ---- */
.article {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0 80px;
}

.article-header {
  padding: 24px 0 8px;
}

.article-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--soft-muted);
  font-size: 13px;
  font-weight: 600;
}

.article-lead {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
}

.article-body {
  color: #2c3446;
  font-size: 17px;
  line-height: 1.75;
}

.article-body h2 {
  margin: 48px 0 16px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.article-body h3 {
  margin: 32px 0 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: var(--ink);
  font-weight: 700;
}

.article-body blockquote {
  margin: 26px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--accent-line);
  color: var(--muted);
  font-style: italic;
}

/* Reference table (houses / planets) */
.chart-table-wrap {
  overflow-x: auto;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.chart-table th,
.chart-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.chart-table thead th {
  background: var(--section);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.chart-table tbody tr:last-child td {
  border-bottom: 0;
}

.chart-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* Callout */
.callout {
  margin: 26px 0;
  padding: 18px 22px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 15px;
  line-height: 1.65;
}

.callout strong {
  color: var(--accent-dark);
}

/* FAQ */
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Closing consult note */
.consult-note {
  margin: 44px 0 0;
  padding: 32px;
  border-radius: 16px;
  background: var(--panel-dark);
  color: #ffffff;
  text-align: center;
}

.consult-note h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
}

.consult-note p {
  max-width: 480px;
  margin: 0 auto 22px;
  color: var(--soft-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Related / back link */
.article-footer-nav {
  margin-top: 40px;
  text-align: center;
}

.article-footer-nav a {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 560px) {
  .article-lead {
    font-size: 17px;
    padding: 18px 20px;
  }

  .article-body {
    font-size: 16px;
  }

  .consult-note {
    padding: 26px 20px;
  }
}
