/* ============================================================
 * Author Profile Pages — /kirjoittaja/{slug}/ + /kirjoittajat/
 * Layered on top of category.css; only author-specific rules.
 * Matches the dark-purple brand palette.
 * ============================================================ */

/* ── Single profile hero ─────────────────────────────────── */
.author-profile-page .author-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  margin: 0 0 28px;
}

.author-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.author-hero-photo {
  flex-shrink: 0;
}

.author-hero-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid rgba(255, 198, 59, 0.35);
  object-fit: cover;
  display: block;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.author-hero-text {
  flex: 1;
  min-width: 240px;
}

.author-hero-text h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 800;
  color: #f7eaff;
  letter-spacing: -0.4px;
}

.author-role {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent, #ffc63b);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.author-expertise {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.author-expertise li {
  font-size: 11px;
  font-weight: 600;
  color: rgba(247, 234, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.author-stats {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(247, 234, 255, 0.78);
}

.author-stats strong {
  color: var(--accent, #ffc63b);
  font-size: 18px;
}

.author-stat-sep {
  margin: 0 8px;
  opacity: 0.4;
}

.author-trust-links {
  font-size: 13px;
  color: rgba(247, 234, 255, 0.6);
}

.author-trust-links a {
  color: #ccb6e6;
  text-decoration: none;
  border-bottom: 1px solid rgba(204, 182, 230, 0.25);
}

.author-trust-links a:hover {
  color: #f7eaff;
  border-bottom-color: rgba(204, 182, 230, 0.6);
}

.author-trust-links span {
  margin: 0 8px;
  opacity: 0.4;
}

/* ── Bio section ─────────────────────────────────────────── */
.author-bio {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.author-bio h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #f7eaff;
}

.author-bio p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(247, 234, 255, 0.85);
}

.author-bio-trust {
  font-size: 13px;
  color: rgba(247, 234, 255, 0.65);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.author-bio-trust a {
  color: #ccb6e6;
  text-decoration: none;
  border-bottom: 1px solid rgba(204, 182, 230, 0.3);
}

/* ── Reviews list ────────────────────────────────────────── */
.author-reviews h2 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #f7eaff;
}

.author-reviews-intro {
  font-size: 14px;
  color: rgba(247, 234, 255, 0.7);
  margin: 0 0 20px;
}

.author-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.author-review-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.author-review-item:hover {
  border-color: rgba(255, 198, 59, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.author-review-link {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  color: inherit;
  text-decoration: none;
}

.author-review-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-review-logo img {
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.author-review-meta {
  min-width: 0;
}

.author-review-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #f7eaff;
  letter-spacing: -0.1px;
}

.author-review-bonus {
  display: block;
  font-size: 13px;
  color: var(--accent, #ffc63b);
  font-weight: 600;
  margin-bottom: 4px;
}

.author-review-info {
  font-size: 12px;
  color: rgba(247, 234, 255, 0.6);
}

.author-review-info span {
  display: inline;
}

.author-review-info span[aria-hidden] {
  margin: 0 6px;
  opacity: 0.4;
}

.author-review-rating {
  color: #ffb766;
  font-weight: 600;
}

.author-review-cta {
  font-size: 13px;
  font-weight: 600;
  color: #ccb6e6;
  white-space: nowrap;
}

.author-reviews-empty p {
  font-size: 14px;
  color: rgba(247, 234, 255, 0.65);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.author-reviews-empty a {
  color: var(--accent, #ffc63b);
  text-decoration: none;
}

/* ── Authors hub grid ────────────────────────────────────── */
.authors-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 0 0 40px;
}

.authors-hub-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.authors-hub-card:hover {
  border-color: rgba(255, 198, 59, 0.35);
  transform: translateY(-2px);
}

.authors-hub-card-inner {
  display: block;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.authors-hub-card-photo {
  margin: 0 auto 16px;
  width: 120px;
  height: 120px;
}

.authors-hub-card-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255, 198, 59, 0.3);
  object-fit: cover;
  display: block;
}

.authors-hub-card-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #f7eaff;
}

.authors-hub-card-role {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #ffc63b);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.authors-hub-card-expertise {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(247, 234, 255, 0.65);
}

.authors-hub-card-stat {
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(247, 234, 255, 0.78);
}

.authors-hub-card-stat strong {
  color: var(--accent, #ffc63b);
  font-size: 16px;
}

.authors-hub-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: #ccb6e6;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .author-profile-page .author-hero { padding: 22px; }
  .author-hero-inner { gap: 18px; }
  .author-hero-photo img { width: 110px; height: 110px; }
  .author-hero-text h1 { font-size: 24px; }
  .author-bio { padding: 22px; }

  .author-review-link {
    grid-template-columns: 80px 1fr;
    gap: 14px;
    padding: 14px 16px;
  }
  .author-review-logo img { max-width: 80px; max-height: 50px; }
  .author-review-cta { display: none; }
  .author-review-title { font-size: 15px; }
}
