/* ============================================================
   AUTHORS PAGE — authors-append.css
   Вставить в конец b.css
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.authors-hero {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
}

.authors-hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.authors-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 1.2rem 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  color: var(--text-bright);
}

.authors-hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 3rem;
}

.authors-hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.ahs-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ahs-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.ahs-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ahs-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Декоративные кольца */
.authors-hero-deco {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.ahd-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.07;
  transform: translate(-50%, -50%);
  animation: ringPulse 6s ease-in-out infinite;
}

.ahd-ring-1 { width: 300px; height: 300px; animation-delay: 0s; }
.ahd-ring-2 { width: 500px; height: 500px; animation-delay: 1.5s; opacity: 0.04; }
.ahd-ring-3 { width: 700px; height: 700px; animation-delay: 3s;   opacity: 0.02; }

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.07; }
  50%       { transform: translate(-50%, -50%) scale(1.04); opacity: 0.12; }
}

/* ── SECTION ──────────────────────────────────────────────── */
.authors-section {
  padding: 2rem 0 6rem;
}

.authors-section .container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ── AUTHOR CARD ──────────────────────────────────────────── */
.author-card {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease-smooth), border-color 0.3s;
  opacity: 0;
  transform: translateY(40px);
  animation: cardReveal 0.7s var(--ease-smooth) forwards;
}

.author-card[data-index="0"] { animation-delay: 0.15s; }
.author-card[data-index="1"] { animation-delay: 0.30s; }
.author-card[data-index="2"] { animation-delay: 0.45s; }

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

.author-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* Glow layer */
.author-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.author-card--founder .author-card-glow {
  background: radial-gradient(ellipse at 0% 0%, rgba(168,255,62,0.09) 0%, transparent 60%);
}
.author-card--dev .author-card-glow {
  background: radial-gradient(ellipse at 0% 0%, rgba(0,245,255,0.07) 0%, transparent 60%);
}
.author-card--design .author-card-glow {
  background: radial-gradient(ellipse at 0% 0%, rgba(199,125,255,0.07) 0%, transparent 60%);
}

.author-card:hover .author-card-glow { opacity: 1; }

/* ── LEFT COLUMN ──────────────────────────────────────────── */
.author-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* Photo */
.author-photo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 2;
}

.author-photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--carbon-2);
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 2;
  border: 2px solid var(--border);
}

.author-photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.4;
  z-index: 1;
  animation: photoRing 3s ease-in-out infinite;
}

@keyframes photoRing {
  0%, 100% { transform: scale(1);    opacity: 0.4; }
  50%       { transform: scale(1.05); opacity: 0.7; }
}

.author-card--dev    .author-photo-ring { border-color: #00f5ff; }
.author-card--design .author-photo-ring { border-color: #c77dff; }

.author-photo-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  background: var(--carbon-1);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 3;
}

/* Quick info */
.author-quick-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aqi-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-mid);
  padding: 0.45rem 0.7rem;
  background: var(--glass-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.aqi-item:hover {
  background: rgba(168,255,62,0.06);
  color: var(--text-bright);
}

.author-card--dev    .aqi-item:hover { background: rgba(0,245,255,0.06); }
.author-card--design .aqi-item:hover { background: rgba(199,125,255,0.06); }

.aqi-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ── RIGHT COLUMN ─────────────────────────────────────────── */
.author-card-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* Role tag */
.author-role-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  width: fit-content;
}

.author-role-tag--founder {
  background: rgba(168,255,62,0.12);
  border: 1px solid rgba(168,255,62,0.35);
  color: var(--accent);
}
.author-role-tag--dev {
  background: rgba(0,245,255,0.10);
  border: 1px solid rgba(0,245,255,0.30);
  color: #00f5ff;
}
.author-role-tag--design {
  background: rgba(199,125,255,0.10);
  border: 1px solid rgba(199,125,255,0.30);
  color: #c77dff;
}

/* Name */
.author-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text-bright);
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* Headline */
.author-headline {
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
  opacity: 0.85;
}

.author-card--dev    .author-headline { color: #00f5ff; }
.author-card--design .author-headline { color: #c77dff; }

/* Bio */
.author-bio {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.author-bio p {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
}

/* Tags */
.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.author-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--glass-light);
  border: 1px solid var(--border);
  color: var(--text-mid);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: default;
}

.author-tag:hover {
  background: rgba(168,255,62,0.09);
  border-color: var(--accent);
  color: var(--accent);
}

.author-card--dev    .author-tag:hover {
  background: rgba(0,245,255,0.09);
  border-color: #00f5ff;
  color: #00f5ff;
}
.author-card--design .author-tag:hover {
  background: rgba(199,125,255,0.09);
  border-color: #c77dff;
  color: #c77dff;
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.authors-cta-section {
  padding: 4rem 0 6rem;
}

.authors-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

.authors-cta-inner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}

.authors-cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

.authors-cta-text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin: 0;
  max-width: 500px;
  line-height: 1.6;
}

.authors-cta-btn {
  flex-shrink: 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .author-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .author-card-left {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .author-quick-info {
    flex: 1;
  }

  .author-photo-wrap {
    width: 120px;
    height: 120px;
  }

  .authors-hero-deco {
    display: none;
  }
}

@media (max-width: 600px) {
  .author-card {
    padding: 2rem 1.5rem;
  }

  .author-card-left {
    flex-direction: column;
    align-items: center;
  }

  .authors-cta-inner {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .authors-cta-inner::before {
    left: 0; right: 0; top: 0; bottom: auto;
    width: auto; height: 4px;
    border-radius: 4px 4px 0 0;
  }

  .authors-hero-stats {
    gap: 1.5rem;
  }

  .ahs-num {
    font-size: 1.6rem;
  }

  .authors-cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── НОВЫЕ ТИПЫ КАРТОЧЕК ─────────────────────────────────────── */

/* Аяулым — наука / золотой */
.author-card--science .author-photo-ring { border-color: #ffd60a; }
.author-card--science .author-card-glow  {
  background: radial-gradient(ellipse at 0% 0%, rgba(255,214,10,0.08) 0%, transparent 60%);
}
.author-card--science:hover { border-color: #ffd60a; }
.author-card--science:hover .author-card-glow { opacity: 1; }

.author-role-tag--science {
  background: rgba(255,214,10,0.12);
  border: 1px solid rgba(255,214,10,0.35);
  color: #ffd60a;
}
.author-card--science .author-headline { color: #ffd60a; }
.author-card--science .aqi-item:hover  { background: rgba(255,214,10,0.06); }
.author-card--science .author-tag:hover {
  background: rgba(255,214,10,0.09);
  border-color: #ffd60a;
  color: #ffd60a;
}

/* Камила — веб-дизайн / коралл-розовый */
.author-card--webdesign .author-photo-ring { border-color: #ff6eb4; }
.author-card--webdesign .author-card-glow  {
  background: radial-gradient(ellipse at 0% 0%, rgba(255,110,180,0.08) 0%, transparent 60%);
}
.author-card--webdesign:hover { border-color: #ff6eb4; }
.author-card--webdesign:hover .author-card-glow { opacity: 1; }

.author-role-tag--webdesign {
  background: rgba(255,110,180,0.12);
  border: 1px solid rgba(255,110,180,0.35);
  color: #ff6eb4;
}
.author-card--webdesign .author-headline { color: #ff6eb4; }
.author-card--webdesign .aqi-item:hover  { background: rgba(255,110,180,0.06); }
.author-card--webdesign .author-tag:hover {
  background: rgba(255,110,180,0.09);
  border-color: #ff6eb4;
  color: #ff6eb4;
}
