/* ============ BREADCRUMB (shared pattern) ============ */
.breadcrumb-wrap { padding-bottom: 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-gray);
}
.breadcrumb a { color: var(--text-gray); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb i { font-size: 10px; }
.breadcrumb span { color: var(--navy); font-weight: 700; }

/* ============ LIBRARY STATS ============ */
.library-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.lib-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream-alt);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
}
.lib-stat-card i {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--gold-dark);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.lib-stat-card strong { display: block; font-size: 20px; color: var(--navy); }
.lib-stat-card span { font-size: 12px; color: var(--text-gray); }

/* ============ LIBRARY GRID ============ */
.filter-tabs { margin-bottom: 26px; }

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.library-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
}
.library-card .book-cover { display: flex; height: 220px; }

.lib-cover-wrap { position: relative; margin-bottom: 12px; }

.fav-btn {
  position: absolute;
  top: 10px; left: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.fav-btn:hover { color: #d1493f; }
.fav-btn.active { color: #d1493f; }

.completed-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #2f7a4a;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

.library-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.library-card .author { color: var(--text-gray); font-size: 13px; margin-bottom: 10px; }

.progress-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.progress-bar { flex: 1; height: 7px; border-radius: 6px; background: #e6e2d8; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 6px; }
.progress-pct { font-size: 12px; font-weight: 700; color: var(--text-gray); }

.completed-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #2f7a4a;
  margin-bottom: 14px;
}

.library-card .btn { width: 100%; justify-content: center; font-size: 13px; padding: 10px; }

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-gray); }
.empty-state i { font-size: 40px; color: var(--border-light); margin-bottom: 14px; }
.empty-state p { margin-bottom: 18px; font-size: 14px; }
.empty-state .btn { display: inline-flex; }

/* extra cover gradients for library books */
.lcover-1 { background: linear-gradient(160deg,#1c1c24,#3a2f4a); }
.lcover-2 { background: linear-gradient(160deg,#b23a2e,#5c1c16); }
.lcover-3 { background: linear-gradient(160deg,#7a1f1f,#2a1414); }
.lcover-4 { background: linear-gradient(160deg,#4a3a2a,#1c140c); }
.lcover-5 { background: linear-gradient(160deg,#6a1f2f,#2a0c14); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .library-stats { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .library-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .library-stats { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
}
