/* Books Page Styles */

/* Layout */
.books-main-container {
  background: linear-gradient(135deg, #fcfad9 0%, #f8f5e4 100%);
  min-height: 100vh;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.books-sidebar {
  flex: 1;
  max-width: 200px;
}

.books-content {
  flex: 2;
  max-width: 1200px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 2px solid #f0ead6;
  padding: 3rem 2.5rem;
  margin: 0 1rem;
}

/* Header */
.books-title {
  font-family: 'Tagesschrift', 'Eagle Lake', serif;
  font-size: 3rem;
  color: #8b4513;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.books-subtitle {
  font-family: 'Eagle Lake', serif;
  font-size: 1.2rem;
  color: #d4af37;
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
  display: block;
}

.books-divider {
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  border: none;
  margin: 0 auto 3rem auto;
}

/* Books Grid */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  align-items: start;
  padding: 0 1rem;
}

/* Book Cards */
.book-card {
  background: linear-gradient(135deg, #f8f5e4 0%, #f0ead6 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border: 2px solid #e8dcc0;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 480px;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  border-color: #d4af37;
}

.book-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-card h1 {
  font-family: 'MedievalSharp', serif;
  font-size: 1.6rem;
  color: #8b4513;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.book-card:hover h1 {
  color: #d4af37;
}

/* Book Covers */
.book-cover {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  margin: 0 auto 1.5rem auto;
  display: block;
  flex-shrink: 0;
}

.book-card:hover .book-cover {
  transform: scale(1.05);
}

#summa_theologiae .book-cover {
  height: 300px;
  object-fit: cover;
}

#catecismo_pio_x .book-cover,
#patristica .book-cover {
  height: 260px;
  object-fit: cover;
}

/* Book Info */
.book-description {
  padding: 1.2rem;
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.book-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #8b4513, #a0522d);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  margin-top: auto;
  flex-shrink: 0;
}

.book-action:hover {
  background: linear-gradient(135deg, #a0522d, #8b4513);
  transform: translateY(-2px);
}

.coming-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .books-content {
    max-width: 1000px;
    padding: 2.5rem 2rem;
  }
  
  .books {
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .books-main-container {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }
  
  .books-sidebar {
    display: none;
  }
  
  .books-content {
    margin: 0;
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
  
  .books {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0;
  }
  
  .book-card {
    max-width: 100%;
    min-height: 450px;
  }
}

@media (max-width: 768px) {
  .books-main-container {
    padding: 1rem;
  }
  
  .books-title {
    font-size: 2.4rem;
    letter-spacing: 1px;
  }
  
  .books-content {
    padding: 1.5rem 1rem;
    border-radius: 15px;
  }
  
  .books {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .book-card {
    padding: 2rem 1.5rem;
    min-height: 420px;
  }
  
  .book-cover {
    max-width: 200px;
  }
  
  #summa_theologiae .book-cover {
    height: 280px;
  }
  
  #catecismo_pio_x .book-cover,
  #patristica .book-cover {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .books-main-container {
    padding: 0.5rem;
  }
  
  .books-title {
    font-size: 2rem;
    letter-spacing: 0.5px;
  }
  
  .books-subtitle {
    font-size: 1rem;
  }
  
  .books-content {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }
  
  .books {
    gap: 1.5rem;
  }
  
  .book-card {
    padding: 1.5rem 1rem;
    border-radius: 15px;
    min-height: 380px;
  }
  
  .book-card h1 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .book-cover {
    max-width: 180px;
  }
  
  #summa_theologiae .book-cover,
  #catecismo_pio_x .book-cover,
  #patristica .book-cover {
    height: 220px;
  }
  
  .book-description {
    padding: 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .book-action {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .coming-soon {
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
    top: 0.8rem;
    right: 0.8rem;
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .books-content {
    max-width: 1400px;
    padding: 3rem;
  }
  
  .books {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
  
  .book-card {
    max-width: 420px;
    min-height: 520px;
  }
}