/* Home Page Styles - Clean, Data-First Design */

.home-page {
  min-height: 100vh;
  background-color: #f5f1e8;
  /* Beige background */
}

/* Header */
.home-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0ddd4;
  padding: 2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible; /* Allow logo to extend beyond header bounds */
}

.home-header-content {
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 0; /* Removed negative margin to prevent nav overlap */
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.home-logo-link {
  display: flex;
  align-items: center;
}

.home-logo {
  height: 80px; /* Reduced from 96px */
  width: auto;
  margin-bottom: -1rem; /* Reduced from -3rem to prevent overlap */
  margin-top: -1rem; /* Reduced from -3rem */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 10;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.home-nav-link {
  font-size: 1rem;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.home-nav-link:hover {
  color: #333;
}

.home-nav-link--cta {
  background-color: #333;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.home-nav-link--cta:hover {
  background-color: #000;
  color: #fff;
}

/* Hero Section */
.home-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.home-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.home-hero-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin: 0 0 3rem 0;
  letter-spacing: -0.02em;
  text-align: center;
}

.home-hero-image {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

.home-hero-caption {
  padding: 1.5rem;
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.home-hero-link {
  color: #333;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.home-hero-link:hover {
  color: #000;
}

/* Documentation Section */
.home-docs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background-color: #ffffff;
}

.home-section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 2rem 0;
  text-align: center;
  letter-spacing: -0.02em;
}

.home-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.home-doc-box {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  border: 1px solid #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #ffffff;
}

.home-doc-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Bookmark image on left side - 1/8th width */
.home-doc-box__image-container {
  width: 12.5%;
  /* 1/8th */
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.home-doc-box__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Content on right side - 7/8ths width */
.home-doc-box__content {
  width: 87.5%;
  /* 7/8ths */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.home-doc-box-title {
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
  color: #000000;
}

.home-doc-box-description {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #000000;
  margin: 0;
}

/* Tutorials Section */
.home-tutorials {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background-color: #fafaf8;
}

.home-tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.home-tutorial-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e0ddd4;
  border-radius: 4px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.home-tutorial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #333;
}

.home-tutorial-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.home-tutorial-card-description {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Examples Section */
.home-examples {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.home-section-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
  text-align: center;
}

.home-examples-content {
  margin-top: 2rem;
}

/* Gallery Categories */
.home-gallery-category {
  margin-bottom: 4rem;
}

.home-gallery-category:last-child {
  margin-bottom: 2rem;
}

.home-gallery-category-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0ddd4;
}

/* Gallery Grid */
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Example Cards */
.home-example-card {
  display: block;
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.home-example-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Example Thumbnail */
.home-example-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #fafaf8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
}

.home-example-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Example Card Content */
.home-example-card-content,
.home-example-content {
  padding: 1.25rem 1.5rem;
}

.home-example-card-title,
.home-example-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.home-example-card-description,
.home-example-description {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Examples Grid */
.home-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem auto;
}

/* Gallery CTA */
.home-gallery-cta {
  text-align: center;
  margin-top: 2rem;
}

.home-gallery-link {
  display: inline-block;
  font-size: 1.1rem;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid #333;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.home-gallery-link:hover {
  background-color: #333;
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .home-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .home-header-content {
    padding: 0 2rem;
  }

  .home-hero {
    padding: 4rem 2rem;
  }

  .home-docs,
  .home-tutorials,
  .home-examples {
    padding: 3rem 2rem;
  }

  .home-hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .home-header {
    padding: 1.5rem 0;
  }

  .home-header-content {
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

  .home-logo {
    height: 36px;
  }

  .home-nav {
    gap: 1.25rem;
  }

  .home-nav-link {
    font-size: 0.9rem;
  }

  .home-nav-link--cta {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .home-hero {
    padding: 3rem 1.5rem;
  }

  .home-hero-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .home-hero-caption {
    font-size: 0.9rem;
    padding: 1.25rem;
  }

  .home-docs,
  .home-tutorials,
  .home-examples {
    padding: 3rem 1.5rem;
  }

  .home-section-title {
    font-size: 1.75rem;
  }

  .home-tutorials-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
  }

  .home-docs-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.25rem;
  }

  .home-doc-box {
    aspect-ratio: auto;
    min-height: 180px;
  }

  .home-doc-box-title {
    font-size: 1.1rem;
  }

  .home-doc-box-description {
    font-size: 0.9rem;
  }

  .home-gallery-grid,
  .home-examples-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .home-gallery-category {
    margin-bottom: 3rem;
  }

  .home-tutorial-card {
    padding: 1.25rem;
  }

  .home-tutorial-card-title {
    font-size: 1rem;
  }

  .home-tutorial-card-description {
    font-size: 0.85rem;
  }

  .home-example-card-content {
    padding: 1rem 1.25rem;
  }

  .home-example-card-title {
    font-size: 1rem;
  }

  .home-example-card-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .home-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .home-nav {
    width: 100%;
    justify-content: space-between;
  }

  .home-nav-link {
    font-size: 0.85rem;
  }

  .home-nav-link--cta {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }

  .home-hero-title {
    font-size: 1.5rem;
  }

  .home-section-title {
    font-size: 1.5rem;
  }
}