/* /assets/css/author.css */

.author-profile{
  font-family: system-ui, sans-serif;
  padding: 20px;
  color: #111;
}

.author-profile .profile{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  background:#fff;
  padding:20px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
  margin-bottom:18px;
  align-items:center;
}

.profile-media{ flex:0 0 auto; }

.author-profile img.avatar{
  width:140px;
  height:140px;
  border-radius:12px;
  object-fit:cover;
  border:2px solid #eee;
}

.author-profile .avatar-fallback{
  width:140px;
  height:140px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#f3f4f6;
  color:#555;
  font-size:32px;
  font-weight:700;
}

.author-profile .meta{
  flex:1;
  min-width:240px;
}

.author-profile .meta h1{
  margin:0 0 8px;
  font-size:1.8rem;
}

.author-profile .bio{
  margin:0 0 12px;
  color:#333;
  line-height:1.5;
}

.author-profile .links a{
  margin-right:12px;
  font-size:.95rem;
  color:#0a66c2;
  text-decoration:none;
}
.author-profile .links a:hover{ text-decoration:underline; }

.author-profile .dates{
  margin-top:10px;
  font-size:.85rem;
  color:#666;
}

.author-posts-head{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin: 8px 0 14px;
}
.author-posts-head h2{ margin:0; font-size:1.2rem; }
.author-search{
  width:min(360px, 60vw);
  padding:10px 12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  outline:none;
}

.author-profile .posts{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:20px;
}

.author-profile .post-card{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,0.05);
  transition:transform .2s ease, box-shadow .2s ease;
}

.author-profile .post-card:hover{
  transform:translateY(-4px);
  box-shadow:0 6px 16px rgba(0,0,0,0.08);
}

.author-profile .post-card img{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}

.author-profile .post-card h3{
  font-size:1rem;
  margin:12px;
  color:#111;
}

.author-profile .post-card p{
  font-size:.9rem;
  color:#555;
  margin:0 12px 12px;
  line-height:1.4;
}

.muted{ color:#666; }

@media (max-width:640px){
  .author-profile .profile{
    flex-direction:column;
    text-align:center;
  }
  .author-profile img.avatar,
  .author-profile .avatar-fallback{
    width:120px;
    height:120px;
    margin:0 auto;
  }
  .author-profile .meta h1{ font-size:1.5rem; }
  .author-posts-head{ flex-direction:column; align-items:stretch; }
  .author-search{ width:100%; }
  .author-profile .posts{ grid-template-columns:1fr; }
}
