/* ===================================
   AI FAMA — AUTHORS LISTING PAGE
   =================================== */

:root {
  --color-primary:    #1C1C1E;
  --color-background: #F6F5F2;
  --color-secondary:  #8E8E93;
  --color-accent:     #9C7A4B;
  --color-white:      #FFFFFF;
  --color-border:     #E5E5E5;
  --color-hover:      #736045;
  --color-light-bg:   #FAFAF9;
}

.aifama-authors {
  background: var(--color-background);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.aup-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===================================
   PAGE HEADER — dark, editorial
   =================================== */

.aup-header {
  background: var(--color-primary);
  padding: 48px 0 56px;
}

.aup-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}

.aup-breadcrumbs a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.aup-breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.aup-sep {
  color: rgba(255,255,255,0.25);
}

.aup-current {
  color: rgba(255,255,255,0.65);
}

.aup-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-white);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.aup-intro {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin: 0 0 32px 0;
  max-width: 540px;
}

.aup-meta-bar {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.aup-count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ===================================
   AUTHORS GRID
   =================================== */

.aup-grid-section {
  padding: 72px 0 96px;
}

.aup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===================================
   AUTHOR CARD
   =================================== */

.aup-author-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.aup-author-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Card top — avatar + identity */
.aup-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.aup-card-top:hover {
  text-decoration: none;
}

.aup-avatar-wrap {
  flex-shrink: 0;
}

.aup-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  display: block;
  transition: border-color 0.2s;
}

.aup-author-card:hover .aup-avatar {
  border-color: var(--color-accent);
}

.aup-card-identity {
  min-width: 0;
}

.aup-author-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 4px 0;
  line-height: 1.2;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aup-card-top:hover .aup-author-name {
  color: var(--color-accent);
}

.aup-article-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* Bio */
.aup-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-secondary);
  margin: 0;
  flex: 1;
}

/* Latest article teaser */
.aup-latest {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.aup-latest-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.aup-latest-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aup-latest-title:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Card footer — social + CTA */
.aup-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.aup-socials {
  display: flex;
  gap: 6px;
}

.aup-social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--color-background);
  color: var(--color-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: 1px solid var(--color-border);
}

.aup-social-icon:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  text-decoration: none;
}

.aup-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, gap 0.2s;
}

.aup-view-all:hover {
  color: var(--color-hover);
  gap: 9px;
  text-decoration: none;
}

/* Empty state */
.aup-empty {
  text-align: center;
  padding: 80px 0;
}

.aup-empty p {
  font-size: 18px;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

.aup-back-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.aup-back-link:hover {
  color: var(--color-hover);
}

/* ===================================
   ALSO: style the author-name link
   in single.php so it looks right
   =================================== */

.author-name {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.author-name:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.author-card-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.author-card-name a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ===================================
   RESPONSIVE — 1024px
   =================================== */

@media (max-width: 1024px) {
  .aup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   RESPONSIVE — 768px
   =================================== */

@media (max-width: 768px) {
  .aup-header {
    padding: 36px 0 44px;
  }

  .aup-title {
    font-size: 36px;
  }

  .aup-intro {
    font-size: 15px;
  }

  .aup-grid-section {
    padding: 48px 0 72px;
  }

  .aup-grid {
    grid-template-columns: 1fr;
  }

  .aup-card-footer {
    flex-wrap: wrap;
  }
}

/* ===================================
   RESPONSIVE — 480px
   =================================== */

@media (max-width: 480px) {
  .aup-title {
    font-size: 28px;
  }

  .aup-author-card {
    padding: 20px;
  }
}
