/* 4RABET Author Profile Styles */
.author-page {
  padding: 40px 0 80px;
  min-height: calc(100vh - 70px - 400px);
}

.author-hero-card {
  background: var(--card, #142439);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius, 16px);
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.author-avatar-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.author-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--blue, #0581ff);
  box-shadow: 0 0 25px rgba(5, 129, 255, 0.35);
  display: block;
}

.author-verified-badge {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: #16b14a;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 3px solid #142439;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.author-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 129, 255, 0.15);
  color: var(--blue, #0581ff);
  border: 1px solid rgba(5, 129, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.author-info h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.author-designation {
  font-size: 16px;
  color: #ffd000;
  font-weight: 600;
  margin-bottom: 16px;
}

.author-bio {
  color: #c5d4e8;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.author-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  background: rgba(10, 24, 41, 0.6);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 16px 20px;
}

.author-stat-item {
  text-align: center;
}

.author-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.author-stat-lbl {
  font-size: 12.5px;
  color: var(--muted, #93a6c0);
  margin-top: 2px;
}

.author-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #c5d4e8;
}

/* Articles by Author Section */
.author-articles-sec {
  margin-top: 40px;
}

.author-articles-sec h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-articles-sec h2::before {
  content: '';
  width: 5px;
  height: 24px;
  background: var(--blue, #0581ff);
  border-radius: 3px;
}

@media (max-width: 860px) {
  .author-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-meta-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .author-skills {
    justify-content: center;
  }
  .author-stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .author-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
