/* Base Styles */
:root {
    --primary-color: #4a6fee;
    --secondary-color: #f27a54;
    --text-color: #333;
    --light-gray: #f5f7fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* Hero Section */
  .hero {
    background: linear-gradient(135deg, var(--primary-color), #8a94f8);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .hero .lead {
    font-size: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
  }
  
  /* Section Headers */
  section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
  }
  
  /* Filter Section */
  .filter-section {
    padding: 2rem 0;
    background-color: var(--light-gray);
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
  }
  
  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
  }
  
  .filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
  }
  
  .filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
  }
  
  .filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 0.9rem;
    transition: var(--transition);
  }
  
  .filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 238, 0.1);
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-end;
  }
  
  .btn:hover {
    background-color: #3a5cdb;
  }
  
  .btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
  }
  
  .btn-link:hover {
    text-decoration: underline;
  }
  
  .filter-active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
  }
  
  .results-count {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  /* Books Grid */
  .books-grid {
    padding: 2rem 0 4rem;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .book-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    transition: var(--transition);
    height: 100%;
  }
  
  .book-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
  }
  
  .book-card:hover .book-card-inner {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  .book-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--medium-gray);
  }
  
  .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .book-card:hover .book-cover img {
    transform: scale(1.05);
  }
  
  .book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: a3rem;
    font-weight: 800;
    background-color: var(--secondary-color);
    color: white;
  }
  
  .book-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .book-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .book-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .book-title a {
    color: var(--text-color);
  }
  
  .book-author {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
  }
  
  .book-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .category-badge {
    background-color: var(--light-gray);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--dark-gray);
  }
  
  .book-summary {
    flex-grow: 1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  
  .read-more {
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.9rem;
  }
  
  .no-results {
    text-align: center;
    padding: 3rem 0;
  }
  
  .no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .hidden {
    display: none;
  }
  
  /* Featured Articles */
  .featured-articles {
    padding: 4rem 0;
    background-color: var(--light-gray);
  }
  
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .article-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
  }
  
  .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  .article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .article-content {
    padding: 1.5rem;
  }
  
  .article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }
  
  .article-content p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
  }
  
  .view-all {
    display: block;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 2.25rem;
    }
    
    .hero .lead {
      font-size: 1.2rem;
    }
    
    .filter-group {
      width: 100%;
    }
    
    .grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .articles-grid {
      grid-template-columns: 1fr;
    }
    
    section h2 {
      font-size: 1.75rem;
    }
  }
  
  @media (max-width: 480px) {
    .hero {
      padding: 3rem 0;
    }
    
    .hero h1 {
      font-size: 1.75rem;
    }
    
    .filter-active {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
  }