/* Import custom font */
@font-face {
  font-family: "Neutraface Text Bold";
  src: url("/static/fonts/neutraface_text_bold.OTF") format("opentype");
  font-weight: bold;
  font-style: normal;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffd700; /* Bright yellow background like the book cover */
  overflow-x: hidden;
}

/* Background waves */
.background-waves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.4;
  pointer-events: none;
}

.background-waves img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.2) brightness(0.8);
}

/* Main landing page layout */
.landing-page {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  padding: 2rem;
  padding-top: 20px;
  max-width: 1200px;
  margin: 80px auto 0 auto;
  gap: 4rem;
}

/* Content section (left side) */
.content-section {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.text-content {
  padding: 2rem 0;
}

/* Main title */
.main-title {
  margin-bottom: 2rem;
  position: relative;
  width: fit-content;
}

.title-line {
  display: block;
  font-size: 5rem;
  font-weight: bold;
  color: #2c3e50;
  line-height: 0.9;
  margin-bottom: 0.2rem;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

/* Edition badge */
.edition-badge {
  position: absolute;
  bottom: 0;
  left: 100%;
  transform: translateX(-50%) rotate(20deg);
  z-index: 3;
}

.edition-badge img {
  height: 90px;
  width: auto;
}

/* Subtitle */
.subtitle {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  font-weight: normal;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

/* Author info */
.author-info {
  margin-bottom: 2.5rem;
}

.book-type {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 0.2rem;
  font-weight: bold;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

.author {
  font-size: 1.2rem;
  color: #2c3e50;
  font-weight: bold;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

/* Call to action */
.cta-section {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}

.cta-button {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  font-family: inherit;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.sample-button {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  box-sizing: border-box;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.sample-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
  color: white;
  text-decoration: none;
}

.cta-note {
  font-size: 0.9rem;
  color: #666666;
  font-style: italic;
}

/* Image section (right side) */
.image-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* Mobile image section (hidden on desktop) */
.image-section-mobile {
  display: none;
}

.book-cover {
  max-width: 100%;
  height: auto;
}

.book-cover img {
  width: 100%;
  height: auto;
  max-width: 500px;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .landing-page {
    flex-direction: column;
    padding: 1rem;
    padding-top: 20px;
    gap: 2rem;
    text-align: center;
    margin: 100px auto 0 auto;
  }

  .content-section {
    max-width: 100%;
    order: 2;
  }

  .image-section {
    display: none;
  }

  .image-section-mobile {
    display: block;
    text-align: center;
    margin: 2rem 0;
  }

  .text-content {
    padding: 1rem 0;
  }

  .main-title {
    width: 100%;
  }

  .title-line {
    font-size: 4.5rem;
    display: inline;
  }

  .subtitle {
    font-size: 1.6rem;
    line-height: 2rem;
  }

  .cta-section {
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .book-cover img {
    max-width: min(380px, 90%);
  }

  .edition-badge {
    display: none;
  }

  .author-info > p {
    display: inline;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .landing-page {
    padding: 0.5rem;
    padding-top: 20px;
    margin: 80px auto 0 auto;
  }

  .title-line {
    font-size: 4.5rem;
    display: inline-block;
  }

  .book-cover img {
    max-width: min(320px, 90%);
  }
}

/* Large screens - ensure proper spacing */
@media (min-width: 1200px) {
  .landing-page {
    gap: 6rem;
  }

  .subtitle {
    font-size: 2rem;
  }
}

/* Book Description Section */
.book-description {
  padding: 4rem 0;
  margin-top: 4rem;
  padding-top: 8rem;
}

.description-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.description-card {
  background: white;
  padding: 4rem 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  margin-top: 2rem;
}

.description-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 3rem;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

.description-content {
  max-width: 600px;
  margin: 0 auto;
}

.description-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 2rem;
  text-align: justify;
}

.description-content p:last-child {
  margin-bottom: 0;
}

.description-actions {
  margin-top: 2rem;
  text-align: center;
}

.description-actions .cta-button {
  font-size: 1.2rem;
  padding: 15px 30px;
  border-radius: 30px;
}

/* Responsive styles for Book Description */
@media (max-width: 768px) {
  .description-card {
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-top: 1rem;
  }

  .description-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .description-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Book description responsive design */
@media (max-width: 768px) {
  .book-description {
    padding: 3rem 0;
    margin-top: 3rem;
  }

  .description-container {
    padding: 0 1rem;
  }

  .description-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .description-content p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
  }
}

/* OSS Contribution Section */
.oss-contribution {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
  padding: 4rem 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.oss-contribution::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
  transform: skewY(-2deg);
  z-index: -1;
}

.oss-contribution-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.oss-contribution-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 2rem;
}

.oss-contribution-content {
  max-width: 600px;
  margin: 0 auto;
}

.oss-contribution-text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.oss-contribution-highlight {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.oss-contribution-thanks {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  line-height: 1.6;
}

.oss-contribution-link {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.oss-contribution-link:hover {
  color: #c0392b;
  text-decoration: underline;
}

.oss-contribution-button {
  margin-top: 2rem;
}

.oss-buy-button {
  font-size: 1.4rem;
  padding: 18px 40px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

/* Responsive styles for OSS Contribution */
@media (max-width: 768px) {
  .oss-contribution {
    padding: 3rem 0;
    margin-top: 3rem;
  }

  .oss-contribution-container {
    padding: 0 1rem;
  }

  .oss-contribution-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .oss-contribution-text {
    font-size: 1.1rem;
  }

  .oss-contribution-highlight {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .oss-contribution-thanks {
    font-size: 1rem;
  }

  .oss-buy-button {
    font-size: 1.2rem;
    padding: 15px 30px;
  }
}

/* Merch Section */
.merch-section {
  background: url("/static/images/blob-scene.svg") center/cover no-repeat;
  padding: 4rem 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.merch-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.merch-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.merch-logo {
  width: 200px;
  height: 200px;
  border: 3px solid #2c3e50;
  margin-bottom: 1rem;
}

.merch-title-text {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 0;
}

.merch-content {
  max-width: 800px;
  margin: 0 auto;
}

.merch-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.merch-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: center;
}

.merch-item {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  padding-left: 0;
  text-align: center;
}

.merch-item strong {
  color: #e74c3c;
  font-weight: bold;
}

.merch-outro {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 0;
  line-height: 1.6;
}

.merch-button {
  margin-top: 2rem;
}

.merch-buy-button {
  font-size: 1.4rem;
  padding: 6px 40px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
  text-decoration: none;
  display: inline-block;
}

/* Responsive styles for Merch Section */
@media (max-width: 768px) {
  .merch-section {
    padding: 3rem 0;
  }

  .merch-container {
    padding: 0 1rem;
  }

  .merch-title {
    margin-bottom: 1.5rem;
  }

  .merch-logo {
    width: 180px;
    height: 180px;
  }

  .merch-title-text {
    font-size: 2rem;
  }

  .merch-subtitle {
    font-size: 1.1rem;
  }

  .merch-item {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .merch-outro {
    font-size: 1rem;
  }

  .merch-buy-button {
    font-size: 1.2rem;
    padding: 9px 30px;
  }
}

/* 404 Error Page Styles */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/static/images/layered_waves.svg") center/cover no-repeat;
  padding: 4rem 0;
}

.error-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.error-content {
  background: white;
  padding: 4rem 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  margin-top: 2rem;
}

.error-code {
  font-size: 8rem;
  font-weight: bold;
  color: #e74c3c;
  margin: 0 0 1rem 0;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
  line-height: 1;
}

.error-message {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

.error-description {
  font-size: 1.25rem;
  color: #6c757d;
  margin: 0 0 2.5rem 0;
  line-height: 1.6;
}

.error-actions {
  margin-top: 2rem;
}

.error-actions .cta-button {
  font-size: 1.2rem;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Responsive styles for 404 page */
@media (max-width: 768px) {
  .error-page {
    padding: 3rem 0;
    min-height: 50vh;
  }

  .error-container {
    padding: 0 1rem;
  }

  .error-content {
    padding: 3rem 2rem;
    border-radius: 15px;
  }

  .error-code {
    font-size: 6rem;
    margin-bottom: 0.5rem;
  }

  .error-message {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .error-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .error-actions .cta-button {
    font-size: 1.1rem;
    padding: 12px 25px;
  }
}

/* Contact Page Styles */
.contact-page {
  min-height: calc(100vh - 100px);
  padding: 2rem;
  padding-top: 20px;
  margin: 80px auto 0 auto;
  max-width: 1200px;
}

.contact-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  margin: 0 auto 2rem auto;
  max-width: 800px;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-title {
  font-size: 3rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: #7f8c8d;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form-section {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #f8f9fa;
}

.form .form-group input:focus,
.form .form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  background: white;
}

.form .form-group input.error,
.form .form-group textarea.error {
  border-color: #e74c3c;
  background-color: #ffe6e6;
}

.form .form-group input.error:focus,
.form .form-group textarea.error:focus {
  border-color: #e74c3c;
  background-color: #ffe6e6;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-result.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-result.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Contact page responsive design */
@media (max-width: 768px) {
  .contact-page {
    padding: 1rem;
    padding-top: 20px;
    margin: 100px auto 0 auto;
  }

  .contact-container {
    padding: 2rem 1.5rem;
  }

  .contact-title {
    font-size: 2.5rem;
  }

  .contact-subtitle {
    font-size: 1.1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-page {
    padding: 0.5rem;
    padding-top: 20px;
    margin: 100px auto 0 auto;
  }

  .contact-container {
    padding: 1.5rem 1rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }
}

/* OSS Page Styles */
.oss-page {
  min-height: calc(100vh - 100px);
  padding: 2rem;
  padding-top: 20px;
  margin: 80px auto 0 auto;
  max-width: 1200px;
}

.oss-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.oss-title {
  font-size: 3rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

.oss-subtitle {
  font-size: 1.2rem;
  color: #666666;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.donation-info {
  margin-bottom: 4rem;
  text-align: center;
  padding: 0 2rem;
}

.donation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}

.donation-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.donation-emoji {
  font-size: 2.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.donation-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #495057;
  text-align: left;
}

.donation-text strong {
  color: #2c3e50;
  font-weight: 700;
}

.info-banner {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem auto 4rem auto;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.2);
  border-left: 4px solid #5dade2;
}

.info-banner-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.info-banner-content {
  flex: 1;
}

.info-banner-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
  letter-spacing: -0.02em;
}

.info-banner-text {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
  font-weight: 400;
}

.suggestion-section {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  margin: 0 auto 4rem auto;
  max-width: 800px;
}

.suggestion-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

.suggestion-subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.project-suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-suggestion-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-suggestion-form .form-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.project-suggestion-form .form-group input,
.project-suggestion-form .form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: white;
}

.project-suggestion-form .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.project-suggestion-form .form-group input::placeholder,
.project-suggestion-form .form-group textarea::placeholder {
  color: #adb5bd;
}

/* OSS page responsive design */
@media (max-width: 768px) {
  .oss-page {
    padding: 1rem;
    padding-top: 20px;
    margin: 100px auto 0 auto;
  }

  .oss-title {
    font-size: 2.5rem;
  }

  .oss-subtitle {
    font-size: 1.1rem;
  }

  .donation-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .donation-emoji {
    align-self: center;
    margin-top: 0;
  }

  .donation-text {
    text-align: center;
  }

  .info-banner {
    padding: 1.5rem;
    gap: 1rem;
  }

  .info-banner-icon {
    font-size: 2.2rem;
  }

  .info-banner-title {
    font-size: 1.25rem;
  }

  .info-banner-text {
    font-size: 0.95rem;
  }

  .suggestion-section {
    padding: 2rem 1.5rem;
  }

  .suggestion-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .oss-page {
    padding: 0.5rem;
    padding-top: 20px;
    margin: 100px auto 0 auto;
  }

  .oss-title {
    font-size: 2rem;
  }

  .oss-subtitle {
    font-size: 1rem;
  }

  .donation-item {
    padding: 1.25rem;
  }

  .info-banner {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .info-banner-icon {
    font-size: 1.8rem;
  }

  .info-banner-title {
    font-size: 1.1rem;
  }

  .info-banner-text {
    font-size: 0.9rem;
  }

  .suggestion-section {
    padding: 1.5rem 1rem;
  }

  .suggestion-title {
    font-size: 1.6rem;
  }
}

/* Part 2 Page Styles */
.part2-page {
  padding-top: 20px;
  margin: 80px auto 0 auto;
  max-width: 1200px;
}

.coming-soon-section {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  margin: 0 auto 4rem auto;
  max-width: 600px;
  text-align: center;
}

.coming-soon-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

.coming-soon-text {
  font-size: 1.1rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.part2-signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.part2-signup-form .form-group {
  width: 100%;
  max-width: 400px;
}

.email-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.email-input:focus {
  outline: none;
  border-color: #3498db;
}

.email-input::placeholder {
  color: #adb5bd;
}

/* Responsive styles for Part 2 page */
@media (max-width: 768px) {
  .part2-page {
    padding: 1rem;
    padding-top: 20px;
    margin: 100px auto 0 auto;
  }

  .part2-title {
    font-size: 2.5rem;
  }

  .part2-subtitle {
    font-size: 1.1rem;
  }

  .coming-soon-section {
    padding: 2rem 1.5rem;
  }

  .coming-soon-title {
    font-size: 1.8rem;
  }

  .coming-soon-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .part2-page {
    padding: 0.5rem;
    padding-top: 20px;
    margin: 100px auto 0 auto;
  }

  .part2-title {
    font-size: 2rem;
  }

  .part2-subtitle {
    font-size: 1rem;
  }

  .coming-soon-section {
    padding: 1.5rem 1rem;
  }

  .coming-soon-title {
    font-size: 1.6rem;
  }

  .coming-soon-text {
    font-size: 0.95rem;
  }
}

/* Thank You Page Styles */
.thank-you-section {
  background: transparent;
  padding: 3rem;
  border-radius: 0;
  box-shadow: none;
  border: none;
  margin: 0 auto 4rem auto;
  max-width: 600px;
  text-align: center;
}

.thank-you-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

.thank-you-text {
  font-size: 1.1rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.thank-you-section .cta-button {
  text-decoration: none;
  display: inline-block;
}

/* Responsive styles for Thank You Page */
@media (max-width: 768px) {
  .thank-you-section {
    padding: 2rem 1.5rem;
  }

  .thank-you-title {
    font-size: 2.5rem;
  }

  .thank-you-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .thank-you-section {
    padding: 1.5rem 1rem;
  }

  .thank-you-title {
    font-size: 2rem;
  }

  .thank-you-text {
    font-size: 0.95rem;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.modal-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  color: #666;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.modal-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  font-family: "Neutraface Text Bold", "Inter", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

.modal-subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin: 0;
  font-style: italic;
}

.modal-body {
  padding: 1rem 2rem 2rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

/* Amazon links styling */
.amazon-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.amazon-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.amazon-link:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.amazon-link:active {
  transform: translateY(0);
}

/* Modal responsive design */
@media (max-width: 768px) {
  .modal-container {
    padding: 1rem;
  }

  .modal-content {
    max-height: 90vh;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }

  .modal-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
  }

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

  .modal-subtitle {
    font-size: 1rem;
  }

  .amazon-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .amazon-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Flag icon styling */
.flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

/* Responsive flag icon sizing */
@media (max-width: 768px) {
  .flag-icon {
    width: 18px;
    height: 18px;
  }
}

/* Inline code styling */
.inline-code {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  background-color: #f6f8fa;
  color: #24292e;
  padding: 0.2em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid #e1e4e8;
}

/* Responsive inline code styling */
@media (max-width: 768px) {
  .inline-code {
    font-size: 0.85em;
    padding: 0.15em 0.3em;
  }
}

/* Chapter content paragraph spacing */
.chapter-content p {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.chapter-content p:last-child {
  margin-bottom: 0;
}

/* Chapter content list styling */
.chapter-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.chapter-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Responsive chapter content spacing */
@media (max-width: 768px) {
  .chapter-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .chapter-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
  }

  .chapter-content li {
    margin-bottom: 0.4rem;
  }
}

/* Sample page title styling */
.sample-title {
  font-size: 2.2rem !important;
}

/* Chapter navigation styling */
.chapter-nav {
  margin: 1.5rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

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

.chapter-nav-next {
  text-align: right;
}

.chapter-nav a {
  color: #2c3e50;
  text-decoration: underline;
  font-weight: normal;
  transition: color 0.3s ease;
}

.chapter-nav a:hover {
  color: #3498db;
  text-decoration: underline;
}

/* Responsive chapter navigation */
@media (max-width: 768px) {
  .sample-title {
    font-size: 1.8rem !important;
  }

  .chapter-nav {
    margin: 1rem 0;
    font-size: 0.95rem;
  }
}
