/* ===========================
   Book Details Page Styles
   ORGANIZED & CLEANED
   =========================== */

/* ========================================
   1. CONTAINER & LAYOUT STRUCTURE
   ======================================== */

.book-details-banner {
  background-color: #fff;
  padding: 40px 0;
  margin-bottom: 10px;
}

.book-details-banner .container,
.details-container,
.details-top-container,
.details-bottom-container {
  width: 95%;
  max-width: 1000px;
  padding: 0;
  margin: 0 auto;
}

.book-details-content {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}

.book-additional-info {
  background-color: #fff;
  padding: 10px 0;
}

/* Content Columns Layout */
.content-columns {
  display: flex;
  gap: 40px;
}

.content-main-column {
  flex: 3;
  padding-right: 15px;
}

.content-sidebar-column {
  flex: 1;
  padding-left: 15px;
  margin-top: 24px;
}

/* ========================================
   2. BOOK COVER STYLES
   ======================================== */

.book-cover-column {
  flex: 0 0 35%;
  display: flex;
  justify-content: center;
}

.book-cover-large {
  max-height: 500px;
  width: auto;
  object-fit: contain;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  border: none;
  transition: transform 0.3s ease;
}

.book-cover-large:hover {
  transform: scale(1.02);
}

/* ========================================
   3. BOOK DETAILS COLUMN & TYPOGRAPHY
   ======================================== */

.book-details-column {
  flex: 1;
  padding: 20px;
}

.book-details-title {
  font-size: 26px;
  letter-spacing: 0.5px;
  color: #000;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 700;
}

.book-subtitle {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 10px;
  font-weight: normal;
  font-style: italic;
  text-transform: none;
  border-bottom: 1px solid #e0e0e0;
}

.section-title {
  font-size: 28px;
  color: #343a40;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.sidebar-heading {
  font-size: 1.25rem;
  color: black;
  text-align: center;
  margin-top: 26px;
  margin-bottom: 10px;
  padding-bottom: 5px;
}

/* ========================================
   4. BOOK DETAILS GRID
   ======================================== */

.book-details-grid {
  display: grid;
  grid-template-columns: auto 3fr;
  gap: 15px 25px;
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 15px;
}

.detail-label {
  font-weight: 600;
  color: #666;
  text-align: left;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  color: #000;
  font-size: 16px;
}

.detail-value a {
  text-decoration: none;
  color: #0066cc;
}

.detail-value a:hover {
  text-decoration: underline;
}

.book-full-width {
  grid-column: 1 / -1;
  text-align: left;
}

.price-item {
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-type {
  color: #888;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   5. BUTTONS
   ======================================== */

.buy-button-row {
  margin-top: 15px;
  display: flex;
  align-items: center;
}

.buy-button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 24px;
  background-color: #146eb4;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;  /* Bolder */
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.buy-button:hover {
  background-color: #0d5a8f;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.coming-soon-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f8f8f8;
  color: #888;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

/* ========================================
   6. BOOK QUOTE
   ======================================== */

.book-quote-section {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f8f8;
  border-left: 3px solid #ddd;
  border-radius: 4px;
}

.book-quote {
  font-style: italic;
  color: #555;
  margin-top: 15px;
  font-size: 16px;
  line-height: 1.5;
}

/* ========================================
   7. MARKDOWN CONTENT (Book Descriptions)
   ======================================== */

.book-description,
.markdown-content {
  font-size: 16px;
  line-height: 1.6;
  color: #1d262f;
}

.markdown-content h1 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #000;
}

.markdown-content h2 {
  font-size: 24px;
  margin-top: 20px;
  margin-bottom: 15px;
  color: #333;
}

.markdown-content h3 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #444;
}

.markdown-content p {
  margin-bottom: 15px;
  font-size: 18px;
}

.markdown-content a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.markdown-content a:hover {
  color: #004499;
  text-decoration: underline;
}

.markdown-content ul, 
.markdown-content ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

.markdown-content li {
  margin-bottom: 5px;
}

.markdown-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 15px;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 15px;
  font-style: italic;
  color: #555;
}

.markdown-content pre {
  background-color: #f5f5f5;
  padding: 15px;
  margin-bottom: 15px;
  overflow-x: auto;
  border-radius: 4px;
}

.markdown-content code {
  font-family: monospace;
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.markdown-content th,
.markdown-content td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.markdown-content th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 4px;
}

.markdown-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

/* ========================================
   8. ALSO-BY SECTION (Other books by author)
   ======================================== */

.also-by-container {
  width: 95%;
  max-width: 1000px;
  padding: 0;
  margin: 0 auto;
  margin-top: 0;
  padding-bottom: 40px;
}

.also-by h2 {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 1.25rem;
  text-align: left;
  border-bottom: 1px solid #000;
  padding-bottom: 10px;
}

.books-row {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.also-by-link {
  display: inline-block;
}

.also-by-cover {
  width: 180px;
  height: auto;
  display: block;
}

/* ========================================
   9. RELATED BOOKS SECTION
   ======================================== */

.related-books {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-book-item {
  margin-bottom: 15px;
}

.related-book-item a {
  display: block;
  text-decoration: none;
  text-align: center;
}

.related-book-cover {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
  display: block;
}

.related-book-cover:hover {
  transform: scale(1.03);
}

.related-book-title {
  font-size: 14px;
  color: #1d262f;
  margin-top: 5px;
  text-align: center;
  font-weight: bold;
}