/* Reading List Styles */
.reading-section {
  margin-bottom: 3rem;
}

.reading-section-title {
  font-size: 1.25rem;
  color: var(--text-primary, #00ff00);
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
  transition: color 0.3s ease;
}

.light-mode .reading-section-title {
  --text-primary: #059669;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }
}

.book-item {
  transition: transform 0.2s ease;
}

.book-item:hover {
  transform: translateY(-4px);
}

.book-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.book-item:hover .book-cover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.light-mode .book-cover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.light-mode .book-item:hover .book-cover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--placeholder-bg, #334155);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--placeholder-text, #94a3b8);
}

.light-mode .book-cover-placeholder {
  --placeholder-bg: #e2e8f0;
  --placeholder-text: #64748b;
}

.book-info {
  margin-top: 0.5rem;
}

.book-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--book-title, #e2e8f0);
  line-height: 1.3;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.light-mode .book-title {
  --book-title: #1e293b;
}

.book-author {
  font-size: 0.75rem;
  color: var(--book-author, #94a3b8);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.light-mode .book-author {
  --book-author: #64748b;
}

/* Books List Styles (for read books) */
.books-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.author-group {
  border-left: 2px solid var(--border-accent, #00ff00);
  padding-left: 1.5rem;
}

.light-mode .author-group {
  --border-accent: #059669;
}

.author-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary, #00ff00);
  margin: 0 0 1rem 0;
}

.light-mode .author-name {
  --text-primary: #059669;
}

.series-group {
  margin-bottom: 1.5rem;
}

.series-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--series-color, #94a3b8);
  margin: 0 0 0.75rem 0;
  font-style: italic;
}

.light-mode .series-name {
  --series-color: #64748b;
}

.book-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.book-list-item {
  margin: 0;
}

.book-list-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.book-list-link:hover {
  background-color: var(--hover-bg, rgba(30, 41, 59, 0.5));
}

.light-mode .book-list-link:hover {
  --hover-bg: rgba(241, 245, 249, 0.8);
}

.book-list-cover {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.light-mode .book-list-cover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.book-list-title {
  font-size: 0.9rem;
  color: var(--list-title, #e2e8f0);
  line-height: 1.4;
}

.light-mode .book-list-title {
  --list-title: #1e293b;
}

