/* 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-container {
  margin-top: 2rem;
  text-align: center;
}

.explore-books-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #2c2c2c;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  border: none;
  transition: all 0.3s ease;
  font-family: 'Cascadia Code', 'Roboto', sans-serif;
}

.explore-books-btn:hover {
  background: linear-gradient(135deg, #f4d03f, #d4af37);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.explore-books-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.explore-books-btn .btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.explore-books-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.explore-books-btn i:first-child {
  font-size: 1.2rem;
}

/* 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 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  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;
  width: fit-content;
}

.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;
  }

  .explore-books-btn {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    gap: 0.6rem;
    border-radius: 20px;
  }

  .explore-books-btn i:first-child,
  .explore-books-btn .btn-arrow {
    font-size: 1rem;
  }

  .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;
  }

  .explore-books-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .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) {
  .explore-books-btn {
    padding: 1rem 2rem;
    min-height: 50px;
    font-size: 1rem;
  }

  .explore-books-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #f4d03f, #d4af37);
  }

  .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;
  }
}
