/* === CORE RESET & THEME OVERRIDES === */
body, html {
  background: #1a0f2e !important;
  margin: 0;
  padding: 0;
}

.book-hub {
  background: #1a0f2e !important;
  color: #ffffff !important;
  font-family: 'Cormorant Garamond', serif !important;
  min-height: 100vh;
  padding-bottom: 60px;
}

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

/* === GRID LAYOUT SYSTEM === */
.book-grid-layout {
  display: grid;
  grid-template-columns: 380px 1fr; /* Image width | Content width */
  grid-template-rows: auto auto auto auto;
  grid-template-areas: 
      "image header"
      "image cta"
      "laws laws"
      "prog prog";
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

/* Responsive: Tablet/Mobile */
@media (max-width: 992px) {
  .book-grid-layout {
      grid-template-columns: 1fr;
      grid-template-areas: 
          "image"
          "header"
          "cta"
          "laws"
          "prog";
      gap: 30px;
  }
}

/* === AREA 1: BOOK IMAGE === */
.grid-area-image {
  grid-area: image;
}

.book-cover-wrapper {
  position: sticky;
  top: 40px;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.book-cover-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

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

.main-book-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #2a1a4e 0%, #1a0f2e 100%);
  border: 2px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-size: 24px;
  border-radius: 8px;
}

/* === AREA 2: HEADER (Title/Subtitle/Desc) === */
.grid-area-header {
  grid-area: header;
  padding-bottom: 10px;
}

.product-header .subtitle {
  color: #d4af37;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}

.product-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin: 0 0 10px 0;
  color: #f4e4c1;
  line-height: 1.1;
}

.product-header .author {
  color: #c9b896;
  font-size: 16px;
  font-style: italic;
  margin-bottom: 25px;
}

.product-description .description-content {
  font-size: 18px;
  line-height: 1.8;
  color: #e8dcc4;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 20px;
  margin-bottom: 20px;
}

/* RESTORED: Gold Button Style for TOC Link */
.header-actions {
  margin-top: 10px;
  margin-bottom: 10px;
}

.toc-mid-btn {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
}

.toc-mid-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #f4e4c1;
  border-color: #f4e4c1;
}

/* === AREA 3: CTA (Right Column - Bottom) === */
.grid-area-cta {
  grid-area: cta;
}

.cta-card {
  background: linear-gradient(180deg, rgba(42, 26, 78, 0.6) 0%, rgba(26, 15, 46, 0.8) 100%);
  border: 1px solid #d4af37;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.cta-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin: 0 0 10px 0;
  color: #f4e4c1;
}

.cta-card p {
  color: #e8dcc4;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.4;
}

.cta-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.cta-email-input {
  background: rgba(255,255,255,0.9);
  border: none;
  padding: 14px;
  border-radius: 4px;
  font-family: sans-serif;
  font-size: 14px;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  display: block;
}

/* MAGENTA GRADIENT BUTTON */
.submit-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  /* Magenta Gradient */
  background: linear-gradient(90deg, #9c27b0 0%, #673ab7 100%);
  background-size: 200% auto;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.submit-btn:hover {
  background-position: right center;
  box-shadow: 0 0 20px rgba(156, 39, 176, 0.6);
  transform: translateY(-2px);
}

/* === AREA 4: LAWS (Full Width) === */
.grid-area-laws {
  grid-area: laws;
  margin-top: 20px;
}

.laws-panel-full {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 30px;
}

.laws-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.laws-header-row h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #d4af37;
  margin: 0;
}

.laws-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.law-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.law-card-item:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  transform: translateY(-3px);
}

.law-card-top {
  margin-bottom: 10px;
}

.law-num {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #d4af37;
  border: 1px solid #d4af37;
  padding: 2px 6px;
  border-radius: 4px;
}

.law-name {
  color: #f4e4c1;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.law-desc {
  font-size: 14px;
  color: #aaa;
  margin: 0;
  line-height: 1.5;
}

/* === AREA 5: PROGRESS === */
.grid-area-progress {
  grid-area: prog;
  margin-top: 20px;
}

.progress-wrapper {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 20px 30px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #f4e4c1;
  margin: 0;
}

.progress-stats-text {
  color: #d4af37;
  font-size: 16px;
}

.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #d4af37 0%, #f4e4c1 100%);
}