/* ============================================
   PROJECT DETAIL PAGE - savage.design
   Individual portfolio item
   ============================================ */

/* Override full-screen lock from index.css */
html, body {
  height: auto !important;
  min-height: 100% !important;
  overflow: auto !important;
}

/* Container */
.project-container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 48px 80px;
  box-sizing: border-box;
}

/* Back button */
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  text-decoration: none;
  font-size: 14px;
  height: auto;
  line-height: 1.5;
  padding: 8px 16px;
}

/* Hero image */
.project-hero {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.project-hero__image {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Project Content
   ============================================ */

.project-content__title {
  font-size: var(--h3-size);
  line-height: var(--h3-line-height);
  margin-bottom: 16px;
}

/* Category badges */
.project-content__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge-pill {
  padding: 5px 14px;
  background: rgba(255, 208, 0, 0.12);
  border: 1px solid rgba(255, 208, 0, 0.3);
  border-radius: 9999px;
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-accent);
  text-transform: capitalize;
}

/* Meta row */
.project-content__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-family: var(--font-secondary);
  font-size: var(--p-sm-size);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

.meta-sep {
  opacity: 0.3;
}

/* Description */
.project-content__description {
  margin-bottom: 40px;
}

.project-content__description p {
  font-size: var(--p-size);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

/* Section titles */
.project-content__section-title {
  font-size: var(--h5-size);
  line-height: var(--h5-line-height);
  margin-bottom: 12px;
  color: var(--color-accent);
}

/* Technologies */
.project-content__tech {
  margin-bottom: 32px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

/* Challenges & Solutions */
.project-content__challenges,
.project-content__solutions {
  margin-bottom: 32px;
}

.project-content__challenges p,
.project-content__solutions p {
  font-size: var(--p-size);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

/* CTA */
.project-content__cta {
  margin: 40px 0;
  text-align: center;
}

/* ============================================
   Related Projects
   ============================================ */

.project-content__related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.related-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 200ms ease, border-color 200ms ease;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 208, 0, 0.2);
}

.related-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.related-card__title {
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-white);
}

/* ============================================
   Responsive - Tablet
   ============================================ */

@media (min-width: 800px) and (max-width: 1279px) {
  .project-container {
    padding: 90px 32px 60px;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */

@media (max-width: 799px) {
  .project-container {
    padding: 80px 16px 40px;
  }

  .project-hero__image {
    max-height: 40vh;
  }

  .project-content__meta {
    flex-wrap: wrap;
    gap: 8px;
  }

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