/* Book section styles - extends main site */

/* Reading-optimized typography */
.book-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.book-content p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 1.5em;
}

.book-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  letter-spacing: -0.02em;
}

.book-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.book-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.book-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--text-dim);
}

.book-content em {
  color: var(--text);
}

.book-content strong {
  color: var(--text);
  font-weight: 600;
}

.book-content ul, .book-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.book-content li {
  color: var(--text-dim);
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* Everyday Example boxes */
.everyday-example {
  background: linear-gradient(135deg, rgba(110, 243, 178, 0.08) 0%, rgba(110, 243, 178, 0.02) 100%);
  border: 1px solid rgba(110, 243, 178, 0.25);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 2em 0;
}

.everyday-example-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.everyday-example p {
  margin-bottom: 0;
  font-size: 16px;
}

/* Book hero */
.book-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 100px;
  background: radial-gradient(ellipse at 30% 20%, rgba(110, 243, 178, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(122, 167, 255, 0.08) 0%, transparent 50%);
}

.book-hero-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
}

.book-hero-text h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.book-hero-subtitle {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 24px;
}

.book-hero-author {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.book-hero-desc {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.book-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(110, 243, 178, 0.08);
}

/* Book cover */
.book-cover {
  position: relative;
}

.book-cover-image {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1.6;
  background: linear-gradient(145deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%);
  border-radius: 4px 12px 12px 4px;
  box-shadow: 
    -4px 0 0 rgba(255, 255, 255, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(110, 243, 178, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.book-cover-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 40%, rgba(110, 243, 178, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(122, 167, 255, 0.1) 0%, transparent 40%);
}

.book-cover-image > * {
  position: relative;
  z-index: 1;
}

.cover-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cover-subtitle {
  font-size: 16px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 48px;
}

.cover-symbol {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(110, 243, 178, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.cover-symbol::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent);
}

.cover-author {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* Chapters section */
.section-chapters {
  padding: 100px 32px;
  background: var(--bg-elevated);
}

.chapters-inner {
  max-width: 900px;
  margin: 0 auto;
}

.part-group {
  margin-bottom: 64px;
}

.part-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-ember);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chapter-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  text-decoration: none;
}

.chapter-item:hover {
  border-color: var(--accent);
  transform: translateX(8px);
  background: linear-gradient(135deg, rgba(110, 243, 178, 0.06) 0%, var(--bg-card) 100%);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.chapter-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.chapter-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.chapter-arrow {
  color: var(--text-muted);
  font-size: 18px;
  transition: transform 0.2s, color 0.2s;
}

.chapter-item:hover .chapter-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* Chapter page */
.chapter-header {
  padding: 160px 32px 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(110, 243, 178, 0.1) 0%, transparent 60%);
}

.chapter-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.chapter-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.chapter-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.chapter-body {
  padding: 60px 32px 120px;
}

/* Chapter navigation */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
}

.chapter-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex: 1;
  max-width: 300px;
  transition: all 0.3s;
}

.chapter-nav-link:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(110, 243, 178, 0.06) 0%, var(--bg-card) 100%);
}

.chapter-nav-link.prev {
  text-align: left;
}

.chapter-nav-link.next {
  text-align: right;
  margin-left: auto;
}

.chapter-nav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chapter-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* Downloads section */
.section-downloads {
  padding: 80px 32px;
  background: var(--bg);
}

.downloads-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.downloads-inner h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.downloads-inner p {
  color: var(--text-dim);
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}

.download-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(110, 243, 178, 0.08);
}

.download-btn svg {
  width: 18px;
  height: 18px;
}

/* About author */
.section-author {
  padding: 80px 32px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.author-inner {
  max-width: 700px;
  margin: 0 auto;
}

.author-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.author-text h4 {
  font-size: 20px;
  margin-bottom: 16px;
}

.author-text p {
  color: var(--text-dim);
  line-height: 1.8;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--accent);
}

/* Preview section */
.section-preview {
  padding: 100px 32px;
  background: var(--bg);
}

.preview-inner {
  max-width: 800px;
  margin: 0 auto;
}

.preview-content {
  margin-top: 32px;
}

.preview-content blockquote {
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 0 0 32px 0;
  line-height: 1.7;
}

.preview-content p {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Static chapter items (no hover/link) */
.chapter-item-static {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Ideas section */
.section-ideas {
  padding: 100px 32px;
  background: var(--bg);
}

.ideas-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.idea-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.idea-card:hover {
  border-color: rgba(110, 243, 178, 0.4);
  transform: translateY(-4px);
}

.idea-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.idea-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.idea-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Buy section */
.section-buy {
  padding: 100px 32px;
  background: linear-gradient(135deg, rgba(110, 243, 178, 0.08) 0%, var(--bg-elevated) 50%, rgba(122, 167, 255, 0.06) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.buy-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.buy-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.buy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.buy-card-featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(110, 243, 178, 0.1) 0%, var(--bg-card) 100%);
}

.buy-format {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.buy-price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.buy-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}

.buy-btn {
  width: 100%;
  text-align: center;
}

.buy-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

/* CTA section */
.section-cta {
  padding: 100px 32px;
  text-align: center;
  background: var(--bg);
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.cta-inner p {
  color: var(--text-dim);
  font-size: 18px;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 900px) {
  .book-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .book-hero-desc {
    max-width: 100%;
  }
  
  .book-hero-cta {
    justify-content: center;
  }
  
  .book-cover-image {
    margin: 0 auto;
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  .book-hero {
    padding: 120px 20px 60px;
    min-height: auto;
  }
  
  .section-chapters {
    padding: 60px 20px;
  }
  
  .chapter-item {
    grid-template-columns: 40px 1fr;
    padding: 16px 20px;
  }
  
  .chapter-arrow {
    display: none;
  }
  
  .chapter-header {
    padding: 120px 20px 48px;
  }
  
  .chapter-body {
    padding: 40px 20px 80px;
  }
  
  .book-content p {
    font-size: 17px;
  }
  
  .chapter-nav {
    flex-direction: column;
  }
  
  .chapter-nav-link {
    max-width: 100%;
  }
  
  .chapter-nav-link.next {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .book-hero {
    padding: 100px 16px 50px;
  }
  
  .book-cover-image {
    max-width: 200px;
    padding: 28px 20px;
  }
  
  .cover-title {
    font-size: 18px;
  }
  
  .cover-subtitle {
    font-size: 13px;
    margin-bottom: 32px;
  }
  
  .cover-symbol {
    width: 60px;
    height: 60px;
    margin-bottom: 32px;
  }
  
  .cover-author {
    font-size: 11px;
  }
}
