/* ── Page Header ──────────────────────────────────────────────────── */
.page-header {
  padding: 72px 24px 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 60% at 60% 50%, rgba(75,158,255,0.06) 0%, transparent 60%);
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ── Nav active state ─────────────────────────────────────────────── */
.nav-active {
  color: var(--text-bright) !important;
}

/* ── Devlog main ──────────────────────────────────────────────────── */
.devlog-main {
  padding: 80px 24px 96px;
}

/* ── Timeline ─────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical rule */
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border) 8%,
    var(--border) 92%,
    transparent
  );
}

/* ── Timeline Entry ───────────────────────────────────────────────── */
.entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 40px;
  padding-bottom: 72px;
  position: relative;
}

/* Dot on the timeline */
.entry::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  z-index: 1;
}

/* ── Entry meta (date + tag) ──────────────────────────────────────── */
.entry-meta {
  padding-top: 8px;
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.entry-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.entry-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(75,158,255,0.2);
  border-radius: 100px;
  padding: 3px 9px;
}

.entry-tag--current {
  color: var(--green);
  background: rgba(61,214,140,0.1);
  border-color: rgba(61,214,140,0.25);
}

/* ── Entry body ───────────────────────────────────────────────────── */
.entry-body {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.entry-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  min-height: 1.4em; /* keeps layout stable while placeholder */
}

/* Dim empty titles so they don't distract */
.entry-title:empty::before {
  content: 'Entry title';
  color: var(--surface-2);
}

.entry-content {
  margin-bottom: 32px;
}

.entry-content p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: 720px;
}

.entry-content p:last-child { margin-bottom: 0; }

/* ── Autodesk / 3D embed ──────────────────────────────────────────── */
.model-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.model-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* Placeholder shown when iframe is commented out */
.embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: var(--surface);
}

.embed-placeholder-inner {
  text-align: center;
  padding: 32px 24px;
  max-width: 380px;
}

.embed-icon {
  font-size: 2rem;
  opacity: 0.2;
  display: block;
  margin-bottom: 14px;
}

.embed-placeholder-inner p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Hide the placeholder once the iframe is uncommented/present */
.model-embed:has(iframe) .embed-placeholder {
  display: none;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .entry {
    grid-template-columns: 1fr;
    padding-left: 32px;
    gap: 12px 0;
  }

  .entry-meta {
    padding-left: 0;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .timeline::before {
    left: 5px;
  }

  .entry::before {
    left: -1px;
  }
}
