/* ========== BOOK DETAIL PAGE STYLES ========== */

.bookdetail-card {
  background-color: var(--color-surface-card);
  border-radius: 1rem;
  border: 1px solid var(--color-border-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  max-width: 900px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.bookdetail-thumb {
  background-color: #e5e7eb;
  border: 1px solid var(--color-border-card);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  width: 100%;
 /* height: 240px; 
  height: 480px; */
  height: 250px;
  width: 170px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1rem;
  overflow: hidden;
  position: relative;
}

:root[data-theme="dark"] .bookdetail-thumb {
  background-color: #f9fafb;
}

.bookdetail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bookdetail-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #9ca3af;
  font-size: 3rem;
}

.bookdetail-title {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 0.75rem;
}

.bookdetail-source {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.bookdetail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-open-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-open-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.btn-audio:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

/* Tab bar */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.tab-chip {
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

:root[data-theme="dark"] .tab-chip {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.tab-chip:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .tab-chip:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.08);
}

.tab-chip.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Tab content */
.bookdetail-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin: 1.5rem 0 1rem;
}

.bookdetail-textblock {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  white-space: pre-line;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .bookdetail-thumb {
    height: 240px;
  }

  .bookdetail-title {
    font-size: 1.5rem;
  }

  .bookdetail-cta-row {
    gap: 1rem;
  }
}
