/* =========================================
   SWARAJ'S LIBRARY
   ========================================= */
  
  
.library {
  max-width: 1000px;
  margin: auto;
  
  font-family: Georgia, "Times New Roman", serif;
  color: #242424;
}


/* =========================================
   HEADER
   ========================================= */

.library-header {
  text-align: center;
  padding: 45px 20px 35px;
  border-bottom: 1px solid #dddddd;
}

.library-title {
  font-family: 'Great Vibes', serif;
  font-size: 100px;
  font-weight: normal;
  letter-spacing: 2px;
  margin: 0 0 12px;
}

.library-subtitle {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #777777;
  margin: 0;
}


/* =========================================
   FILTER SECTION
   ========================================= */

.filter-section {
  margin: 35px 0;
  text-align: center;
}

.filter-title {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 15px;
}

.filter-group {
  margin-bottom: 22px;
}

.filter-button {
  display: inline-block;
  margin: 4px;
  padding: 8px 15px;

  border: 1px solid #cccccc;
  border-radius: 20px;

  background: white;
  color: #444444;

  font-family: Arial, sans-serif;
  font-size: 13px;

  cursor: pointer;
}

.filter-button:hover {
  background: #f2f2f2;
}

.filter-button.active {
  background: #333333;
  color: white;
  border-color: #333333;
}
  
/*=================|||Search Box|||==================================


.search-box {
  max-width: 600px;
  margin: 0 auto 35px;
}

#library-search {
  width: 100%;
  box-sizing: border-box;

  padding: 14px 18px;

  border: 1px solid #cccccc;
  border-radius: 25px;

  background: white;

  font-family: Arial, sans-serif;
  font-size: 14px;

  outline: none;
}

#library-search:focus {
  border-color: #888888;
}

#library-search::placeholder {
  color: #999999;
}
  
  
======================================================== */

  
/* =========================================
   BOOK GRID
   ========================================= */

.book-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;

  margin-top: 30px;
}


/* =========================================
   BOOK CARD
   ========================================= */

.book-card {
  border: 1px solid #dddddd;

  border-radius: 10px;

  padding: 20px;

  background: white;

  text-align: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.08);
}


/* =========================================
   BOOK COVER
   ========================================= */

.book-placeholder {
  height: 230px;

  background: #f3f3f1;

  border-radius: 6px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 18px;

  font-family: Arial, sans-serif;

  font-size: 12px;

  color: #999999;
}


/* =========================================
   BOOK INFORMATION
   ========================================= */

.book-title {
  font-size: 19px;

  line-height: 1.4;

  margin:
    0 0 8px;
}

.book-author {
  font-family: Arial, sans-serif;

  font-size: 13px;

  color: #777777;

  margin:
    0 0 15px;
}


/* =========================================
   CATEGORY + STATUS
   ========================================= */

.book-category,
.book-status {
  display: inline-block;

  font-family: Arial, sans-serif;

  font-size: 10px;

  letter-spacing: 0.8px;

  text-transform: uppercase;

  padding:
    5px 9px;

  border:
    1px solid #cccccc;

  border-radius: 12px;

  margin: 3px;
}

.book-category {
  color: #555555;
}

.book-status {
  color: #777777;
}


/* =========================================
   HIDDEN BOOKS
   ========================================= */

.book-card.hidden {
  display: none;
}


/* =========================================
   ABOUT
   ========================================= */

.library-about {
  margin-top: 60px;

  padding: 30px;

  background: #f7f7f5;

  border-radius: 10px;

  text-align: center;
}

.library-about h2 {
  font-size: 22px;

  font-weight: normal;
}

.library-about p {
  max-width: 650px;

  margin: auto;

  line-height: 1.7;

  color: #666666;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

  .library {
    padding:
      25px 12px;
  }

  .library-title {
    font-size: 32px;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-placeholder {
    height: 280px;
  }

}



