/* Author profile — Poker Exams blog theming */

.author-profile {
  --author-accent: #2BC5D4;
  --author-accent-deep: #24a8b5;
  --author-ink: #111827;
  --author-muted: #6b7280;
  --author-border: #e5e7eb;
  --author-soft: rgba(43, 197, 212, 0.12);
  --author-body: #374151;
  --author-surface: #ffffff;
  --author-font-heading: "SN Pro", sans-serif;
  --author-font-body: "Figtree", sans-serif;
  background: #fff;
  color: var(--author-ink);
  font-family: var(--author-font-body);
}

.author-profile__container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .author-profile__container {
    width: min(1120px, calc(100% - 2.5rem));
  }
}

.author-profile__container--breadcrumb {
  padding-top: 1.25rem;
}

.author-profile__breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--author-muted);
}

.author-profile__breadcrumb-link {
  color: var(--author-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.author-profile__breadcrumb-link:hover {
  color: var(--author-accent-deep);
}

.author-profile__breadcrumb-sep {
  display: inline-flex;
  color: #d1d5db;
}

.author-profile__breadcrumb-current {
  color: var(--author-ink);
  font-weight: 600;
}

.author-profile__hero {
  position: relative;
  margin-top: 1rem;
  padding: 2.5rem 0 2.75rem;
  overflow: hidden;
}

.author-profile__hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 10% 20%, rgba(43, 197, 212, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(43, 197, 212, 0.08), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  pointer-events: none;
}

.author-profile__hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.author-profile__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .author-profile__identity {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }
}

.author-profile__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 9999px;
  background: var(--author-ink);
  color: #fff;
  font-family: var(--author-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  box-shadow: 0 12px 28px -12px rgba(17, 24, 39, 0.45);
  border: 3px solid #fff;
}

@media (min-width: 640px) {
  .author-profile__avatar {
    width: 7.5rem;
    height: 7.5rem;
    font-size: 2rem;
  }
}

.author-profile__avatar--photo {
  object-fit: cover;
  padding: 0;
  background: transparent;
}

.author-profile__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--author-accent-deep);
}

.author-profile__name {
  margin: 0;
  font-family: var(--author-font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--author-ink);
}

.author-profile__credentials {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--author-accent-deep);
}

.author-profile__years {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--author-muted);
}

.author-profile__bio {
  margin: 1.5rem 0 0;
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--author-body);
}

.author-profile__bio p {
  margin: 0;
}

.author-profile__bio p + p {
  margin-top: 1rem;
}

.author-profile__posts {
  padding: 0.5rem 0 4rem;
}

.author-profile__posts-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--author-border);
}

.author-profile__posts-title {
  margin: 0;
  font-family: var(--author-font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
}

.author-profile__posts-count {
  margin: 0;
  font-size: 0.875rem;
  color: var(--author-muted);
}

.author-profile__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .author-profile__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .author-profile__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.author-profile__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--author-border);
  border-radius: 1rem;
  background: var(--author-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.author-profile__card:hover {
  border-color: color-mix(in srgb, var(--author-accent) 45%, var(--author-border));
  box-shadow: 0 16px 32px -18px rgba(17, 24, 39, 0.28);
  transform: translateY(-2px);
}

.author-profile__card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.author-profile__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.author-profile__card:hover .author-profile__card-media img {
  transform: scale(1.03);
}

.author-profile__card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9ca3af;
  background: linear-gradient(135deg, #f3f4f6, var(--author-soft));
}

.author-profile__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.35rem;
}

.author-profile__card-category {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--author-accent-deep);
}

.author-profile__card-meta {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--author-muted);
}

.author-profile__card-title {
  margin: 0.55rem 0 0;
  font-family: var(--author-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.author-profile__card-title a {
  color: var(--author-ink);
  text-decoration: none;
}

.author-profile__card-title a:hover {
  color: var(--author-accent-deep);
}

.author-profile__card-excerpt {
  margin: 0.65rem 0 0;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--author-body);
}

.author-profile__card-more {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--author-accent-deep);
  text-decoration: none;
}

.author-profile__card-more:hover {
  text-decoration: underline;
}

.author-profile__empty {
  margin: 0;
  padding: 2rem;
  border: 1px dashed var(--author-border);
  border-radius: 1rem;
  text-align: center;
  color: var(--author-muted);
  background: #f9fafb;
}

.author-profile__footer-nav {
  margin-top: 2.5rem;
}

.author-profile__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--author-muted);
  text-decoration: none;
}

.author-profile__back-link:hover {
  color: var(--author-accent-deep);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
