/* Home Page Styles */

/* Hero */
.home-hero {
  background: linear-gradient(135deg, #f8f5e4 0%, #f0ead6 100%);
  padding: 2rem 2rem;
  text-align: center;
  border-bottom: 3px solid #d4af37;
  margin-bottom: 3rem;
  width: 100%;
}

.home-hero h1 {
  font-family: 'Tagesschrift', 'Eagle Lake', serif;
  font-size: 3.5rem;
  color: #8b4513;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  letter-spacing: 2px;
}

.home-hero .subtitle {
  font-family: 'Eagle Lake', serif;
  font-size: 1.2rem;
  color: #666;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.home-hero .description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.explore-books {
  display: inline-block;
  color: #d4af37;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  width: 100%;
  font-weight: 500;
}

.explore-books a {
  text-decoration: underline;
  color: #d4af37;
}

/* Topic Search */
.topic-search-section {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  width: 75%;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 2px solid #f0ead6;
}

.topic-search-section h2 {
  font-family: 'MedievalSharp', serif;
  color: #8b4513;
    margin-bottom: 1rem;
  text-align: center;
}

.topic-search-section p {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.topic-tag {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  user-select: none;
}

.topic-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #b8941f, #d4af37);
}

/* Books Preview */
.books-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  width: 75%;
}

.book-preview-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid #f0ead6;
  transition: transform 0.3s ease;
}

.book-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-preview-card h3 {
  font-family: 'MedievalSharp', serif;
  color: #8b4513;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.book-preview-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.book-preview-card .book-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #8b4513, #a0522d);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.book-preview-card .book-link:hover {
  background: linear-gradient(135deg, #a0522d, #8b4513);
  transform: translateX(5px);
}

/* Features Section */
.features-section {
  background: linear-gradient(135deg, #f8f5e4 0%, #f0ead6 100%);
  border-radius: 15px;
  padding: 2.5rem;
  width: 75%;
}

.features-section h2 {
  font-family: 'MedievalSharp', serif;
  color: #8b4513;
  text-align: center;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-item .icon {
  font-size: 2.5rem;
  color: #d4af37;
  margin-bottom: 1rem;
}

.feature-item h3 {
  color: #8b4513;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: #666;
  font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .home-hero {
    padding: 1.5rem 1rem;
  }

  .home-hero h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .home-hero .subtitle {
    font-size: 1rem;
  }

  .home-hero .description {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .topic-search-section {
    width: 100%;
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .topic-search-section h2 {
    font-size: 1.3rem;
  }

  .topic-tags {
    gap: 0.3rem;
  }

  .topic-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 20px;
  }

  .book-preview-card {
    padding: 1rem;
  }

  .book-preview-card h3 {
    font-size: 1.2rem;
  }

  .book-preview-card p {
    font-size: 0.9rem;
  }

  .features-section {
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .feature-item {
    padding: 1rem;
  }

  .feature-item .icon {
    font-size: 2rem;
  }

  .feature-item h3 {
    font-size: 1rem;
  }

  .feature-item p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .home-hero {
    margin-top: 0;
    padding: 2rem 1rem;
  }

  .home-hero h1 {
    font-size: 2.8rem;
    letter-spacing: 1.5px;
  }

  .home-hero .description {
    font-size: 1.05rem;
  }

  .topic-search-section {
    padding: 1.5rem;
  }

  .topic-tags {
    gap: 0.5rem;
  }

  .topic-tag {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .books-preview {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .book-preview-card {
    padding: 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .home-hero h1 {
    font-size: 3.2rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .topic-tag {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .book-preview-card .book-link {
    padding: 1rem 1.5rem;
    min-height: 44px;
  }

  .feature-item {
    padding: 1.5rem;
  }
}
