/* ========================================
   PROJECT PAGE STYLES
   ======================================== */

:root {
  --col-data: #a20ddd;
  --col-ux:   #0cbbf0;
  --col-code: #f00c2e;
  --col-arch: #08d504;
  --col-xr:   #f88f05;
  --col-sand: #f018b3;
  
}

body.project-page {
  background: #ffffff;
  color: #111;
  font-family: 'DM Sans', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Nav adjustments for white background */
body.project-page .navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee;
}
body.project-page .nav-menu a { color: #111; }
body.project-page .nav-menu a:hover { color: #888; }
body.project-page .hamburger span { background: #111; }

/* ══════════════════════════════════════
   PROJECT HEADER
══════════════════════════════════════ */
.project-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 48px 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #111;
}

.back-link svg {
  transition: transform 0.2s ease;
}

.back-link:hover svg {
  transform: translateX(-4px);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.project-category {
  display: inline-block;
  padding: 8px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #111;
  border-radius: 4px;
}

.project-date {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.05em;
}

.project-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: #111;
}

.project-intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  text-align: justify;
  font-size: clamp(16px, 1.8vw, 2px);
  line-height: 1.6;
  max-width: 1100px;
  color: #333;
  margin: 0 0 48px;
}

.project-hero-img {
  flex: 0 0 320px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.project-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid #e8e8e8;
  text-align: justify;
}

.detail-item h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: #111;
}

.detail-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 12px;
}

.detail-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-item ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.detail-item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: #FFE600;
}

/* ══════════════════════════════════════
   PROJECT CONTENT
══════════════════════════════════════ */
.project-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.content-section {
  padding: 60px 0;
  border-top: 1px solid #e8e8e8;
}

.content-section:first-child {
  border-top: none;
  padding-top: 0;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: #111;
}

.subsection-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 48px 0 24px;
  color: #111;
}

.content-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 16px;
  color: #111;
  text-align: justify;
}

.content-section h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 24px 0 12px;
  color: #111;
}

.content-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
  margin: 0 0 20px;
}

.content-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.content-section ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 2px;
  background: #FFE600;
}

.content-section strong {
  color: #111;
  font-weight: 600;
}

.content-section em {
  font-family: 'Fraunces', serif;
  font-style: italic;
}

/* ══════════════════════════════════════
   IMAGES & MEDIA
══════════════════════════════════════ */
.content-image {
  width: 100%;
  margin: 32px 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
}

.content-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.content-image-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}


/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  margin: 32px 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ══════════════════════════════════════
   SPECIAL COMPONENTS
══════════════════════════════════════ */

/* Test Items */
.test-item {
  background: #fafafa;
  border-left: 4px solid #FFE600;
  padding: 24px;
  margin: 24px 0;
  border-radius: 4px;
}

.test-item h4 {
  margin-top: 0;
}

.test-result {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid #eee;
}

.test-result:first-of-type {
  border-top: none;
  padding-top: 0;
}

.test-result h3,
.test-result h4 {
  margin-top: 0;
}

/* Score Box & Game Info Box */
.score-box,
.game-info-box {
  background: #fafafa;
  border: 2px solid #FFE600;
  padding: 32px;
  margin: 32px 0;
  border-radius: 8px;
}

.score-box h3,
.game-info-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.score-box ul,
.game-info-box ul {
  margin-bottom: 16px;
}

.score-box p {
  margin-bottom: 0;
  font-size: 18px;
}

/* Game Screens */
.game-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 32px 0;
}

.screen-item {
  text-align: center;
}

.screen-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 12px;
}

.screen-caption {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0;
}

/* External Link (like Mural) */
.mural-link {
  margin: 32px 0;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.external-link:hover {
  background: #111;
  color: #FFE600;
  border-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.external-link svg {
  width: 16px;
  height: 16px;
}

/* Download Section */
.download-section {
  background: #fafafa;
  border-radius: 12px;
  padding: 48px;
  margin: 60px 0 0;
}

.download-info h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.download-info ul {
  margin-bottom: 24px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  background: #FFE600;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: 16px;
}

.download-button:hover {
  background: #111;
  color: #FFE600;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.download-button svg {
  width: 20px;
  height: 20px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {

  .project-intro {
    flex-direction: column;
  }

  .project-hero-img {
    width: 100%;
  }

  .project-header {
    padding: 120px 24px 60px;
  }

  .project-content {
    padding: 0 24px 60px;
  }

  .content-section {
    padding: 40px 0;
  }

  .project-details {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-image-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .game-screens {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .download-section {
    padding: 32px 24px;
  }

  .test-item {
    padding: 20px;
  }

  .score-box {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .project-header {
    padding: 100px 20px 40px;
  }

  .project-content {
    padding: 0 20px 40px;
  }

  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .subsection-title {
    margin-top: 32px;
  }
}
