/* ==========================================================================
   Project Header (Hero + Info Bar = 100vh)
   Classes: single-project.php
   ========================================================================== */

.project-header {
  --info-bar-height: 5rem;
  display: flex;
  flex-direction: column;
}

/* ---------- Hero Section ---------- */
.project-hero {
  position: relative;
  height: calc(100vh - 2 * var(--info-bar-height));
  overflow: hidden;
  background-color: var(--color-bg);
}

/* ---------- Featured Image ---------- */
.project-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition-slow);
}

.project-hero:hover .project-hero__image {
  filter: grayscale(0%);
}

/* ---------- Gradient Overlay ---------- */
.project-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(13, 13, 18, 0.3) 50%,
    var(--color-bg) 100%
  );
  pointer-events: none;
}

/* ---------- Content (positioned at bottom) ---------- */
.project-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .project-hero__content {
    padding-bottom: 5rem;
  }
}

/* ---------- Meta (category badge + year) ---------- */
.project-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ---------- Category Badge ---------- */
.project-hero__category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
}

/* ---------- Year ---------- */
.project-hero__year {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* ---------- Title Row (title + gallery button) ---------- */
.project-hero__title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .project-hero__title-row {
    flex-direction: row;
    align-items: flex-end;
    gap: 2rem;
  }
}

.project-hero__gallery-btn {
  pointer-events: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  text-decoration: none;
  letter-spacing: 0.025em;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.05);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.project-hero__gallery-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.project-hero__gallery-arrow {
  opacity: 0.5;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.project-hero__gallery-btn:hover .project-hero__gallery-arrow {
  opacity: 1;
  transform: translateY(2px);
}

/* ---------- Title ---------- */
.project-hero__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  line-height: 1.1;
  max-width: 56rem;
}

@media (min-width: 768px) {
  .project-hero__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .project-hero__title {
    font-size: 3.75rem;
  }
}

/* ---------- Info Bar (sits below hero) ---------- */
.info-bar {
  padding: 2rem 0;
}

.info-bar__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .info-bar__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-bar__item {
  display: flex;
  flex-direction: column;
}

.info-bar__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.info-bar__value {
  font-weight: var(--font-weight-medium);
}
