/* ============================================================
   project.css — Shared styles for project detail pages
   ============================================================ */

/* ── Project Hero ─────────────────────────────────────────── */
.project-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 17, 23, 0.55) 0%,
    rgba(13, 17, 23, 0.92) 70%,
    rgba(13, 17, 23, 1) 100%
  );
}

.project-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
}

.project-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
}

.project-hero-sub {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Project Section ──────────────────────────────────────── */
.project-section {
  padding-block: var(--space-3xl);
}

.project-body-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}

/* ── Main Content ─────────────────────────────────────────── */
.ps-heading {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.ps-heading:first-child {
  margin-top: 0;
}

.project-main p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.challenge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color var(--t-base);
}

.challenge-card:hover {
  border-color: var(--border-teal);
}

.challenge-card i {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  display: block;
}

.challenge-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.challenge-card p {
  font-size: 0.82rem !important;
  color: var(--text-secondary);
  margin: 0 !important;
  line-height: 1.6 !important;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-list i {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Event types grid (e-invitation page) */
.event-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.event-type-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
  transition: border-color var(--t-base), transform var(--t-fast);
}

.event-type-card:hover {
  border-color: var(--border-teal);
  transform: translateY(-2px);
}

.event-type-card i {
  font-size: 1.5rem;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stack-dot {
  width: 7px;
  height: 7px;
  background: var(--teal-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.result-stat {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.result-stat:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.result-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.result-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.services-provided {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.services-provided li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.services-provided i {
  font-size: 0.8rem;
}

.sidebar-cta-card {
  text-align: center;
}

.sidebar-cta-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── CTA Section ──────────────────────────────────────────── */
.project-cta {
  padding-block: var(--space-3xl);
  text-align: center;
}

.project-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-cta p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.project-cta .btn-primary,
.project-cta .btn-outline {
  margin: 0 0.5rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .project-body-grid {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
  }

  .challenge-grid {
    grid-template-columns: 1fr;
  }

  .event-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .project-meta-row {
    gap: 1rem 2rem;
  }

  .event-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-cta .btn-primary,
  .project-cta .btn-outline {
    display: block;
    margin: 0.5rem auto;
    max-width: 240px;
    text-align: center;
    justify-content: center;
  }
}
