/* Project page styles (extracted from prototype/project.html) */

.project-page { padding-bottom: 80px; }

/* Hero */
.project-hero {
  padding-top: 32px;
  padding-bottom: 56px;
}
.project-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.project-breadcrumb a { color: var(--text-muted); }
.project-breadcrumb a:hover { color: var(--accent); }
.project-breadcrumb-sep { margin: 0 8px; opacity: 0.6; }
.project-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.project-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(46,204,113,0.12);
  color: var(--success);
  border: 1px solid rgba(46,204,113,0.3);
}
.project-status-badge.prototype { background: rgba(245,158,11,0.12); color: var(--warning); border-color: rgba(245,158,11,0.3); }
.project-status-badge.archived { background: var(--surface2); color: var(--text-dim); border-color: var(--border2); }
.project-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.project-hero-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 28px;
}
.project-hero-visual {
  width: 100%;
  /* max-width: 900px; */
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.project-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.project-hero-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(80%, 860px);
  padding: 14px 16px;
  z-index: 2;
  background: rgba(0,0,0,0.48);
  border-top: 1px solid rgba(255,255,255,0.14);
  border-right: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 16px 0 0;
  backdrop-filter: blur(6px);
}
.project-hero-overlay-inner {
  max-width: 100%;
  color: rgba(255,255,255,0.94);
  font-size: 0.92rem;
  line-height: 1.55;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
  padding: 0;
}
.project-hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(108,114,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,114,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.project-hero-visual .placeholder-icon {
  width: 64px; height: 64px;
  color: var(--text-dim);
  opacity: 0.4;
  position: relative;
  z-index: 1;
}
.project-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.project-hero-cta .btn:not(.btn-primary) { margin-left: 0; }

/* Quick facts */
.project-quick-facts {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.project-facts-heading {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.project-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.project-fact {
  background: var(--bg);
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 88px;
}
.project-fact-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}
.project-fact-icon {
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.75;
  line-height: 1;
  flex-shrink: 0;
}
.project-fact-key {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  line-height: 1;
}
.project-fact-val {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.project-fact-val.val-lg {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.project-fact-val small {
  display: block;
  font-size: 0.73rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}
.project-fact-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
}
.project-fact-badge.badge-success {
  background: rgba(46,204,113,0.12);
  color: var(--success);
  border: 1px solid rgba(46,204,113,0.3);
}
.project-fact-badge.badge-warning {
  background: rgba(243,156,18,0.12);
  color: var(--warning);
  border: 1px solid rgba(243,156,18,0.3);
}
.project-fact-badge.badge-info {
  background: rgba(108,114,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(108,114,255,0.28);
}

/* Content width for prose */
.project-prose {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Prose generated content (markdown h2/h3/h4, ul, ol) ── */
.project-prose h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 32px 0 10px;
}
.project-prose h2:first-child { margin-top: 0; }
.project-prose h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 24px 0 8px;
}
.project-prose h4 {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 20px 0 8px;
}
.project-prose ul,
.project-prose ol {
  padding-left: 1.4em;
  margin: 6px 0 14px;
}
.project-prose li {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 5px;
}
.project-prose li:last-child { margin-bottom: 0; }
.project-prose ul li::marker { color: var(--accent); opacity: 0.7; }
.project-prose ol li::marker { color: var(--accent); font-weight: 600; }
.project-prose a,
.project-build-block a,
.project-section p a,
.project-section li a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
.project-prose a:hover,
.project-build-block a:hover,
.project-section p a:hover,
.project-section li a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

/* Section spacing */
.project-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.project-section:first-of-type { border-top: none; }
.project-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.project-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.project-section p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.project-section p:last-child { margin-bottom: 0; }

/* Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.project-gallery-item {
  aspect-ratio: 4/3;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-gallery-item .placeholder-icon {
  width: 40px; height: 40px;
  color: var(--text-dim);
  opacity: 0.35;
}

/* Build details blocks */
.project-build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.project-build-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 26px;
  border-left: 3px solid var(--accent);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.project-build-block:hover {
  border-left-color: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.project-build-block h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.project-build-block ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
}
.project-build-block li {
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}
.project-build-block li:last-child { margin-bottom: 0; }
.project-build-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* Key features */
.project-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.project-feature {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* Related guides */
.project-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.project-related-tile {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.project-related-tile:hover {
  border-color: rgba(108,114,255,0.42);
  transform: translateY(-1px);
}
.project-related-thumb {
  width: 92px;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface2);
}
.project-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-related-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

/* Links / downloads */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, color 0.15s;
}
.project-links a:hover { border-color: var(--accent); color: var(--accent); }

/* Final notes */
.project-final-notes {
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.project-final-notes p { margin-bottom: 10px; }

/* Related projects nav */
.project-related-projects {
  padding: 40px 0 20px;
  border-top: 1px solid var(--border);
}
.project-related-projects-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.project-related-projects a {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 280px;
}
.project-related-projects a:hover { color: var(--accent); }
.project-related-projects .label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

@media (max-width: 800px) {
  .project-build-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .project-gallery { grid-template-columns: 1fr; }
  .project-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .project-features { grid-template-columns: 1fr; }
  .project-related-grid { grid-template-columns: 1fr; }
  .project-related-projects-inner { flex-direction: column; }
}
