/* ============================================================
   BADONGA — Project detail page styles (project-detail.html)
   ============================================================ */

.pd-nav-actions { display: flex; align-items: center; gap: 1rem; }
.pd-all-link {
  color: var(--gray-300);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.pd-all-link:hover { color: var(--yellow-400); }

.pd-loading {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  padding-top: var(--nav-h);
}

/* Not-found state */
.pd-notfound {
  min-height: 100vh;
  background: var(--gray-950);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 1.5rem;
}
.pd-notfound .nf-icon { font-size: 3.75rem; margin-bottom: 1rem; }
.pd-notfound h1 { font-size: 1.5rem; margin-bottom: 1rem; color: #fff; }
.pd-notfound a { color: var(--yellow-400); }
.pd-notfound a:hover { text-decoration: underline; }

/* Hero banner */
.pd-hero {
  position: relative;
  height: 20rem;
  overflow: hidden;
  margin-top: var(--nav-h);
}
@media (min-width: 768px) {
  .pd-hero { height: 30rem; }
}
.pd-hero img { width: 100%; height: 100%; object-fit: cover; }
.pd-hero .pd-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3) 60%, transparent);
}
.pd-hero .pd-hero-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
}
@media (min-width: 768px) {
  .pd-hero .pd-hero-body { padding: 3rem; }
}
.pd-hero .pd-hero-inner { max-width: 56rem; margin: 0 auto; }
.pd-cat {
  display: inline-block;
  background: var(--yellow-400);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pd-hero h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .pd-hero h1 { font-size: 3rem; }
}
.pd-hero .pd-meta { color: var(--gray-300); font-size: 0.875rem; }
@media (min-width: 768px) {
  .pd-hero .pd-meta { font-size: 1rem; }
}

/* Content */
.pd-content {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.pd-section { margin-bottom: 3.5rem; }
.pd-heading {
  font-size: 1.5rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.pd-heading .dash {
  width: 1.5rem;
  height: 2px;
  background: var(--yellow-400);
  display: inline-block;
}
.pd-overview {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1.125rem;
  margin-top: 1rem;
}

/* Scope + Outcome */
.pd-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .pd-two-col { grid-template-columns: repeat(2, 1fr); }
}
.pd-scope {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
}
.pd-scope h2 { font-size: 1.125rem; color: var(--gray-900); margin-bottom: 1rem; }
.pd-scope li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-700);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.pd-scope .check {
  width: 1.25rem; height: 1.25rem;
  background: var(--yellow-400);
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.pd-outcome {
  background: var(--gray-950);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  color: #fff;
}
.pd-outcome h2 { font-size: 1.125rem; color: var(--yellow-400); margin-bottom: 1rem; }
.pd-outcome > p { color: var(--gray-300); line-height: 1.7; font-size: 0.875rem; }
.pd-facts {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-800);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}
.pd-facts .fact-val { color: var(--yellow-400); font-size: 1.5rem; font-weight: 800; }
.pd-facts .fact-label {
  color: var(--gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Gallery */
.pd-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .pd-gallery { grid-template-columns: repeat(3, 1fr); }
}
.pd-gallery .g-item {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.pd-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.pd-gallery img:hover { transform: scale(1.05); }

/* CTA */
.pd-cta {
  background: var(--yellow-400);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 3.5rem;
}
.pd-cta h2 { font-size: 1.5rem; color: #000; margin-bottom: 0.5rem; }
.pd-cta p { color: rgba(0, 0, 0, 0.7); margin-bottom: 1.5rem; }
.pd-cta a {
  display: inline-block;
  background: #000;
  color: var(--yellow-400);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  transition: background 0.2s;
}
.pd-cta a:hover { background: var(--gray-900); }

/* Related projects */
.pd-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .pd-related { grid-template-columns: repeat(3, 1fr); }
}
.rel-card {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all 0.3s;
}
.rel-card:hover {
  border-color: var(--yellow-300);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
.rel-card .rel-media { position: relative; height: 9rem; overflow: hidden; }
.rel-card .rel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.rel-card:hover .rel-media img { transform: scale(1.05); }
.rel-card .rel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}
.rel-card .rel-cat {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: var(--yellow-400);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.rel-card .rel-body { padding: 1rem; }
.rel-card .rel-title {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: color 0.2s;
}
.rel-card:hover .rel-title { color: var(--yellow-600); }
.rel-card .rel-meta { color: var(--gray-400); font-size: 0.75rem; margin-top: 0.25rem; }
