/* Modern Book Page Styles - Brand Aligned */

.book-page {
  background: #F9F5EF;
  min-height: 100vh;
  padding-top: 80px;
}

/* Hero Section - Modern Layout */
.book-hero {
  background: #FFFFFF;
  padding: 2rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.book-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(98, 52, 141, 0.03) 0%, rgba(138, 91, 175, 0.06) 100%);
  z-index: 0;
}

.book-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.book-cover-section {
  position: sticky;
  top: 100px;
}

.book-cover-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 20px 40px rgba(98, 52, 141, 0.2));
  transition: transform 0.4s ease;
}

.book-cover-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
}

.book-cover {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.book-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #62348d;
  color: #FFFFFF;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(98, 52, 141, 0.3);
}

.book-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.foundation-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(98, 52, 141, 0.1) 0%, rgba(138, 91, 175, 0.1) 100%);
  color: #62348d;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1.5px solid rgba(98, 52, 141, 0.2);
  width: fit-content;
}

.book-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: #62348d;
}

.book-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.6;
  opacity: 0.85;
  margin: 0;
  color: #62348d;
}

.book-author {
  font-size: 1.125rem;
  margin: 0;
  color: #62348d;
  opacity: 0.7;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
}

.star-filled {
  fill: #62348d;
  stroke: #62348d;
}

.star-empty {
  fill: none;
  stroke: rgba(98, 52, 141, 0.3);
}

.rating-text {
  font-size: 1.0625rem;
  color: #62348d;
  opacity: 0.7;
}

/* Key Benefits - Modern Cards */
.key-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #F9F5EF;
  border-radius: 12px;
  font-size: 1rem;
  color: #62348d;
  border: 1px solid rgba(98, 52, 141, 0.08);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: #FFFFFF;
  border-color: rgba(98, 52, 141, 0.15);
  transform: translateX(4px);
}

.benefit-icon {
  color: #62348d;
  flex-shrink: 0;
}

/* Book Formats - Minimal Grid */
.book-formats h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #62348d;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.format-item {
  background: #FFFFFF;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  border: 1.5px solid rgba(98, 52, 141, 0.1);
  transition: all 0.3s ease;
}

.format-item:hover {
  border-color: #62348d;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(98, 52, 141, 0.12);
}

.format-item span:first-child {
  font-size: 1.5rem;
}

.format-item span:nth-child(2) {
  font-size: 1rem;
  color: #62348d;
  opacity: 0.7;
}

.format-item strong {
  color: #62348d;
  font-size: 1.25rem;
  font-weight: 700;
}

/* CTA Buttons */
.book-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Content Section */
.book-content {
  padding: 4rem 0;
  background: #F9F5EF;
}

.book-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(98, 52, 141, 0.1);
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #62348d;
  opacity: 0.6;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
  opacity: 0.9;
  background: rgba(98, 52, 141, 0.03);
}

.tab-btn.active {
  opacity: 1;
  background: #FFFFFF;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #62348d;
}

.tab-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Overview Content */
.overview-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  color: #62348d;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #62348d;
  opacity: 0.85;
  margin-bottom: 3rem;
}

.content-block {
  margin-bottom: 3rem;
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(98, 52, 141, 0.08);
}

.content-block h3 {
  font-size: 1.625rem;
  color: #62348d;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-block p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #62348d;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.content-block ul,
.content-block ol {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #62348d;
  opacity: 0.85;
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.content-block li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 2rem;
}

.content-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: white;
  font-weight: 700;
  background: #62348d;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  top: 0.25rem;
}

.content-block ol li::before {
  content: counter(list-item);
  font-size: 0.75rem;
  font-weight: 600;
}

.content-block ol {
  counter-reset: list-item;
}

.content-block ol li {
  counter-increment: list-item;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(98, 52, 141, 0.05) 0%, rgba(138, 91, 175, 0.03) 100%);
  border-left: 4px solid #62348d;
  padding: 2rem;
  border-radius: 12px;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: start;
}

.highlight-box h3 {
  color: #62348d;
  margin-top: 0;
  font-size: 1.375rem;
}

.highlight-box p {
  color: #62348d;
  opacity: 0.85;
  font-size: 1.125rem;
}

.author-note-box {
  background: #FFFFFF;
  border: 2px solid rgba(98, 52, 141, 0.12);
  padding: 2rem;
  border-radius: 16px;
  margin: 3rem 0;
}

.author-note-content {
  display: flex;
  gap: 1.5rem;
  align-items: start;
}

.author-note-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.author-note-box h4 {
  color: #62348d;
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.author-note-box p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #62348d;
  opacity: 0.85;
  margin: 0;
  font-style: italic;
}

/* Features Content */
.features-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  color: #62348d;
  margin-bottom: 2rem;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  gap: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(98, 52, 141, 0.08);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(98, 52, 141, 0.12);
  border-color: rgba(98, 52, 141, 0.15);
}

.feature-icon {
  color: #62348d;
  flex-shrink: 0;
}

.feature-card p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #62348d;
  opacity: 0.85;
  margin: 0;
}

