/* BookCollection.css */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.book-collection-section{
  width: 100%;

  background:
    linear-gradient(
      to bottom,
      #050505,
      #0d0d0d,
      #111111
    );

  padding: 120px 7%;

  overflow: hidden;
}

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

.collection-header{
  text-align: center;

  max-width: 800px;

  margin: auto auto 70px;
}

.collection-tag{
  display: inline-block;

  padding: 10px 22px;

  border-radius: 50px;

  border: 1px solid rgba(249,115,22,0.25);

  background: rgba(249,115,22,0.08);

  color: #f59e0b;

  font-size: 12px;
  letter-spacing: 2px;

  margin-bottom: 25px;
}

.collection-header h2{
  font-size: clamp(2.8rem, 6vw, 5rem);

  color: white;

  line-height: 1.05;

  margin-bottom: 20px;

  font-weight: 800;
}

.collection-header h2 span{
  color: #f59e0b;
}

.collection-header p{
  color: #d1d5db;

  font-size: 1.05rem;

  line-height: 1.9;
}

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

.books-grid{
  width: 100%;
  max-width: 1400px;

  margin: auto;

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 35px;
}

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

.book-item{
  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.05);

  border-radius: 28px;

  overflow: hidden;

  transition: 0.5s ease;

  backdrop-filter: blur(10px);
}

.book-item:hover{
  transform: translateY(-12px);

  border-color: rgba(249,115,22,0.2);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.4);
}

/* =========================
   IMAGE
========================= */

.book-image{
  position: relative;

  overflow: hidden;
}

.book-image img{
  width: 100%;
  height: 430px;

  object-fit: cover;

  display: block;

  transition: 0.6s ease;
}

.book-item:hover .book-image img{
  transform: scale(1.06);
}

/* =========================
   OVERLAY
========================= */

.book-overlay{
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.8),
      transparent
    );

  display: flex;
  align-items: flex-end;
  justify-content: center;

  padding-bottom: 30px;

  opacity: 0;

  transition: 0.5s ease;
}

.book-item:hover .book-overlay{
  opacity: 1;
}

.book-overlay a{
  padding: 14px 28px;

  border-radius: 50px;

  text-decoration: none;

  background:
    linear-gradient(
      135deg,
      #f59e0b,
      #f97316
    );

  color: white;

  font-weight: 700;

  transition: 0.4s ease;
}

.book-overlay a:hover{
  transform: translateY(-4px);
}

/* =========================
   INFO
========================= */

.book-info{
  padding: 28px;
}

.book-info h3{
  color: white;

  font-size: 1.6rem;

  margin-bottom: 15px;

  font-weight: 700;
}

.book-info p{
  color: #cfcfcf;

  line-height: 1.8;

  font-size: 1rem;
}

/* =========================
   TABLET
========================= */

@media(max-width:768px){

  .book-collection-section{
    padding: 100px 20px;
  }

  .collection-header{
    margin-bottom: 55px;
  }

  .collection-header h2{
    font-size: 3rem;
  }

  .collection-header p{
    font-size: 1rem;
  }

  .books-grid{
    gap: 25px;
  }

  .book-image img{
    height: 380px;
  }

  .book-info{
    padding: 24px;
  }
}

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

@media(max-width:480px){

  .book-collection-section{
    padding: 80px 16px;
  }

  .collection-tag{
    font-size: 11px;
  }

  .collection-header h2{
    font-size: 2.2rem;
  }

  .collection-header p{
    font-size: 0.95rem;
  }

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

  .book-image img{
    height: 340px;
  }

  .book-info h3{
    font-size: 1.4rem;
  }

  .book-info p{
    font-size: 0.95rem;
  }
}