/* ===== BASE STYLES ===== */
.author-profile-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.author-profile-header {
  text-align: center;
}

/* ===== PROFILE PICTURE ===== */
.author-avatar-round {
  position: relative;
  margin: 0 auto 25px;
  width: 160px;
  height: 160px;
}

.author-avatar-round img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid #ff6b6b;
  box-shadow: 0 5px 15px rgba(255,107,107,0.3);
  transition: all 0.3s ease;
}

.author-avatar-round:before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px dashed #ff6b6b;
  border-radius: 50%;
  animation: rotate 20s linear infinite;
  z-index: -1;
}

@-webkit-keyframes rotate {
  100% { -webkit-transform: rotate(360deg); }
}
@keyframes rotate {
  100% { transform: rotate(360deg); }
}

/* ===== BIO SECTION ===== */
.author-bio {
  position: relative;
  max-width: 600px;
  margin: 25px auto;
  padding: 25px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  line-height: 1.8;
  font-size: 17px;
  border-left: 4px solid #ff6b6b;
}

.author-bio:before,
.author-bio:after {
  content: """;
  font-size: 60px;
  color: #ff6b6b;
  font-family: serif;
  line-height: 1;
  position: absolute;
}

.author-bio:before {
  left: 15px;
  top: -15px;
}

.author-bio:after {
  right: 15px;
  bottom: -40px;
}

/* ===== EMAIL BUTTON ===== */
.author-email a {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white !important;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255,107,107,0.3);
  transition: all 0.3s ease;
  margin: 15px 0;
}

.author-email a:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(255,107,107,0.4);
}

/* ===== POSTS GRID ===== */
.author-posts h2 {
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  margin: 40px 0 30px;
  font-size: 28px;
}

.author-posts h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #ffb347);
  border-radius: 2px;
}

.author-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.author-post-exact {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.author-post-exact:hover {
  transform: translateY(-5px);
}

.post-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.author-post-exact h3 {
  padding: 15px;
  margin: 0;
  font-size: 18px;
}

.author-post-exact h3 a {
  text-decoration: none;
  color: #333;
}

/* ===== PAGINATION FIX ===== */
.author-pagination {
  margin-top: 40px;
}

.author-pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.author-pagination li {
  display: inline-block;
  margin: 0;
}

.author-pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}

.author-pagination .page-numbers.current,
.author-pagination a.page-numbers:hover {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
  .author-profile-container {
    max-width: 100% !important;
    padding: 15px !important;
  }
  
  .author-posts-grid {
    grid-template-columns: 1fr;
  }
}