* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-image: url('/book-summaries/images/logo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(245, 245, 245, 0.92);
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: #2c3e50;
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-banner {
  width: 100%;
  overflow: hidden;
  max-height: 180px;
}

.header-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

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

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

header h1 a {
  color: white;
  text-decoration: none;
}

header h1 a:hover {
  color: #3498db;
}

header nav a {
  color: white;
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 1rem;
}

header nav a:hover {
  color: #3498db;
}

main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.intro {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.intro h2 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.book-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.book-card h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.book-card .author {
  color: #7f8c8d;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.book-card .chapter-count {
  color: #95a5a6;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.book-card .read-link {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.book-card .read-link:hover {
  background-color: #2980b9;
}

.book {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.book-header {
  border-bottom: 3px solid #3498db;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.book-header h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.book-header .author {
  color: #7f8c8d;
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.book-header .chapter-count {
  color: #95a5a6;
  font-size: 1rem;
}

.summaries {
  margin-bottom: 2rem;
}

.chapter {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ecf0f1;
}

.chapter:last-child {
  border-bottom: none;
}

.chapter h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.chapter-content {
  color: #555;
  line-height: 1.8;
  white-space: pre-wrap;
}

.chapter-nav {
  padding-top: 2rem;
  border-top: 2px solid #ecf0f1;
}

.chapter-nav a {
  display: inline-block;
  background-color: #95a5a6;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.chapter-nav a:hover {
  background-color: #7f8c8d;
}

footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-header h1 {
    font-size: 2rem;
  }

  .chapter h2 {
    font-size: 1.5rem;
  }
}
