/* ═══════════════════════════════════════════
   CLARIX — LIBRARY PAGE CSS
═══════════════════════════════════════════ */

.library-page { padding: 40px 0 80px; }
.library-header { text-align: center; padding: 20px 0 36px; }

.lib-filter { margin-bottom: 32px; }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px; padding-bottom: 40px;
}
@media (max-width: 680px) { .lib-grid { grid-template-columns: 1fr; } }

.lib-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all var(--t-mid); cursor: pointer;
  animation: fadeUp 0.3s var(--ease) both;
}
.lib-card:hover {
  border-color: rgba(255,112,67,0.3);
  background: rgba(255,112,67,0.04);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.lib-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px;
}
.lib-card-title {
  font-family: var(--font-head); font-size: 16px;
  font-weight: 700; color: #fff; line-height: 1.3;
}
.lib-card-badges { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.lib-card-preview {
  font-size: 13px; color: #fff; line-height: 1.65;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
}

.lib-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.05);
}
.lib-card-cat {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.lib-use-btn {
  padding: 7px 16px; border-radius: var(--r-full);
  background: rgba(255,112,67,0.1); border: 1px solid rgba(255,112,67,0.25);
  color: var(--accent); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all var(--t-fast);
  font-family: var(--font-body);
}
.lib-use-btn:hover { background: rgba(255,112,67,0.2); border-color: var(--accent); }

/* Pro lock overlay */
.lib-card.locked { position: relative; }
.lib-card.locked::after {
  content: '🔒 Pro';
  position: absolute; inset: 0; border-radius: var(--r-lg);
  background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--accent);
  opacity: 0; transition: opacity var(--t-fast);
}
.lib-card.locked:hover::after { opacity: 1; }
