/* ============================================================
   Blog Post Styles
   ============================================================ */

.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   Post Header
   ============================================================ */

.blog-post {
  padding: 4rem 0;
}

.post-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.post-breadcrumb span {
  color: var(--border);
}

.post-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--fg);
}

.post-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

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

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(20, 195, 142, 0.1);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}

.author-role {
  font-size: 0.85rem;
  color: var(--muted);
}

.post-info {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.info-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-item i {
  color: var(--accent);
}

.post-tags-header {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ============================================================
   Post Body
   ============================================================ */

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(254, 254, 254, 0.9);
}

.post-body h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  color: var(--accent);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.post-body h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--fg);
}

.post-body h4 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
  color: var(--fg);
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-body li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.post-body strong {
  color: var(--accent);
  font-weight: 600;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
}

.post-body a:hover {
  color: var(--accent2);
}

/* ============================================================
   Terminal Blocks
   ============================================================ */

.terminal-block {
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
}

.terminal-header-small {
  background: rgba(20, 195, 142, 0.1);
  border-bottom: 1px solid var(--accent);
  padding: 0.75rem 1.5rem;
}

.terminal-title-small {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
}

.terminal-content-small {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================
   Code Blocks
   ============================================================ */

.code-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
}

.code-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.code-copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.code-block pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fg);
}

/* ============================================================
   Info Boxes
   ============================================================ */

.info-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  border-left: 4px solid;
}

.info-box.warning {
  background: rgba(247, 159, 153, 0.1);
  border-color: var(--orange);
}

.info-box.tip {
  background: rgba(20, 195, 142, 0.1);
  border-color: var(--accent);
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-box.warning .info-icon {
  color: var(--orange);
}

.info-box.tip .info-icon {
  color: var(--accent);
}

.info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-box.warning .info-content h4 {
  color: var(--orange);
}

.info-box.tip .info-content h4 {
  color: var(--accent);
}

.info-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(254, 254, 254, 0.85);
}

/* ============================================================
   Post Footer
   ============================================================ */

.post-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.share-section {
  margin-bottom: 3rem;
}

.share-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--fg);
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(20, 195, 142, 0.05);
}

.author-box {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.author-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(20, 195, 142, 0.1);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.author-details h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.author-details p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.author-cta {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.author-cta:hover {
  gap: 0.75rem;
}

/* ============================================================
   Related Posts
   ============================================================ */

.related-posts {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.related-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.related-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.related-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  background: rgba(20, 195, 142, 0.1);
  border: 1px solid rgba(20, 195, 142, 0.3);
  border-radius: 4px;
  color: var(--accent);
  align-self: flex-start;
}

.related-card h4 {
  font-size: 1.15rem;
  color: var(--fg);
  line-height: 1.4;
}

.related-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .post-container {
    padding: 0 1.5rem;
  }

  .post-details {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-body {
    font-size: 1rem;
  }

  .post-body h2 {
    font-size: 1.75rem;
  }

  .author-box {
    flex-direction: column;
  }

  .author-avatar-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .code-block pre {
    font-size: 0.85rem;
  }
}
