/* ─────────────────────────────────────────────────────────────
   build.css — Single build journal page styles
   ───────────────────────────────────────────────────────────── */

/* ── Breadcrumb bar ─────────────────────────────────────────── */
.build-breadcrumb-bar {
  padding: 14px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* ── Build hero ─────────────────────────────────────────────── */
.build-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #111;
}
.build-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.build-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px var(--gutter);
}
.build-hero__tag { margin-bottom: 12px; }
.build-hero__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  max-width: 700px;
  text-wrap: balance;
}
.build-hero__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  font-family: 'Inter', sans-serif;
  margin-bottom: 20px;
}

/* ── Build page body layout ─────────────────────────────────── */
.build-body {
  padding: 0 var(--gutter);
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
}
.build-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

/* ── Build info panel (sidebar) ─────────────────────────────── */
.build-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.build-info__header {
  padding: 20px 20px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 0;
}
.build-info__title {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  margin-bottom: 4px;
}
.build-info__subtitle {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
}
.build-info__specs { padding: 16px 20px; }
.build-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.build-spec-row:last-child { border-bottom: none; }
.build-spec-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.build-spec-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  text-align: right;
}
.build-spec-value--status {
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.build-info__tags {
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.build-info__tag-item {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.build-info__tag-item:hover { background: var(--border); color: var(--text); }
.build-info__actions {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.build-info__actions .btn { flex: 1; justify-content: center; }

/* ── Journal posts ───────────────────────────────────────────── */
.journal { display: flex; flex-direction: column; gap: 56px; }
.post {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.post__header { display: flex; flex-direction: column; gap: 10px; }
.post__number {
  font-size: 10px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.post__title {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.post__meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post__date {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'Inter', sans-serif;
}

/* ── Post gallery ───────────────────────────────────────────── */
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery__main {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #e4e4e2;
  aspect-ratio: 16/9;
}
.gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__main svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .15s;
  z-index: 2;
}
.gallery__arrow:hover { background: rgba(0,0,0,.7); }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  z-index: 2;
}
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery__thumb {
  border-radius: 8px;
  overflow: hidden;
  background: #e4e4e2;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, opacity .15s;
  opacity: .7;
}
.gallery__thumb:hover,
.gallery__thumb.active { border-color: var(--accent); opacity: 1; }
.gallery__thumb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Post body text ─────────────────────────────────────────── */
.post__body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post__body p { max-width: 72ch; }
.post__body strong { color: var(--text); font-weight: 600; }

/* ── Post detail box ─────────────────────────────────────────── */
.post__details {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.post__detail-item { display: flex; flex-direction: column; gap: 3px; }
.post__detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: 'Space Grotesk', sans-serif;
}
.post__detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

/* ── Post divider ───────────────────────────────────────────── */
.post-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Related builds ─────────────────────────────────────────── */
.related {
  padding: var(--section-pad);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .build-layout { grid-template-columns: 1fr; }
  .build-info { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .build-hero { height: 380px; }
  .gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
  .post__details { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(2, 1fr); }
  .build-hero { height: 300px; }
}
