/* includes/author/author.css */

/* ──────────────────────────────────────────
   Contributors list (.cb-*) — used by contributors.php
   ────────────────────────────────────────── */

.cb-list { display: flex; flex-direction: column; gap: 10px; margin: 0 6px; }

.cb-row {
  background: rgba(18,20,24,0.62);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.cb-row:active { transform: scale(0.995); }

.cb-avatar {
  width: 52px; height: 52px; border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 52px;
}
.cb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cb-body { min-width: 0; flex: 1; }

.cb-name {
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cb-badge {
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.80);
}

.cb-title {
  margin-top: 3px;
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-chevron { color: rgba(255,255,255,0.55); font-size: 22px; padding-left: 6px; }

.cb-empty {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}

/* ──────────────────────────────────────────
   Author books page (.auth-*) — used by author.php
   ────────────────────────────────────────── */

/* ── Section label (book count etc.) ── */
.auth-section-label {
  padding: 60px 16px 12px; /* 60px = back-button topbar clearance */
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
}

/* ── Book grid ── */
.auth-section {
  padding: 0 14px 32px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-book-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}
.auth-book-card:active .auth-book-cover {
  transform: scale(0.97);
}

.auth-book-cover {
  width: 100%;
  overflow: hidden;
  background: rgba(18,20,24,0.80);
  transition: transform 0.14s ease;
}
.auth-book-cover img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.auth-book-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.auth-book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 10px;
  color: rgba(255,255,255,0.48);
}

/* ── Empty state ── */
.auth-empty {
  padding: 24px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.60);
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}
