/* ===================================
   Land of Forgotten Project Page
   Matches Figma design aesthetic
   =================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400;500;600;700&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* Main Container */
.land-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* Figma gradient background - brown to purple */
  background: linear-gradient(180deg, #845F02 0%, #6D4F7C 100%);

  margin-left: 60px; /* Account for left navigation bar */
  padding: 60px 80px;
}

.land-content {
  max-width: 1200px;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
  text-align: left;
}

.project-title {
  font-family: "Kode Mono", monospace;
  font-size: 48px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.project-subtitle {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Main Image Section
   =================================== */

.main-image-section {
  margin-top: 20px;
}

.main-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* ===================================
   Overview Section
   =================================== */

.overview-section {
  max-width: 1440px;
}

.overview-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Content Sections (HighLand, River, Installation)
   =================================== */

.content-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.section-title {
  font-family: "Kode Mono", monospace;
  font-size: 32px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-description {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 1440px;
  margin-bottom: 15px;
}

/* ===================================
   Image Gallery System
   =================================== */

.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.main-image:hover {
  opacity: 0.9;
}

.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 400px;
}

.thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1; /* Always square */
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background-color: rgba(255, 255, 255, 0.15);
}

.thumbnail:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.thumbnail:active {
  transform: scale(0.98);
}

/* ===================================
   Case Study Button
   =================================== */

.case-study-button-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.case-study-button {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 16px 40px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);

  cursor: not-allowed;
  transition: all 0.3s ease;
}

.case-study-button:disabled {
  background: transparent;
}

/* ===================================
   Credits Section
   =================================== */

.credits-section {
  margin-top: 20px;
  text-align: center;
}

.credits-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.credits-text a {
  color: #ffffff;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.credits-text a:hover {
  opacity: 0.7;
}

/* ===================================
   Footer
   =================================== */

.page-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   Responsive Design
   =================================== */

@media screen and (max-width: 768px) {
  .land-container {
    margin-left: 0; /* Remove nav bar space on mobile */
    padding: 40px 30px;
  }

  .land-content {
    gap: 40px;
  }

  .project-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 24px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .overview-text,
  .section-description {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .land-container {
    padding: 30px 20px;
  }

  .project-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 20px;
  }

  .thumbnail-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ===================================
   Accessibility
   =================================== */

.thumbnail:focus,
.main-image:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .thumbnail,
  .main-image,
  .main-image-container img {
    transition: none;
  }
}
