/* Main CSS file that imports all modular stylesheets */

/* Import all modular CSS files in dependency order */
@import url('base.css');
@import url('header.css');
@import url('navigation-mobile.css');
@import url('slideshow.css');
@import url('hero.css');
@import url('books.css');
@import url('book-pages.css');
@import url('components.css');
@import url('footer.css');

/* Legacy compatibility styles - these will be overridden by modular CSS */
/* Keep only essential overrides here */

/* Ensure proper body layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content area compatibility */
.page-content {
  flex: 1;
  padding: 1rem;
}

/* Slideshow compatibility for existing pages */
.slideshow {
  background: var(--text-muted, #666);
}

/* Book card link compatibility */
.book-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Amazon link wrapper for proper z-index */
.amazon-link-wrapper {
  pointer-events: auto;
  z-index: 10;
  position: relative;
}

/* Header layout improvements */
.header-flex {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  width: 100%;
}

/* Container responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .page-content {
    padding: 0.5rem;
  }

  .header-flex {
    padding: 10px 15px;
  }
}

/* Ensure all text uses consistent font stack */
body, .btn, .menu, .book-title, .book-author {
  font-family: 'Arial', sans-serif;
}

/* Additional responsive fixes for mobile */
@media (max-width: 480px) {
  .books-slider {
    padding: 0 10px;
  }

  .book-card {
    min-width: 120px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .header-flex {
    padding: 8px 10px;
  }
}

/* Desktop layout improvements */
@media (min-width: 1200px) {
  .header-flex {
    padding: 10px 0;
  }
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  padding: 18px 0 0 0;
  margin-top: 18px;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 12px 12px;
}
.footer-col h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #fffbe7;
  font-weight: 700;
  letter-spacing: 1px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 7px;
}
.footer-col ul li a {
  color: #fffbe7;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.98rem;
}
.footer-col ul li a:hover {
  color: #ffd700;
  text-decoration: underline;
}
.footer-col p, .footer-col address {
  color: #fffbe7;
  font-size: 0.98rem;
  margin-bottom: 8px;
  line-height: 1.5;
}
.footer-contact-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 7px 16px;
  background: #fff;
  color: var(--primary-color);
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  font-size: 0.98rem;
}
.footer-contact-btn:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding: 10px 0 6px 0;
  margin-top: 5px;
  font-size: 0.95rem;
  color: #fffbe7;
  background: none;
}
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 8px 10px 8px;
  }
  .site-footer {
    padding: 12px 0 0 0;
    font-size: 0.95rem;
  }
  .footer-bottom {
    font-size: 0.9rem;
  }
}