/* Playcraft v.2 — Project Detail template styles */
:root {
  /* Dark overlay for 10% image visibility */
  --hero-overlay: linear-gradient(150deg, rgba(8, 11, 14, 0.9) 18%, rgba(8, 11, 14, 0.88) 48%, rgba(8, 11, 14, 0.85) 100%);
  --panel-bg: rgba(255, 255, 255, 0.02);
  --panel-border: rgba(255, 255, 255, 0.06);
  --glow: 0 10px 28px rgba(245, 63, 161, 0.18), 0 6px 20px rgba(0, 236, 255, 0.12);
}

body.project-detail {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', 'Poppins', 'Manrope', sans-serif;
  line-height: 1.6;
}

.project-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6%;
}

.project-hero {
  position: relative;
  min-height: 70vh;
  padding: 140px 6% 80px;
  display: flex;
  align-items: flex-end;
  background-image: var(--hero-overlay), var(--hero-image, linear-gradient(120deg, rgba(30, 33, 38, 0.9), rgba(20, 24, 30, 0.8)));
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(245, 63, 161, 0.12), transparent 36%),
              radial-gradient(circle at 80% 10%, rgba(0, 236, 255, 0.1), transparent 32%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.breadcrumbs {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--second-color);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}

.breadcrumbs a { color: var(--second-color); }
.breadcrumbs a:hover { color: var(--text-color); }

.project-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0 0 12px 0;
  line-height: 1.1;
}

.accent {
  background: linear-gradient(90deg, var(--main-color), var(--other-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.project-title .accent {
  background: linear-gradient(90deg, var(--main-color), var(--other-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  color: var(--second-color);
  margin: 0 0 18px 0;
  max-width: 640px;
}

.project-summary {
  padding: 36px 0 10px;
}

.project-summary p {
  margin: 0;
  color: var(--second-color);
  max-width: 820px;
  line-height: 1.7;
}

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

.tech-tags li {
  list-style: none;
  padding: 5px 9px;
  border-radius: 9px;
  background: radial-gradient(circle at 0% 0%, rgba(245, 63, 161, 0.12), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(245, 63, 161, 0.26);
  color: var(--text-color);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.23px;
  box-shadow: none;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  margin: 40px 0 32px;
}

.section-title {
  font-size: 1.3rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--second-color);
  margin-bottom: 16px;
}

.project-brief {
  padding: 70px 0 40px;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.brief-card {
  padding: 18px;
  border-radius: 14px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.brief-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
}

.brief-card p { margin: 0; color: var(--second-color); }

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 10px 0 60px;
}

.tech-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 28px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.tech-showcase.flip { grid-template-columns: 0.95fr 1.05fr; }

.showcase-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(245, 63, 161, 0.12), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-media.single {
  padding: 0;
  background: transparent;
  border: none;
  min-height: 0;
}

.showcase-media.single img {
  max-width: 90%;
  max-height: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.showcase-media.bento {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.bento-grid {
  display: grid;
  grid-template-rows: 1fr 0.8fr;
  gap: 10px;
  height: 100%;
}

.bento-main {
  border-radius: 12px;
  overflow: hidden;
}

.bento-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.bento-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
  transition: none;
}

.bento-tile.small img {
  aspect-ratio: 1 / 1;
}

.showcase-media img,
.showcase-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel styling (shared with portfolio layout) */
.showcase-media .carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.12));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-media .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 400ms cubic-bezier(.2,.9,.3,1);
  will-change: transform;
}

.showcase-media .carousel-slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showcase-media .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.92;
}

.showcase-media .carousel-prev { left: 12px; }
.showcase-media .carousel-next { right: 12px; }

.showcase-media .carousel-arrow:focus { outline: 2px solid rgba(255,255,255,0.8); }

.showcase-media .carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}

.showcase-media .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  padding: 0;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.showcase-media.carousel-simple {
  background: transparent;
  border: none;
  min-height: 0;
  padding: 0;
}
.showcase-media.carousel-simple .carousel {
  background: transparent;
  border: none;
  height: auto;
  min-height: 0;
}
.showcase-media.carousel-simple .carousel-track {
  height: auto;
}
.showcase-media.carousel-simple .carousel-slide {
  height: auto;
  width: 100%;
  object-fit: contain;
}
.showcase-media.carousel-simple .carousel-arrow {
  background: rgba(0,0,0,0.25);
}

.showcase-media .carousel-indicators button[aria-current="true"] {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(0,0,0,0.28);
  border-color: transparent;
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .showcase-media .carousel { min-height: 200px; }
  .showcase-media .carousel-arrow { width: 32px; height: 32px; }
  .showcase-media .carousel-indicators button { width: 24px; height: 24px; font-size: 11px; }
  .showcase-media.carousel-simple .carousel { min-height: 0; height: auto; }
}

.showcase-copy .eyebrow {
  color: var(--second-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.showcase-copy h3 { margin: 0 0 10px 0; font-size: 1.4rem; }

.showcase-copy {
  font-size: 16px;
  line-height: 1.65;
}

.showcase-copy p { margin: 0 0 12px 0; color: var(--second-color); }

.showcase-copy p,
.showcase-copy li {
  font-size: 16px;
  line-height: 1.65;
}

.showcase-copy ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-color);
  display: grid;
  gap: 6px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill-button,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(245, 63, 161, 0.16), rgba(0, 236, 255, 0.12));
  color: var(--text-color);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  box-shadow: var(--glow);
  text-decoration: none;
}

.pill-button:hover,
.nav-button:hover { transform: translateY(-2px) scale(1.01); }

.pill-button:active,
.nav-button:active { transform: translateY(0); }

.pill-button.ghost,
.nav-button.ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.like-button {
  cursor: pointer;
  border: none;
  font: inherit;
}

.like-button svg { width: 18px; height: 18px; }

.like-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--main-color);
}

.like-button.is-active .like-count {
  background: rgba(245, 63, 161, 0.3);
  color: #fff;
}

.like-button.is-active {
  background: linear-gradient(90deg, rgba(245, 63, 161, 0.8), rgba(0, 236, 255, 0.5));
  box-shadow: 0 12px 30px rgba(245, 63, 161, 0.22);
  border-color: transparent;
}

.interaction-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 80px;
}

.project-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 24px;
  color: var(--second-color);
}

@media (max-width: 980px) {
  .project-hero { padding: 120px 6% 70px; min-height: 60vh; }
  .tech-showcase,
  .tech-showcase.flip { grid-template-columns: 1fr; }
  .project-nav { flex-direction: column; }
  .interaction-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .project-hero { padding: 110px 6% 60px; }
  .project-shell { padding: 0 5%; }
  .pill-button,
  .nav-button { width: 100%; justify-content: center; }
}
