/* ═══════════════════════════════════════════
   AUTHOR PROFILE PAGE — INNERLUXES
   ═══════════════════════════════════════════ */

/* Breadcrumb */
.ap-breadcrumb {
  padding: 90px 24px 0;
  max-width: 1160px;
  margin: 0 auto;
  font-size: .88rem;
  color: var(--muted);
}
.ap-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.ap-breadcrumb a:hover {
  color: var(--heading);
}
.ap-breadcrumb .sep {
  margin: 0 8px;
  opacity: .5;
}
.ap-breadcrumb .current {
  color: var(--heading);
  font-weight: 600;
}

/* Author Card */
.ap-card {
  display: flex;
  gap: 48px;
  max-width: 1160px;
  margin: 40px auto 56px;
  padding: 0 24px;
  align-items: flex-start;
}
.ap-photo {
  width: 220px;
  min-width: 220px;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}
.ap-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ap-info {
  flex: 1;
}
.ap-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--heading);
}
.ap-role {
  font-size: .95rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 18px;
}
.ap-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 720px;
}
.ap-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .2s;
}
.ap-linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: #fff;
}
.ap-linkedin svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Categories tags */
.ap-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.ap-cat-tag {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  background: rgba(59, 130, 246, .1);
  color: #3b82f6;
  white-space: nowrap;
}

/* Articles Section */
.ap-articles {
  max-width: 1160px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.ap-articles-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--heading);
}
.ap-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ap-article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.ap-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}
.ap-article-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.ap-article-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ap-article-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #3b82f6;
  margin-bottom: 8px;
}
.ap-article-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
  margin-bottom: 10px;
}
.ap-article-excerpt {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.ap-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Empty state */
.ap-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .ap-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .ap-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }
  .ap-photo {
    width: 180px;
    min-width: 180px;
    height: 220px;
  }
  .ap-categories {
    justify-content: center;
  }
  .ap-articles-grid {
    grid-template-columns: 1fr;
  }
}
