/* ═══════════════════════════════════════════════════════════════
   CRHQ Releases — Timeline index + individual release post layout
   Mirrors blog.css conventions; uses design tokens from style.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Releases Index Layout ─────────────────────────────────── */

.releases-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px 80px;
  min-height: calc(100vh - 180px);
}

.releases-header {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
}

/* ── Timeline ──────────────────────────────────────────────── */

.releases-timeline {
  position: relative;
  padding-left: 32px;
}

.releases-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
}

.release-entry {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 40px 0 40px 40px;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.release-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 49px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-void);
  transition: box-shadow 0.2s;
}

.release-entry:hover::before {
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.release-entry:hover .release-title {
  color: var(--accent);
}

.release-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.release-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.release-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.release-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-tag-feature {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.release-tag-improvement {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.release-tag-fix {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ── Release Post Layout ───────────────────────────────────── */

.release-post-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 0;
  min-height: calc(100vh - 180px);
}

.release-post-wrap {
  flex: 1;
  min-width: 0;
  max-width: 800px;
  padding: 80px 0 80px;
}

/* ── Post Header ───────────────────────────────────────────── */

.release-post-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.release-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.release-post-meta time {
  color: var(--text-secondary);
}

.release-post-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  margin-right: auto;
}

.release-post-back:hover {
  color: var(--accent);
}

.release-post-back svg {
  width: 14px;
  height: 14px;
}

.release-post-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.release-post-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
}

.release-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Pagination ────────────────────────────────────────────── */

.release-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.release-pagination-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
}

.release-pagination-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.release-pagination-link.next {
  text-align: right;
  grid-column: 2;
}

.release-pagination-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.release-pagination-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

/* ── TOC ───────────────────────────────────────────────────── */

.release-toc {
  padding-top: 80px;
  margin-left: 48px;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .release-toc { display: none; }
}

@media (max-width: 768px) {
  .releases-layout { padding: 0 20px 60px; }
  .releases-header { padding: 48px 0 36px; }
  .releases-timeline { padding-left: 20px; }
  .release-entry { padding: 32px 0 32px 28px; }
  .release-post-layout { padding: 0 20px; }
  .release-post-wrap { padding: 48px 0 60px; }
  .release-pagination { grid-template-columns: 1fr; }
  .release-pagination-link.next { grid-column: 1; text-align: left; }
}
