/* ============================================================
   Webmatx — Project / Case Study page styles
   ============================================================ */

/* ── Project Hero ── */
.project-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  color: var(--color-white);
  padding: 72px 0 56px;
}
.project-hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.project-hero-meta .tag {
  background: rgba(99,102,241,.25);
  color: #A5B4FC;
  font-size: .78rem;
}
.project-hero .section-title { color: var(--color-white); max-width: 780px; }
.project-hero .section-lead { color: #CBD5E1; }
.project-hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.project-hero-stats .hero-stat-num { color: var(--color-white); font-size: 1.7rem; }
.project-hero-stats .hero-stat-label { color: #94A3B8; font-size: .82rem; }

/* ── Cover image ── */
.project-cover { background: var(--color-primary); padding: 0 0 64px; }
.project-cover img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* ── Layout ── */
.project-body { padding: 72px 0 80px; }
.project-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 960px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-sidebar { order: -1; }
}

/* ── Main article ── */
.project-main { min-width: 0; }
.project-section { margin-bottom: 56px; }
.project-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-mid);
}
.project-section p {
  color: var(--color-muted);
  line-height: 1.8;
  font-size: .97rem;
  margin-bottom: 16px;
}
.project-section p:last-child { margin-bottom: 0; }

/* ── Feature list ── */
.feature-list-styled { display: flex; flex-direction: column; gap: 20px; margin: 24px 0; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }
.feature-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(99,102,241,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; color: var(--color-primary); }
.feature-item p { font-size: .875rem; color: var(--color-muted); line-height: 1.6; margin: 0; }

/* ── Tech stack ── */
.tech-stack-used {
  margin-top: 28px;
  padding: 24px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-mid);
}
.tech-stack-used h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); margin-bottom: 14px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  padding: 5px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-mid);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ── Results grid ── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 560px) { .results-grid { grid-template-columns: 1fr; } }
.result-card {
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
}
.result-card.result-positive { background: #ECFDF5; border: 1px solid #6EE7B7; }
.result-number { font-size: 2rem; font-weight: 900; font-family: var(--font-display); color: #065F46; margin-bottom: 6px; }
.result-label { font-size: .85rem; color: #047857; line-height: 1.5; }

/* ── Quote ── */
.project-quote {
  margin: 32px 0 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(139,92,246,.06));
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.project-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 12px;
}
.project-quote footer { font-size: .85rem; font-weight: 600; color: var(--color-accent); }

/* ── Sidebar ── */
.project-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--color-white);
  border: 1px solid var(--color-mid);
  border-radius: var(--radius-md);
  padding: 28px;
}
.sidebar-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--color-primary); padding-bottom: 12px; border-bottom: 1px solid var(--color-mid); }
.project-meta-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .88rem; }
.project-meta-list dt { font-weight: 600; color: var(--color-muted); white-space: nowrap; }
.project-meta-list dd { color: var(--color-text); }
.sidebar-feature-list li { font-size: .875rem; color: var(--color-muted); padding: 6px 0; border-bottom: 1px solid var(--color-light); display: flex; align-items: center; gap: 8px; }
.sidebar-feature-list li:last-child { border-bottom: none; }
.sidebar-feature-list li::before { content: '✓'; color: var(--color-accent); font-weight: 700; flex-shrink: 0; }
.sidebar-cta { background: linear-gradient(135deg, #1E1B4B, #312E81); border: none; color: white; }
.sidebar-cta h3 { color: white; border-bottom-color: rgba(255,255,255,.15); }
.sidebar-cta p { font-size: .875rem; color: #CBD5E1; line-height: 1.6; }

/* ── Related projects ── */
.related-projects { padding: 72px 0; background: var(--color-light); border-top: 1px solid var(--color-mid); }
.related-projects .section-title { margin-bottom: 40px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.related-card {
  background: var(--color-white);
  border: 1px solid var(--color-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: block;
}
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card-body { padding: 20px; }
.related-card-body .tag { margin-bottom: 8px; display: inline-block; }
.related-card-body h3 { font-size: .95rem; font-weight: 700; color: var(--color-primary); line-height: 1.4; }

/* ── Image gallery ── */
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.project-gallery img { border-radius: var(--radius-md); width: 100%; object-fit: cover; aspect-ratio: 16/10; }
@media (max-width: 560px) { .project-gallery { grid-template-columns: 1fr; } }

/* ── Challenge box ── */
.challenge-box {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
}
.challenge-box h4 { font-size: .9rem; font-weight: 700; color: #92400E; margin-bottom: 8px; }
.challenge-box p { font-size: .875rem; color: #92400E; line-height: 1.6; margin: 0; }
