/* Blog-specific styles — extends /style.css */

/* Pin footer to bottom on short pages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.blog-container {
  flex: 1;
}

/* ========== BLOG NAV ========== */

.blog-nav {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-home {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-home:hover {
  color: var(--accent);
}

.nav-eyes {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 28px;
  height: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  justify-content: center;
}

.eye-sm {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50% !important;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
  animation: navBlink 6s ease-in-out infinite !important;
}

.eye-sm:last-child {
  animation-delay: 0s !important;
}

@keyframes navBlink {
  0% { opacity: 1; height: 6px; border-radius: 50%; }
  12% { opacity: 0.5; }
  25% { opacity: 1; }
  37% { opacity: 0.5; height: 6px; border-radius: 50%; }
  42% { height: 1px; border-radius: 1px; opacity: 0.8; }
  46% { height: 1px; border-radius: 1px; opacity: 0.8; }
  51% { height: 6px; border-radius: 50%; opacity: 1; }
  100% { opacity: 1; height: 6px; border-radius: 50%; }
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ========== BLOG CONTAINER ========== */

.blog-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

.blog-container > h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.blog-subtitle {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.blog-container > hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ========== POST PREVIEW (blog index) ========== */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.post-preview {
  margin-bottom: 0;
}

.post-preview .post-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.post-preview .post-link:hover {
  border-color: var(--accent);
  background: var(--bg-tertiary);
}

.post-preview .post-link:hover .post-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.post-arrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}

.post-info {
  flex: 1;
}

.post-preview h2 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.post-preview time {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.post-preview p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.5;
}

.empty {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ========== POST (single) ========== */

.post h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.post-date {
  display: block;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0;
}

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

.post-content {
  line-height: 1.7;
}

.post-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

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

.post-content em {
  color: var(--text-muted);
}

.post-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.post-content a:hover {
  border-bottom-color: var(--accent);
}

.post-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content ul,
.post-content ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

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

.post-content li strong {
  color: var(--text-primary);
}

.post-content code {
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.post-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

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

/* Post signature */
.post-signature {
  margin-top: 3rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
}

.sig-label {
  color: var(--accent);
  font-weight: 500;
  margin-right: 0.5rem;
}

.sig-fingerprint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.post-signature details {
  margin-top: 0.75rem;
}

.post-signature summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.post-signature summary:hover {
  color: var(--text-secondary);
}

.sig-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-primary);
  border-radius: 4px;
}

.sig-note {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.sig-note a {
  color: var(--accent);
  text-decoration: none;
}

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.post-nav-link:hover {
  color: var(--accent);
}

/* ========== ARCHIVE ========== */

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.archive-item time {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.archive-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.archive-item a:hover {
  color: var(--accent);
}

/* ========== BLOG FOOTER ========== */

.blog-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.blog-footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.blog-footer .subtle {
  font-size: 0.75rem;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 600px) {
  .blog-container {
    padding: 2rem 1rem;
  }

  .blog-container > h1,
  .post h1 {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }
}
