/* ==========================
   REPOSITORY CONTAINER
   ========================== */
.repo-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================
   GRID
   ========================== */
#repo-list {
  margin-top: 30px;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* ==========================
   BOOK CARD
   ========================== */
.book-card {
  overflow: hidden;
  background: var(--card-bg);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;   /* 🔥 pindah ke card */
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.14);
}

.book-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

.book-content {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;        /* 🔥 GANTI height:100% */
}

.book-title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.book-meta {
  font-size: 0.6rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.book-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 20px;

  display: -webkit-box;
  -webkit-line-clamp: 3;   /* 🔥 dari 4 → 3 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.book-card .repo-actions {
  margin-top: auto;
}

.book-card .btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 14px 18px;

  background: #1f3c88;
  color: #fff !important;

  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .2px;

  border-radius: 14px;
  box-sizing: border-box;

  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: all .25s ease;
}


.book-card .btn-view:hover {
  background: #162e6e;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.book-card .btn-view,
.book-card .btn-view:hover {
  text-decoration: none !important;
}


/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 768px) {
  .repo-container {
    padding: 24px 16px 72px;
  }

  .repo-header,
  .repo-container .title {
    margin-top: 56px;
    margin-bottom: 48px;
  }

  .repo-header h1 {
    font-size: 1.9rem;
  }

  .repo-grid {
    gap: 24px;
  }
}