.book-details-box {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(98, 52, 141, 0.08);
  margin: 3rem 0;
}

.book-details-box h3 {
  color: #62348d;
  margin-bottom: 1.5rem;
  font-size: 1.375rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.detail-item {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #62348d;
  opacity: 0.85;
}

.detail-item strong {
  color: #62348d;
  opacity: 1;
}

.reading-order-box {
  background: linear-gradient(135deg, rgba(98, 52, 141, 0.05) 0%, rgba(138, 91, 175, 0.03) 100%);
  border: 2px solid rgba(98, 52, 141, 0.12);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 3rem;
}

.reading-order-box h3 {
  color: #62348d;
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.reading-order-box p {
  font-size: 1.125rem;
  color: #62348d;
  opacity: 0.85;
  line-height: 1.7;
  margin: 0;
}

.inline-link {
  color: #62348d;
  font-weight: 600;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.inline-link:hover {
  opacity: 0.7;
}

.next-book-cta {
  background: linear-gradient(135deg, rgba(98, 52, 141, 0.05) 0%, rgba(138, 91, 175, 0.03) 100%);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 3rem;
  border: 1px solid rgba(98, 52, 141, 0.1);
}

.next-book-cta h3 {
  color: #62348d;
  font-size: 1.375rem;
  margin-bottom: 1rem;
}

.next-book-cta p {
  font-size: 1.125rem;
  color: #62348d;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* Reviews Content */
.reviews-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  color: #62348d;
  margin-bottom: 2rem;
  font-weight: 700;
}

.average-rating-box {
  background: #FFFFFF;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  color: #62348d;
  margin-bottom: 3rem;
  border: 2px solid rgba(98, 52, 141, 0.12);
}

.avg-rating-number {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #62348d;
}

.avg-rating-stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.average-rating-box p {
  color: #62348d;
  opacity: 0.7;
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(98, 52, 141, 0.08);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(98, 52, 141, 0.15);
  box-shadow: 0 8px 24px rgba(98, 52, 141, 0.08);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
}

.testimonial-author {
  font-weight: 600;
  color: #62348d;
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #62348d;
  opacity: 0.85;
  margin: 0;
}

.social-proof-box {
  background: linear-gradient(135deg, rgba(98, 52, 141, 0.05) 0%, rgba(138, 91, 175, 0.03) 100%);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 3rem;
  border: 2px dashed rgba(98, 52, 141, 0.2);
}

.social-proof-text {
  font-size: 1.25rem;
  color: #62348d;
  margin: 0;
}

/* Final CTA Section */
.book-cta-section {
  background: #FFFFFF;
  padding: 5rem 0;
  border-top: 1px solid rgba(98, 52, 141, 0.08);
}

.cta-box {
  text-align: center;
  color: #62348d;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-box svg {
  margin-bottom: 1.5rem;
  color: #62348d;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-box > p {
  font-size: 1.25rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-guarantee {
  font-size: 1.0625rem;
  opacity: 0.7;
  margin-top: 1.5rem;
  color: #62348d;
}

/* Responsive */
@media (max-width: 1024px) {
  .book-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .book-cover-section {
    position: relative;
    top: 0;
  }

  .book-cover-wrapper {
    margin: 0 auto;
  }

  .book-info-section {
    align-items: center;
  }

  .foundation-badge {
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .book-hero {
    padding: 3rem 0;
  }

  .book-cover-wrapper {
    max-width: 250px;
  }

  .book-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .book-subtitle {
    font-size: 1.0625rem;
  }

  .key-benefits-list {
    grid-template-columns: 1fr;
  }

  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    font-size: 0.9375rem;
  }

  .content-block {
    padding: 1.5rem;
  }

  .overview-content h2,
  .features-content h2,
  .reviews-content h2 {
    font-size: 1.75rem;
  }

  .content-block h3 {
    font-size: 1.375rem;
  }

  .content-block p,
  .content-block ul,
  .content-block ol,
  .feature-card p,
  .testimonial-text,
  .detail-item {
    font-size: 1rem;
  }

  .lead-text {
    font-size: 1.125rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .highlight-box,
  .author-note-content {
    flex-direction: column;
  }

  .cta-box h2 {
    font-size: 1.75rem;
  }

  .cta-box > p {
    font-size: 1.0625rem;
  }
}


/* Free Exercise Box */
.free-exercise-box {
  margin-top: 2rem;
  background: linear-gradient(135deg, #f8f4fc 0%, #f0e8f5 100%);
  border: 2px solid #62348d;
  border-radius: 16px;
  padding: 1.5rem;
}

.free-exercise-content {
  text-align: center;
}

.free-badge {
  display: inline-block;
  background: linear-gradient(135deg, #62348d 0%, #7c4aab 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.free-exercise-content h3 {
  font-size: 1.375rem;
  color: #49276a;
  margin: 0 0 0.5rem;
}

.free-exercise-content p {
  font-size: 1.0625rem;
  color: #5a4069;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #62348d;
  background: white;
  border: 2px solid #62348d;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: #62348d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(98, 52, 141, 0.25);
}

