/*
 * Author Profile Styles
 * Theme PsyGuild
 */

.pg-author-profile {
  position: relative;
}

.pg-author-profile__cover {
  position: relative;
  width: 100%;
  height: clamp(260px, 34vw, 360px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,207,232,0.22), transparent 36%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,0.22), transparent 32%),
    linear-gradient(135deg, #0f172a, #334155);
}

.pg-author-profile__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.62;
}

.pg-author-profile__cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #f8fafc 0%, rgba(248,250,252,0.72) 24%, transparent 72%);
}

.pg-author-profile__main {
  position: relative;
  z-index: 2;
  margin-top: -96px;
  padding-bottom: 80px;
}

.pg-author-profile__card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: clamp(28px, 5vw, 48px);
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 28px 70px -28px rgba(15,23,42,0.24);
  border-radius: var(--pg-radius-xl);
  backdrop-filter: blur(var(--pg-glass-blur));
}

.pg-author-profile__avatar {
  width: clamp(128px, 16vw, 160px);
  height: clamp(128px, 16vw, 160px);
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15,23,42,0.16);
}

.pg-author-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-author-profile__content {
  flex: 1;
  min-width: 0;
}

.pg-author-profile__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
}

.pg-author-profile__name {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pg-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--pg-text-main);
}

.pg-author-profile__verified {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(0,207,232,0.12);
  color: var(--pg-cyan);
  border: 1px solid rgba(0,207,232,0.28);
  font-size: 0.9rem;
  font-weight: 900;
}

.pg-author-profile__specialty {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pg-cyan);
}

.pg-author-profile__bio {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--pg-text-soft);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 500;
}

.pg-author-profile__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pg-author-profile__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(15,23,42,0.05);
  color: var(--pg-text-soft);
  font-size: 0.875rem;
  font-weight: 600;
  transition: 0.3s;
}

.pg-author-profile__social:hover {
  background: var(--pg-cyan);
  color: #fff;
}

.pg-author-profile__stats {
  display: flex;
  gap: clamp(24px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid rgba(15,23,42,0.10);
}

.pg-author-profile__stats strong {
  display: block;
  font-family: var(--pg-font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--pg-text-main);
}

.pg-author-profile__stats span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pg-text-muted);
}

.pg-author-profile__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 40px 0 36px;
  border-bottom: 1px solid rgba(15,23,42,0.10);
}

.pg-author-profile__tabs a {
  display: inline-flex;
  padding-bottom: 16px;
  border-bottom: 2px solid transparent;
  color: var(--pg-text-muted);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.pg-author-profile__tabs a:hover {
  color: var(--pg-text-main);
}

.pg-author-profile__tabs a.is-active {
  color: var(--pg-cyan);
  border-bottom-color: var(--pg-cyan);
}

.pg-author-profile__posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.pg-author-profile__pagination {
  margin-top: 40px;
}

@media (max-width: 768px) {
  .pg-author-profile__main {
    margin-top: -72px;
  }

  .pg-author-profile__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 22px;
  }

  .pg-author-profile__top {
    flex-direction: column;
    align-items: center;
  }

  .pg-author-profile__name {
    justify-content: center;
  }

  .pg-author-profile__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .pg-author-profile__stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }

  .pg-author-profile__tabs {
    justify-content: center;
    gap: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .pg-author-profile__tabs a {
    white-space: nowrap;
  }

  .pg-author-profile__posts {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
