/*
 * Shared Interest Blog — author-page styles.
 * Single-author archive page layout and styling for the .sib-author-page wrapper.
 *
 * @package BlogmaticChild
 */

/* ── Wrapper and base reset ────────────────────────────────────────────────── */

.sib-author-page {
  --sib-accent: #0073aa;
}

.sib-author-page * {
  box-sizing: border-box;
}

/* ── Hero (Hero C wireframe) ────────────────────────────────────────────────── */

.sib-hero {
  padding: 40px 16px 28px;
  text-align: center;
  color: #fff;
}

.sib-hero-portrait {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.sib-hero-portrait img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

.sib-hero-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
}

.sib-hero-name {
  margin: 16px 0 8px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
}

.sib-hero-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sib-category-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 0.75em;
  font-weight: 600;
}

.sib-hero-tagline {
  color: #fff;
  font-style: italic;
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Main + sidebar grid (desktop) ────────────────────────────────────────── */

.sib-author-page > .sib-author-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 24px 16px;
}

.sib-main {
  min-width: 0;
}

/* ── Articles grid ────────────────────────────────────────────────────────── */

.sib-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.sib-article-card {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease;
}

.sib-article-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sib-article-card img {
  display: block;
  width: 100%;
  height: auto;
}

.sib-article-card h3 {
  margin: 8px 12px 4px;
  font-size: 1rem;
  line-height: 1.3;
}

.sib-article-card time {
  display: block;
  margin: 0 12px 12px;
  color: #666;
  font-size: 0.85rem;
}

.sib-article-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sib-no-articles {
  color: #666;
  font-style: italic;
}

.sib-view-all a {
  text-decoration: none;
  font-weight: 600;
}

/* ── Sections (main, sidebar) – populated by Phase 8.4–8.5 ────────────────── */

/* ── Main column: content blocks ─────────────────────────────────────────── */

.sib-main > section + section {
  margin-top: 28px;
}

.sib-bio h2,
.sib-methodology h2,
.sib-ai-disclosure h2,
.sib-compliance h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.sib-bio p,
.sib-methodology p,
.sib-ai-disclosure p,
.sib-compliance p {
  line-height: 1.6;
  color: #333;
  margin: 0 0 12px;
}

/* ── AI disclosure — warning-tone box ────────────────────────────────────── */

.sib-ai-disclosure {
  background: #fff8e1;
  border-left: 4px solid #f4b400;
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
}

.sib-ai-disclosure h2 span[aria-hidden="true"] {
  margin-right: 6px;
}

/* ── Compliance — red left border ────────────────────────────────────────── */

.sib-compliance {
  background: #fdecea;
  border-left: 4px solid #c0392b;
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
}

.sib-compliance p {
  color: #5a1d1a;
  margin: 0 0 12px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.sib-sidebar > section + section {
  margin-top: 24px;
}

.sib-sidebar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Sources ─────────────────────────────────────────────────────────────── */

.sib-sources ul {
  list-style: disc inside;
  padding-left: 0;
  margin: 0;
}

.sib-sources li {
  margin: 4px 0;
  color: #333;
}

/* ── Topic pills ─────────────────────────────────────────────────────────── */

.sib-topic-pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sib-topic-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.05);
}

.sib-topics-browse {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  text-decoration: none;
}

/* ── Cross-refs ──────────────────────────────────────────────────────────── */

.sib-cross-refs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sib-cross-refs li {
  margin: 6px 0;
  color: #333;
}

.sib-cross-refs a {
  font-weight: 600;
  text-decoration: underline;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */

.sib-contact a {
  font-weight: 600;
  text-decoration: none;
}

.sib-contact-email {
  margin: 6px 0 0;
  color: #666;
  font-size: 0.9rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.sib-author-footer {
  padding: 24px 16px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #666;
  font-size: 0.9rem;
}

.sib-editorial-approach {
  font-weight: 600;
  text-decoration: none;
}

.sib-last-updated time {
  color: #444;
}

/* ── Responsive: mobile single-column layout (<1024px) ───────────────────── */

@media (max-width: 1023px) {
  .sib-hero {
    padding: 24px 16px 18px;
  }

  .sib-hero-portrait img,
  .sib-hero-initials {
    width: 150px;
    height: 150px;
  }

  .sib-hero-initials {
    font-size: 2.5rem;
  }

  .sib-hero-name {
    font-size: 1.75rem;
  }

  .sib-hero-tagline {
    font-size: 1rem;
  }

  .sib-author-page > .sib-author-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 12px;
  }

  .sib-articles-grid {
    grid-template-columns: 1fr;
  }

  .sib-article-card a {
    display: flex;
    align-items: stretch;
    gap: 12px;
  }

  .sib-article-card img {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    object-fit: cover;
  }

  .sib-article-card h3 {
    margin: 8px 12px 4px 0;
    font-size: 0.95rem;
  }

  .sib-article-card time {
    margin: 0 12px 8px 0;
  }

  .sib-author-footer {
    padding: 20px 12px;
  }
}
