/* Mobile First Responsive Design */

/* Base mobile styles */
@media (max-width: 767px) {
  /* Typography adjustments */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  /* Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    flex-direction: column;
    background-color: var(--color-accent-dark);
    padding: var(--spacing-16) var(--spacing-6);
    gap: var(--spacing-8);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .menu-toggle {
    display: flex;
    z-index: 1000;
  }
  
  /* Hero section */
  .hero-section .container {
    flex-direction: column;
    gap: var(--spacing-8);
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .book-cover {
    order: 1;
    margin-top: var(--spacing-16);
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  /* Book section */
  .book-content {
    grid-template-columns: 1fr;
  }
  
  /* Author section */
  .author-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
    text-align: center;
  }
  
  .author-image {
    max-width: 250px;
    margin: 0 auto;
  }
  
  /* Purchase section */
  .purchase-options {
    flex-direction: column;
    align-items: center;
  }
  
  .purchase-card {
    margin-bottom: var(--spacing-8);
  }
  
  .purchase-card.featured {
    transform: scale(1);
  }
  
  .purchase-card.featured:hover {
    transform: translateY(-10px);
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: var(--spacing-8);
    text-align: center;
  }
  
  .footer-links, .footer-social {
    justify-content: center;
  }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Hero section */
  .hero-section .container {
    gap: var(--spacing-8);
  }
  
  .cover-img {
    max-width: 250px;
  }
  
  /* Key points section */
  .points-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Purchase options */
  .purchase-options {
    gap: var(--spacing-4);
  }
  
  .purchase-card {
    max-width: 300px;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  /* Hero section enhancements */
  .hero-content {
    padding-left: var(--spacing-8);
  }
  
  h1 {
    font-size: 4rem;
  }
  
  /* Key points section */
  .points-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Added visual enhancements for desktop */
  .book-description, .book-highlights, .author-bio {
    position: relative;
  }
  
  .book-description::before, .author-bio::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    border-top: 5px solid var(--color-primary);
    border-left: 5px solid var(--color-primary);
  }
  
  .book-highlights::after, .author-bio::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-bottom: 5px solid var(--color-primary);
    border-right: 5px solid var(--color-primary);
  }
}

/* Large desktop styles */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  h1 {
    font-size: 4.5rem;
  }
  
  /* Enhanced layout for large screens */
  .book-content, .author-content {
    gap: var(--spacing-16);
  }
  
  .purchase-options {
    gap: var(--spacing-12);
  }
}

/* Print styles */
@media print {
  nav, .cta-buttons, .newsletter-section, footer {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  section {
    page-break-inside: avoid;
    padding: var(--spacing-4) 0;
  }
}