﻿.post-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2.5rem 8rem;
}

.hidden {
  display: none !important;
}

.post-error {
  padding: 4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.post-error a {
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.post-error a:hover {
  color: #fff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  margin-bottom: 2rem;
  transition: color 0.18s;
  letter-spacing: 0.01em;
}

.back-link:hover {
  color: var(--text);
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-heading {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-meta-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
}

.post-meta-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.post-meta-tags .post-tag {
  font-size: 0.72rem;
  color: #666;
  background: #141414;
  border: 1px solid #222;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #c8c8c8;
  font-weight: 300;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.post-content h1 { font-size: 1.7rem; }
.post-content h2 { font-size: 1.3rem; }
.post-content h3 { font-size: 1.1rem; }
.post-content h4 { font-size: 1rem; }

.post-content p {
  margin-bottom: 1.3rem;
}

.post-content a {
  color: #a0b4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(160, 180, 255, 0.4);
  transition: color 0.18s;
}

.post-content a:hover {
  color: #c0ccff;
}

.post-content strong {
  color: #e8e8e8;
  font-weight: 600;
}

.post-content em {
  color: #b8b8b8;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.3rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content blockquote {
  border-left: 2px solid #333;
  margin: 1.5rem 0;
  padding: 0.25rem 1.25rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-content code {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.82em;
  background: #151515;
  border: 1px solid #222;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: #ccc;
}

.post-content pre {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: #d4d4d4;
}

.post-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.post-content th,
.post-content td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.post-content th {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 600px) {
  .post-page {
    padding: 2rem 1.25rem 5rem;
  }
}
