/* ============================================================
   DAILY OPPORTUNITIES — author_detail.css
   Author profile + listings page.
   Reuses from category.css: .listings-grid, .listing-card,
   .listing-*, .badge-*, .btn-apply, .cat-results-bar,
   .no-results, .pagination-*
   This file is ONLY the author-page delta.
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   AUTHOR HERO
   Dark-green header with avatar, name, bio, stats.
   ───────────────────────────────────────────────────────────── */
.author-hero {
  background: linear-gradient(150deg, var(--green-deep) 0%, #2E7D32 55%, #1B5E20 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 5% clamp(52px, 7vw, 88px);
  text-align: center;
}

/* Dot-grid overlay */
.author-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Amber orb top-right */
.author-hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,179,0,.15) 0%, transparent 68%);
  pointer-events: none;
}

.author-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  animation: authorHeroUp .65s var(--ease-out, cubic-bezier(.22,.61,.36,1)) both;
}

@keyframes authorHeroUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Breadcrumb */
.author-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}
.author-breadcrumb a {
  color: rgba(255,255,255,.70);
  text-decoration: none;
  transition: color .2s;
}
.author-breadcrumb a:hover { color: #fff; }
.author-breadcrumb-sep     { color: rgba(255,255,255,.30); }
.author-breadcrumb span[aria-current] { color: rgba(255,255,255,.85); font-weight: 500; }

/* Avatar */
.author-hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  margin: 0 auto 20px;
  display: block;
}

/* Initials placeholder */
.author-hero-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 4px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.20);
}

/* Name */
.author-hero-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -.025em;
  line-height: 1.15;
}

/* Job title */
.author-hero-position {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  color: var(--amber-bright, #FFB300);
  margin: 0 0 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Bio */
.author-hero-bio {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(.9rem, 1.8vw, 1rem);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin: 0 auto 24px;
  max-width: 520px;
}

/* Stats row */
.author-hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 14px 28px;
  backdrop-filter: blur(8px);
}
.author-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.author-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber-bright, #FFB300);
  line-height: 1.1;
}
.author-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─────────────────────────────────────────────────────────────
   PAGE LAYOUT  (sidebar + main two-column)
   ───────────────────────────────────────────────────────────── */
.author-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5% 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* ─────────────────────────────────────────────────────────────
   SIDEBAR
   ───────────────────────────────────────────────────────────── */
.author-sidebar {
  position: sticky;
  top: calc(var(--nav-h, 68px) + 24px);
}
.sidebar-section {
  background: var(--white, #fff);
  border: 1.5px solid var(--border, #E5E7EB);
  border-radius: var(--radius-card, 18px);
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05));
}
.sidebar-title {
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted-text, #4B5563);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 16px 20px 12px;
  margin: 0;
  border-bottom: 1px solid var(--border, #E5E7EB);
}

/* Author list in sidebar */
.sidebar-author-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.sidebar-author-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-text, #4B5563);
  text-decoration: none;
  transition: background .18s, color .18s;
  border-left: 3px solid transparent;
}
.sidebar-author-item:hover {
  background: var(--green-pale, #F2F7F2);
  color: var(--green-deep, #1B5E20);
}
.sidebar-author-item.active {
  background: var(--green-pale, #F2F7F2);
  color: var(--green-deep, #1B5E20);
  font-weight: 600;
  border-left-color: var(--green-deep, #1B5E20);
}
.sidebar-author-item:focus-visible {
  outline: 3px solid var(--green-bright, #43A047);
  outline-offset: -2px;
}
.sidebar-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border, #E5E7EB);
}
.sidebar-author-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-light, #E8F5E9);
  color: var(--green-deep, #1B5E20);
  font-family: 'Poppins', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-author-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
   MAIN CONTENT AREA
   ───────────────────────────────────────────────────────────── */
.author-main {
  min-width: 0; /* prevents grid blowout */
}

.author-main .cat-results-bar {
  margin-bottom: 20px;
}

.author-main .listings-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ─────────────────────────────────────────────────────────────
   FOOTER AD
   ───────────────────────────────────────────────────────────── */
.author-footer-ad {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 5%;
  border-radius: var(--radius-card, 18px);
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .author-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
  }
  .author-sidebar {
    position: static;
  }
  /* Horizontal pill layout on tablet */
  .sidebar-author-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
  }
  .sidebar-author-item {
    border-left: none;
    border-radius: 30px;
    padding: 6px 14px;
    border: 1.5px solid var(--border, #E5E7EB);
  }
  .sidebar-author-item.active {
    border-color: var(--green-deep, #1B5E20);
    background: var(--green-pale, #F2F7F2);
  }
  .sidebar-author-avatar,
  .sidebar-author-initials {
    width: 24px;
    height: 24px;
    font-size: .75rem;
  }
}

@media (max-width: 768px) {
  .author-hero {
    padding: 32px 5% 48px;
  }
  .author-hero-avatar,
  .author-hero-placeholder {
    width: 96px;
    height: 96px;
  }
  .author-hero-placeholder { font-size: 2rem; }
  .author-layout { padding: 20px 5% 60px; }
  .author-main .listings-grid { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
}

@media (max-width: 480px) {
  .author-hero-stats { padding: 12px 20px; }
  .author-stat-value { font-size: 1.25rem; }
}

/* ─────────────────────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .author-hero-inner {
    animation: none !important;
  }
  .sidebar-author-item,
  .author-hero-avatar {
    transition: none !important;
  }
}