/* Shared styles for individual blog post pages (blog/*.html) */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("dictaphone-bg.png") center center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

#navbar-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

main {
  position: relative;
  z-index: 1;
  padding: 76px 0 80px;
}

.article-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.article {
  background: linear-gradient(rgba(0, 0, 0, 0.21), rgba(0, 0, 0, 0.21)), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.article-header {
  margin-bottom: 32px;
}

.article-title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-meta {
  font-size: 14px;
  color: var(--text-tertiary);
}

.article-header .article-meta {
  margin-top: 0;
  margin-bottom: 0.25em;
}

.article-header .article-meta:last-of-type {
  margin-bottom: 0;
}

.article-body {
  font-size: 18px;
  line-height: 1.7;
}

.article-body p {
  margin-bottom: 1.25em;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 22px;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

.article-body h2:first-of-type {
  margin-top: 1.5em;
}

.article-body a {
  color: var(--primary);
  text-decoration: none;
}

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

.article-body ul {
  margin: 1em 0 1.25em 1.5em;
}

.article-body li {
  margin-bottom: 0.5em;
}

.article-body figure {
  margin: 1.5em 0;
}

.article-body img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.article-body figcaption {
  margin-top: 0.75em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-tertiary);
  text-align: center;
}

.article-cta {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.article-cta a {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
}

.article-cta a:hover {
  background: var(--primary-hover);
  color: #fff;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

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

@media (max-width: 600px) {
  .article-title {
    font-size: 26px;
  }
  .article-layout {
    padding: 0 12px;
  }
  .article {
    padding: 22px 18px;
  }
  .article-body {
    font-size: 16px;
  }
}
