/* The Column - Shared Styles */

body {
  font-family: 'Inter', sans-serif;
  background-color: #FDFBF7;
}

/* Form Styles */
.form-input {
  background-color: transparent;
  border: 1px solid #111111;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
  color: #111111;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: #6b7280;
}

.form-input:focus {
  outline: none;
  border-color: #d82c2c;
  box-shadow: none;
  --tw-ring-shadow: none;
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #fdfbf7 inset !important;
  -webkit-text-fill-color: #111111 !important;
}

/* Hover Effects */
.book-card:hover .book-cover {
  outline: 4px solid #D82C2C;
}

.article-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Navigation Active State */
.nav-link.active {
  color: #D82C2C;
}

/* Responsive Grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Mobile Menu Styles */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #111111;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: #111111;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem;
  transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: #666666;
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #111111;
  cursor: pointer;
  padding: 8px;
}



/* Responsive Styles */
@media (max-width: 700px) {
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-menu-button {
    display: block;
  }
  
  /* Adjust header padding for mobile */
  header {
    padding: 1rem 1.5rem !important;
  }
  
  /* Adjust main content padding for mobile */
  main {
    padding: 0 1rem !important;
  }
  
  /* Adjust font sizes for mobile */
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  /* Ensure proper scaling for all content */
  .px-10 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-6 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

@media (max-width: 768px) {
  .book-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile styles for screens below 600px */
@media (max-width: 600px) {
  /* Hide breadcrumb navigation on mobile */
  .breadcrumb-nav {
    display: none !important;
  }
  
  /* Article Hero Section */
  .article-hero {
    height: 50vh !important;
    min-height: 350px !important;
  }
  
  /* Hero title */
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.1 !important;
  }
  
  /* Hero content padding */
  .hero-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Hero meta info */
  .hero-meta {
    font-size: 0.75rem !important;
  }
  
  /* Article content padding */
  .article-content {
    padding: 2rem 1rem !important;
  }
  
  /* Article meta section */
  .article-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  
  /* Typography adjustments */
  .prose p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  
  .prose .text-xl {
    font-size: 1.125rem !important;
  }
  
  .prose h2 {
    font-size: 1.5rem !important;
  }
  
  .prose blockquote {
    font-size: 1rem !important;
    padding-left: 1rem !important;
  }
}

/* Specific styles for screens below 437px */
@media (max-width: 437px) {
  /* Further reduce hero height */
  .article-hero {
    height: 40vh !important;
    min-height: 280px !important;
  }
  
  .hero-title {
    font-size: 1.75rem !important;
  }
  
  .hero-content {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .hero-meta {
    font-size: 0.7rem !important;
  }
  
  /* Reduce content padding */
  .article-content {
    padding: 1.5rem 0.75rem !important;
  }
  
  /* Smaller typography */
  .prose p {
    font-size: 0.95rem !important;
  }
  
  .prose .text-xl {
    font-size: 1.05rem !important;
  }
  
  .prose h2 {
    font-size: 1.3rem !important;
  }
}

/* Ultra-small screens below 400px */
@media (max-width: 400px) {
  .article-hero {
    height: 35vh !important;
    min-height: 250px !important;
  }
  
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .hero-content {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-bottom: 1rem !important;
  }
  
  .article-content {
    padding: 1rem 0.5rem !important;
  }
  
  .prose p {
    font-size: 0.9rem !important;
  }
  
  .prose .text-xl {
    font-size: 1rem !important;
  }
  
  .prose h2 {
    font-size: 1.2rem !important;
  }
  
  .prose blockquote {
    font-size: 0.9rem !important;
    padding-left: 0.75rem !important;
  }
}