/* ══════════════════════════════════════════════
   SpiranS — Project page styles
══════════════════════════════════════════════ */

/* ── Breadcrumb ─────────────────────────────── */
.sp-breadcrumb {
  background: var(--sp-warm);
  border-bottom: 1px solid var(--sp-border);
  padding: .65rem 0;
}
.sp-breadcrumb .breadcrumb {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .82rem;
  margin: 0;
}
.sp-breadcrumb .breadcrumb-item a { color: var(--sp-green); text-decoration: none; }
.sp-breadcrumb .breadcrumb-item.active { color: var(--sp-muted); }
.sp-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--sp-border); }

/* ── Project Hero ───────────────────────────── */
.proj-hero {
  background: var(--sp-warm);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--sp-border);
}

.proj-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--sp-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.proj-lead {
  font-size: 1.05rem;
  color: var(--sp-muted);
  line-height: 1.75;
  margin-bottom: 1.8rem;
  max-width: 52ch;
}

.proj-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sp-border);
}

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

.proj-meta-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sp-muted);
}

.proj-meta-value {
  font-size: .97rem;
  font-weight: 600;
  color: var(--sp-text);
}

.proj-hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--sp-green-light), #fff);
  border-radius: 12px;
  border: 2px dashed var(--sp-green-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-placeholder);
  font-style: italic;
  font-size: .9rem;
}
.proj-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Content area ───────────────────────────── */
.proj-content {
  padding: 3.5rem 0 4rem;
}

.proj-section {
  margin-bottom: 2.8rem;
}

.proj-section:last-child { margin-bottom: 0; }

.proj-section-title,
.proj-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sp-green-dark);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--sp-green-light);
}

.proj-section p {
  color: var(--sp-text);
  line-height: 1.8;
  margin-bottom: .9rem;
  text-align: justify;
}

.proj-list {
  padding-left: 1.2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.proj-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--sp-text);
  line-height: 1.75;
}

.proj-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sp-green);
}

/* ── Stats row ──────────────────────────────── */
.proj-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.proj-stat {
  background: var(--sp-green-light);
  border: 1px solid var(--sp-green-border);
  border-radius: var(--sp-radius);
  padding: 1.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-width: 120px;
  flex: 1;
}

.proj-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sp-green-dark);
  line-height: 1;
}

.proj-stat-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .78rem;
  color: var(--sp-muted);
  text-align: center;
}

/* ── Gallery ────────────────────────────────── */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}

.proj-gallery-item {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--sp-green-light), #fff);
  border-radius: 8px;
  border: 1.5px dashed var(--sp-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-placeholder);
  font-style: italic;
  font-size: .8rem;
  overflow: hidden;
}
.proj-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── YouTube embed placeholder ──────────────── */
.proj-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--sp-video-bg);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.proj-video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  color: rgba(255,255,255,.5);
  font-style: italic;
  font-size: .9rem;
}

.proj-video-placeholder .play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ── Sidebar ────────────────────────────────── */
.proj-sidebar-card {
  background: var(--sp-warm);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.proj-sidebar-title {
  font-size: .9rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sp-muted);
  margin-bottom: .9rem;
}

.proj-partner-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.proj-partner-list li {
  font-size: .9rem;
  color: var(--sp-text);
  padding-left: 1rem;
  position: relative;
}

.proj-partner-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--sp-green);
  font-weight: 700;
}

.proj-sidebar-cta {
  background: var(--sp-green-light);
  border-color: var(--sp-green-border);
}

/* ── More projects ──────────────────────────── */
.proj-more {
  background: var(--sp-warm);
  border-top: 1px solid var(--sp-border);
  padding: 3rem 0;
}

.proj-more-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sp-text);
  margin-bottom: 1.5rem;
}

/* ── PneumoDialog — podcast grid ────────────── */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.podcast-tile {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  overflow: hidden;
  box-shadow: var(--sp-shadow);
  transition: transform .18s, box-shadow .18s;
}

.podcast-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.podcast-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--sp-video-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.podcast-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.podcast-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.4);
}

.podcast-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
}

.podcast-body {
  padding: .9rem 1rem 1rem;
}

.podcast-ep {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sp-green);
  margin-bottom: .3rem;
}

.podcast-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--sp-text);
  line-height: 1.4;
  margin-bottom: .4rem;
}

.podcast-sub {
  font-size: .8rem;
  color: var(--sp-muted);
  font-style: italic;
}

/* ── Future episode tiles ───────────────────── */
.podcast-tile--future .podcast-thumb            { background: #f0f0f0; }
.podcast-tile--future .podcast-thumb-placeholder { color: #bbb; }
.podcast-tile--future .podcast-play             { border-color: #ddd; color: #ccc; }
.podcast-tile--future .podcast-thumb span       { font-size: .75rem; }
.podcast-tile--future .podcast-ep,
.podcast-tile--future .podcast-title            { color: #bbb; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .proj-gallery { grid-template-columns: repeat(2, 1fr); }
  .proj-stats-row { flex-direction: column; }
  .proj-stat { flex-direction: row; align-items: center; min-width: 0; }
}

@media (max-width: 480px) {
  .proj-gallery { grid-template-columns: 1fr; }
  .podcast-grid { grid-template-columns: 1fr; }
}
