/* Blog-specific styles */

.blog-terminal {
  max-width: 800px;
}

.blog-terminal .bar-left {
  gap: 8px;
}

.blog-terminal .bar-left a.workspace {
  text-decoration: none;
  color: var(--muted);
}

.blog-terminal .bar-left a.workspace:hover {
  color: var(--text);
  background: var(--border);
}

.blog-content {
  padding: 24px;
}

/* Blog list (workspace 3) */
.blog-list {
  margin: 16px 0 24px;
}

.blog-entry {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-entry:hover {
  border-color: var(--green);
}

.blog-entry .date {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
  min-width: 80px;
}

.blog-entry .title {
  color: var(--blue);
  font-size: 14px;
  flex: 1;
}

.blog-entry:hover .title {
  color: var(--green);
}

.blog-entry .tags {
  display: flex;
  gap: 6px;
}

.blog-entry .tag {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--bar);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
}

/* Individual post */
.post {
  margin: 24px 0;
}

.post-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}

.post-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.post-meta .tag {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bar);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--cyan);
}

.post-meta .date {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
}

/* Post body - clean readable style */
.post-body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.post-body h2 {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.post-body h3 {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 24px 0 12px;
}

.post-body p {
  margin-bottom: 16px;
  color: #c9d1d9;
}

.post-body ul,
.post-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 8px;
  color: #c9d1d9;
}

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

.post-body a {
  color: var(--blue);
  text-decoration: none;
}

.post-body a:hover {
  text-decoration: underline;
}

.post-body code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  background: var(--bar);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--orange);
}

.post-body pre {
  margin: 20px 0;
  padding: 20px;
  background: var(--bar);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}

.post-body pre code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.6;
  background: transparent;
  padding: 0;
  color: var(--text);
  white-space: pre;
}

.post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

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

/* Responsive */
@media (max-width: 600px) {
  .blog-terminal {
    max-width: none;
    height: 100vh;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .blog-content {
    padding: 16px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .post-header h1 {
    font-size: 1.25rem;
  }

  .post-body {
    font-size: 14px;
  }

  .post-body pre {
    padding: 12px;
    font-size: 11px;
  }

  .blog-entry {
    flex-direction: column;
    gap: 8px;
  }

  .blog-entry .tags {
    order: -1;
  }
}
