/* ═════════════════════════════════════════════════════════════════════════
   PassportPrints Blog — Additional styles for blog index and posts
   Inherits from ../style.css · Extends for editorial long-form content
═════════════════════════════════════════════════════════════════════════ */

/* ═══ BLOG HERO (smaller than main hero) ═══════════════════════════════ */
.blog-hero {
  position: relative;
  padding: 150px 32px 60px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
}

.blog-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
  animation: fadeUp 1s var(--easing) both;
}

.blog-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}
.blog-hero h1 em {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 235, 255, 0.3));
}
.blog-hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.55;
}

/* ═══ POST GRID ════════════════════════════════════════════════════════ */
.blog-list-section { padding: 60px 0 120px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.post-card {
  display: block;
  padding: 32px 30px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s var(--easing);
  position: relative;
  overflow: hidden;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 24px 60px rgba(0, 235, 255, 0.15);
}

.post-card.featured {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(0,235,255,0.08), rgba(255,45,154,0.05));
  border-color: rgba(0,235,255,0.3);
  position: relative;
}
.post-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: conic-gradient(from 0deg, var(--cyan), var(--magenta), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.3;
  z-index: -1;
  animation: rotate 10s linear infinite;
}

.post-card-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.post-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.post-card.featured .post-card-title {
  font-size: 1.9rem;
}

.post-card-excerpt {
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}

.post-card-meta {
  display: flex;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.post-card-placeholder {
  padding: 32px 30px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--stroke-2);
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.placeholder-icon { font-size: 2rem; margin-bottom: 8px; }
.post-card-placeholder h4 { color: var(--ink); }
.post-card-placeholder p { color: var(--ink-soft); font-size: 0.9rem; max-width: 320px; }

/* ═══ POST PAGE ════════════════════════════════════════════════════════ */
.post-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 32px 80px;
}

.post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--stroke);
}
.post-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.post-breadcrumb a { color: var(--cyan); text-decoration: none; }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb .divider { color: var(--ink-faint); }

.post-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}
.post-title em {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.post-lede {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-style: italic;
}

.post-meta {
  display: flex;
  gap: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.post-meta .updated { color: var(--mint); }

/* ═══ POST BODY ════════════════════════════════════════════════════════ */
.post-body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.post-body > * { margin-bottom: 1.2em; }

.post-body h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.post-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  letter-spacing: -0.015em;
}
.post-body h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-body p { color: var(--ink); }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body em { font-style: italic; color: var(--ink); }

.post-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 235, 255, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.post-body a:hover {
  color: var(--magenta);
  text-decoration-color: var(--magenta);
}

.post-body ul, .post-body ol {
  padding-left: 1.6em;
  margin-bottom: 1.2em;
}
.post-body li {
  margin-bottom: 0.4em;
  line-height: 1.65;
  color: var(--ink);
}
.post-body li::marker {
  color: var(--cyan);
}

.post-body blockquote {
  margin: 1.8em 0;
  padding: 20px 28px;
  background: rgba(0, 235, 255, 0.04);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
}

.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92em;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 4px;
  color: var(--cyan);
}

.post-body pre {
  background: var(--bg-2);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 18px 22px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}
.post-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* Table of contents */
.post-toc {
  padding: 22px 26px;
  background: var(--bg-glass);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  margin: 32px 0 40px;
}
.post-toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  font-weight: 600;
}
.post-toc ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
  counter-reset: toc;
}
.post-toc li {
  counter-increment: toc;
  margin-bottom: 6px;
  line-height: 1.5;
  font-size: 0.95rem;
}
.post-toc li::before {
  content: counter(toc, decimal-leading-zero) " · ";
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  color: var(--cyan);
  margin-right: 6px;
}
.post-toc a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.post-toc a:hover { color: var(--cyan); }

/* Callouts */
.callout {
  margin: 1.8em 0;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
}
.callout-body { flex: 1; }
.callout-body strong { display: block; margin-bottom: 4px; font-size: 0.92rem; }
.callout-body p { margin: 0; font-size: 0.98rem; line-height: 1.6; }

.callout.warn {
  background: rgba(255, 159, 67, 0.06);
  border-color: rgba(255, 159, 67, 0.3);
}
.callout.warn .callout-icon {
  background: rgba(255, 159, 67, 0.2);
  color: #ffb370;
}
.callout.warn .callout-body strong { color: #ffb370; }

.callout.info {
  background: rgba(0, 235, 255, 0.05);
  border-color: rgba(0, 235, 255, 0.3);
}
.callout.info .callout-icon {
  background: rgba(0, 235, 255, 0.2);
  color: var(--cyan);
}
.callout.info .callout-body strong { color: var(--cyan); }

.callout.success {
  background: rgba(62, 240, 168, 0.05);
  border-color: rgba(62, 240, 168, 0.3);
}
.callout.success .callout-icon {
  background: rgba(62, 240, 168, 0.2);
  color: var(--mint);
}
.callout.success .callout-body strong { color: var(--mint); }

/* Comparison table */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.94rem;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--stroke);
}
.post-body thead {
  background: var(--bg-2);
}
.post-body th {
  padding: 12px 14px;
  text-align: left;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid var(--stroke);
}
.post-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--stroke);
  color: var(--ink);
  vertical-align: top;
}
.post-body tr:last-child td { border-bottom: none; }
.post-body tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* In-article CTA block (driving users to editor) */
.post-cta {
  margin: 2.4em 0;
  padding: 36px 32px;
  background: linear-gradient(145deg, rgba(0,235,255,0.06), rgba(255,45,154,0.04));
  border: 1px solid rgba(0, 235, 255, 0.25);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.post-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,235,255,0.15), transparent 60%);
  z-index: -1;
}
.post-cta h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  margin-top: 0;
}
.post-cta p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Post footer / author block */
.post-footer {
  margin-top: 64px;
  padding: 32px;
  background: var(--bg-glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  display: flex;
  gap: 22px;
  align-items: center;
}
.post-author-avatar {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-0);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.4rem;
}
.post-author-info h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.post-author-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Related posts strip */
.post-related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--stroke);
}
.post-related h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 20px;
}

/* ═══ RESPONSIVE ═══════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .blog-hero { padding: 130px 20px 40px; }
  .blog-list-section { padding: 40px 0 80px; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card.featured { grid-column: span 1; }
  .post-card, .post-card.featured { padding: 24px 22px; }
  .post-card.featured .post-card-title { font-size: 1.45rem; }
  .post-card-title { font-size: 1.25rem; }

  .post-article { padding: 130px 20px 60px; }
  .post-body { font-size: 1rem; }
  .post-body h2 { font-size: 1.5rem; }
  .post-body h3 { font-size: 1.2rem; }
  .post-toc { padding: 18px 20px; }
  .post-cta { padding: 28px 22px; }
  .post-cta h3 { font-size: 1.25rem; }
  .post-footer { flex-direction: column; text-align: center; padding: 24px; }

  .callout { padding: 16px 18px; gap: 10px; }
  .callout-body p { font-size: 0.92rem; }

  .post-body table { font-size: 0.85rem; display: block; overflow-x: auto; }
  .post-body th, .post-body td { padding: 9px 11px; }
}
