/* ── LiveInBooks — Cards (Authors, Projects, Story Brief) ─────── */

/* ── Author picker ───────────────────────────────────────────── */
.author-grid {
  display: flex;
  justify-content: center;
  gap: .8rem;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}

.author-card {
  background: #fff;
  border-radius: 14px;
  border: 2px solid var(--border);
  padding: 1rem .8rem .8rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  width: 135px;
}
.author-card:hover {
  border-color: var(--green);
  box-shadow: 0 6px 20px rgba(45,90,61,.12);
  transform: translateY(-2px);
}
.author-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,74,.25), 0 6px 20px rgba(45,90,61,.12);
}
.author-card.dimmed {
  opacity: .45;
  transform: scale(.95);
}

.author-portrait {
  width: 70px; height: 70px;
  border-radius: 50%; overflow: hidden;
  border: 2.5px solid rgba(45,90,61,.2);
  box-shadow: 0 2px 12px rgba(45,90,61,.1);
}
.author-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 8%;
}

.author-name {
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
}
.author-bio {
  font-family: var(--body);
  font-size: .72rem;
  color: var(--faint);
  font-style: italic;
  line-height: 1.3;
}

/* ── Author detail panel ─────────────────────────────────────── */
.author-detail {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
  padding: 1.5rem 1.8rem;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  animation: detailIn .35s cubic-bezier(.16,1,.3,1) both;
}
@keyframes detailIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.author-detail-top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.author-detail-portrait {
  width: 80px; height: 80px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(45,90,61,.2);
  box-shadow: 0 4px 16px rgba(45,90,61,.12);
  flex-shrink: 0;
}
.author-detail-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 8%;
}
.author-detail-info { flex: 1; }
.author-detail-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}
.author-detail-bio {
  font-family: var(--body);
  font-size: .88rem;
  color: var(--faint);
  font-style: italic;
  margin-top: .2rem;
  line-height: 1.4;
}

/* ── Author speech bubble ────────────────────────────────────── */
.author-speech {
  background: var(--chat-bg);
  border-radius: 14px 14px 14px 3px;
  padding: 1rem 1.2rem;
  margin: .8rem 0;
  border: 1px solid rgba(45,90,61,.08);
  min-height: 60px;
}
.author-speech p {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}
.author-speech p + p { margin-top: .5em; }
.author-speech-typing {
  display: flex; gap: 4px; align-items: center; padding: .3rem 0;
}
.author-speech-typing span {
  width: 5px; height: 5px; background: var(--faint); border-radius: 50%;
  animation: dot 1.1s ease-in-out infinite;
}
.author-speech-typing span:nth-child(2) { animation-delay: .14s; }
.author-speech-typing span:nth-child(3) { animation-delay: .28s; }

/* ── Detail buttons ──────────────────────────────────────────── */
.author-detail-actions {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
}
.author-choose-btn {
  flex: 1;
  padding: .75rem 1.5rem;
  background: var(--me);
  border: none;
  border-radius: 10px;
  color: rgba(240,235,215,.92);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
}
.author-choose-btn:hover {
  background: var(--green-dk);
}
.author-choose-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.author-back-btn {
  padding: .75rem 1.2rem;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s;
}
.author-back-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ── Project cards (dashboard) ───────────────────────────────── */
.project-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  transition: all .2s;
}
.project-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(45,90,61,.1);
}
.project-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .3rem;
}
.project-meta {
  font-family: var(--sans);
  font-size: .65rem;
  color: var(--faint);
}
.project-status {
  display: inline-block;
  font-family: var(--sans);
  font-size: .55rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 4px;
  margin-top: .5rem;
}
.project-status.awaiting { background: rgba(184,146,74,.12); color: var(--gold); }
.project-status.active { background: rgba(92,184,122,.12); color: #3a8a5a; }
.project-status.completed { background: rgba(120,100,160,.12); color: #7a6898; }
