

.post-detail-page {
  background-color: var(--bg-white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.post-hero {
  padding-top: 120px;
  width: 100%;
}

.post-hero-container {
  max-width: 1800px;
  width: 94%;
  margin: 0 auto;
  padding: 0 0 30px 0;
}

.back-to-grid {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.back-to-grid:hover {
  color: var(--text-main);
}

.post-hero-image {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  display: block;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition: filter 1.2s ease;
}

.post-hero-image:hover img {
  filter: grayscale(0%);
}

.post-body {
  padding: 80px 0 0 0;
}

.post-body-container {
  max-width: 1800px;
  width: 94%;
  margin: 0 auto;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.post-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.post-date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.lang-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  color: var(--accent-blue);
  font-weight: 700;
}

.lang-divider {
  font-size: 11px;
  color: var(--border-color);
  pointer-events: none;
}

#postTitle,
#postLead,
#postContent {
  transition: opacity 0.3s ease;
}

.post-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
  margin: 0 0 25px 0;
  max-width: 850px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 60px;
}

.post-separator {
  opacity: 0.4;
}

.post-content {
  max-width: 850px;
}

.post-lead {
  font-size: 22px;
  line-height: 1.7;
  color: var(--text-main);
  font-weight: 400;
  margin: 0 0 50px 0;
  letter-spacing: -0.01em;
}

.post-content p {
  font-size: 19px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 30px 0;
}

.post-content h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin: 60px 0 25px 0;
}

.post-content code {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.85em;
  background: var(--bg-off-white);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-blue);
}

.system-insight {
  background: var(--bg-off-white);
  border-left: 3px solid var(--border-color);
  padding: 30px 35px;
  margin: 50px 0;
  position: relative;
}

.system-insight-label {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 15px;
}

.system-insight p {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0;
}

.post-next-system {
  margin-top: 120px;
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.post-next-container {
  max-width: 1800px;
  width: 94%;
  margin: 0 auto;
}

.post-next-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 20px;
}

.post-next-title {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
  opacity: 0.3;
  transition: opacity 0.4s ease;
  display: block;
  line-height: 1.2;
}

.post-next-title:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .post-hero {
    padding-top: 100px;
  }

  .post-hero-image {
    aspect-ratio: 16 / 10;
  }

  .post-body {
    padding: 50px 0 0 0;
  }

  .post-lead {
    font-size: 19px;
  }

  .post-content p {
    font-size: 17px;
  }

  .system-insight {
    padding: 20px 25px;
  }

  .system-insight p {
    font-size: 14px;
  }

  .post-next-system {
    margin-top: 80px;
    padding: 50px 0;
  }
}
