/* ============================================================
   AUTHORS & PUBLISHERS PAGE — authors-publishers.css
   BooksByAma Design System
   Depends on: style.css, header.css, footer.css
============================================================ */

/* ─── 1. HERO ───────────────────────────────────────────── */
.ap-hero {
  position: relative;
  background: var(--bg-page);
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
}

.ap-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ap-hero__blob {
  position: absolute;
  border-radius: 50%;
  opacity: .1;
}
.ap-hero__blob--1 { width: 520px; height: 520px; background: #FFC93B; top: -160px; right: -100px; }
.ap-hero__blob--2 { width: 360px; height: 360px; background: #51BB79; bottom: -120px; left: -80px; }
.ap-hero__blob--3 { width: 200px; height: 200px; background: #65A1D7; top: 40%; left: 42%; }

.ap-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.ap-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ap-hero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ap-hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.18;
  margin: 0;
}
.ap-hero__headline span { color: var(--purple); }

.ap-hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

/* Stats row */
.ap-hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ap-stat { display: flex; flex-direction: column; gap: 2px; }
.ap-stat__val { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--purple); }
.ap-stat__lbl { font-size: .75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.ap-stat__sep { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

.ap-hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.ap-hero__btn {
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 13px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
}
.ap-hero__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,93,169,.2); }

.ap-outline-btn {
  color: var(--text-primary);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.ap-outline-btn:hover { color: var(--purple); }

/* Hero illustration */
.ap-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ap-hero__glow {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,93,169,.08) 0%, transparent 70%);
  pointer-events: none;
}
.ap-illus {
  position: relative;
  width: 280px; height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-illus__circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.ap-illus__circle--outer { inset: 0; }
.ap-illus__circle--inner { inset: 40px; border-color: var(--border); background: var(--bg-surface); }

.ap-illus__center {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ap-illus__emoji  { font-size: 2.8rem; line-height: 1; }
.ap-illus__label  { font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.ap-illus__sub    { font-size: .72rem; color: var(--text-muted); margin: 0; }

.ap-illus__orbit {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.ap-illus__orbit--1 { top: -10px; left: 50%; transform: translateX(-50%); animation: float 3s ease-in-out infinite; }
.ap-illus__orbit--2 { right: -10px; top: 50%; transform: translateY(-50%); animation: floatSlow 4s ease-in-out infinite; }
.ap-illus__orbit--3 { bottom: -10px; left: 50%; transform: translateX(-50%); animation: float 3.5s ease-in-out infinite .5s; }
.ap-illus__orbit--4 { left: -10px; top: 50%; transform: translateY(-50%); animation: floatSlow 5s ease-in-out infinite; }

/* ─── 2. WHY PUBLISH ────────────────────────────────────── */
.ap-why { background: var(--bg-surface); }

.ap-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.ap-why-card {
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ap-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(99,93,169,.12);
}

.ap-why-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}
.ap-why-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.ap-why-card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── 3. WHO CAN PARTNER ────────────────────────────────── */
.ap-who { background: var(--bg-page); }

.ap-who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.ap-who-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ap-who-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(99,93,169,.1);
  border-color: var(--purple-tint);
}

.ap-who-card__icon {
  font-size: 2.4rem;
  width: 68px; height: 68px;
  border-radius: 20px;
  background: var(--purple-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.ap-who-card__title {
  font-family: var(--font-head);
  font-size: .97rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.ap-who-card__desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── 4. PUBLISHING PROCESS ─────────────────────────────── */
.ap-process { background: var(--bg-surface); }

.ap-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 52px;
  max-width: 760px;
  margin-inline: auto;
  position: relative;
}

.ap-step {
  display: grid;
  grid-template-columns: 56px 32px 1fr;
  gap: 0 0;
  align-items: stretch;
  position: relative;
}

/* Step number circle */
.ap-step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(99,93,169,.28);
  align-self: flex-start;
  margin-top: 8px;
}
.ap-step__num--last {
  background: linear-gradient(135deg, #C99300, #FFC93B);
  color: #2D2A4A;
}

/* Vertical connector line */
.ap-step__connector {
  width: 2px;
  background: linear-gradient(180deg, var(--purple-tint), var(--purple-soft));
  margin: 56px auto 0;
  min-height: 32px;
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  position: relative;
  left: 23px;
  top: 0;
  z-index: 0;
}

/* Card */
.ap-step__card {
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
  margin-left: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 3;
  transition: box-shadow .22s ease;
}
.ap-step__card:hover { box-shadow: 0 8px 32px rgba(99,93,169,.1); }

.ap-step__icon { font-size: 1.8rem; line-height: 1; }
.ap-step__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.ap-step__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.ap-step__badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  align-self: flex-start;
  margin-top: 4px;
}
.ap-step__badge--blue   { background: var(--blue-soft);  color: #3580B8; }
.ap-step__badge--green  { background: var(--green-soft); color: #2E9958; }
.ap-step__badge--gold   { background: #FFF3C4; color: #C99300; }
.ap-step__badge--purple { background: var(--purple-soft); color: var(--purple-dark); }

/* ─── 5. BENEFITS ───────────────────────────────────────── */
.ap-benefits { background: var(--bg-page); }

.ap-benefits__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.ap-benefits__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ap-benefit-items {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ap-benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ap-benefit-item__check {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--green-soft);
  color: #27AE60;
  font-weight: 700;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ap-benefit-item strong {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}
.ap-benefit-item p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.ap-benefits__cta {
  align-self: flex-start;
  margin-top: 8px;
}

/* Right visual */
.ap-benefits__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.ap-benefits__card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(99,93,169,.1);
}
.ap-benefits__card--main {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ap-benefits__card--main h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.ap-benefits__card--main p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.ap-benefits__card-icon { font-size: 2rem; line-height: 1; }

.ap-benefits__metrics {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.ap-metric { display: flex; flex-direction: column; gap: 2px; }
.ap-metric__val { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--purple); }
.ap-metric__lbl { font-size: .72rem; color: var(--text-muted); }

.ap-benefits__card--float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(99,93,169,.12);
}
.ap-benefits__card--float1 { top: 0; right: -20px; animation: float 3.5s ease-in-out infinite; }
.ap-benefits__card--float2 { bottom: 20px; left: -20px; animation: floatSlow 4.5s ease-in-out infinite; }
.ap-benefits__float-icon { font-size: 1.2rem; }

/* ─── 6. FAQ ────────────────────────────────────────────── */
.ap-faq { background: var(--bg-surface); }

.ap-faq__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}

.ap-faq__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 96px;
}
.ap-faq__header .section-heading { text-align: left; font-size: 1.6rem; }
.ap-faq__header .section-sub { text-align: left; }

.ap-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ap-faq-item {
  border-bottom: 1.5px solid var(--border);
}
.ap-faq-item:first-child { border-top: 1.5px solid var(--border); }

.ap-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color .2s ease;
}
.ap-faq-btn:hover { color: var(--purple); }
.ap-faq-item--open .ap-faq-btn { color: var(--purple); }

.ap-faq-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease;
}
.ap-faq-item--open .ap-faq-icon { background: var(--purple); color: #fff; }

.ap-faq-body {
  padding: 0 0 20px;
}
.ap-faq-body p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ─── 7. CTA ────────────────────────────────────────────── */
.ap-cta { background: var(--bg-page); }

.ap-cta__card {
  background: linear-gradient(135deg, #4E4890 0%, #635DA9 55%, #7B75C2 100%);
  border-radius: 28px;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ap-cta__card::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,201,59,.1);
  top: -200px; right: -120px;
  pointer-events: none;
}
.ap-cta__card::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(81,187,121,.08);
  bottom: -140px; left: -60px;
  pointer-events: none;
}

.ap-cta__deco {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.8rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.ap-cta__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.ap-cta__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.ap-cta__title span { color: #FFC93B; }

.ap-cta__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  line-height: 1.65;
  margin: 0;
}

.ap-cta__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.ap-cta__btn {
  background: #FFC93B;
  color: #2D2A4A;
  font-weight: 700;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .97rem;
  transition: transform .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
}
.ap-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,201,59,.45); }

.ap-cta__outline-btn {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.9);
  font-size: .97rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 12px;
  transition: border-color .2s ease, color .2s ease;
}
.ap-cta__outline-btn:hover { border-color: #FFC93B; color: #FFC93B; }

.ap-cta__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.ap-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}
.ap-trust-item span { color: #51BB79; font-weight: 700; }

/* ─── 8. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .ap-why__grid { grid-template-columns: repeat(2, 1fr); }
  .ap-who__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .ap-hero__inner  { grid-template-columns: 1fr; text-align: center; }
  .ap-hero__text   { align-items: center; }
  .ap-hero__sub    { max-width: 100%; }
  .ap-hero__visual { display: none; }
  .ap-hero__stats  { justify-content: center; }
  .ap-benefits__inner { grid-template-columns: 1fr; }
  .ap-benefits__visual { display: none; }
  .ap-faq__inner   { grid-template-columns: 1fr; }
  .ap-faq__header  { position: static; }
}

@media (max-width: 640px) {
  .ap-hero { padding: 100px 0 64px; }
  .ap-why__grid { grid-template-columns: 1fr; }
  .ap-who__grid { grid-template-columns: 1fr; }
  .ap-timeline   { max-width: 100%; }
  .ap-step       { grid-template-columns: 40px 1fr; }
  .ap-step__num  { width: 40px; height: 40px; font-size: .88rem; }
  .ap-step__connector { left: 19px; }
  .ap-step__card { margin-left: 12px; padding: 20px; }
  .ap-cta__card  { padding: 48px 24px; }
}

/* --- APPLY / REGISTER FORM --- */
.ap-apply { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ap-apply__form { max-width: 760px; margin: 0 auto; }
.ap-apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.ap-apply__field { display: flex; flex-direction: column; }
.ap-apply__field--full { grid-column: 1 / -1; }
.ap-apply__label { font-size: .82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.ap-apply__input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-page); font-family: var(--font-body); font-size: .95rem; color: var(--text-primary); }
.ap-apply__input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(99,93,169,.12); }
.ap-apply__error { font-size: .75rem; color: #D94040; margin-top: 4px; }
.ap-apply select { cursor: pointer; }
.alert { padding: 14px 18px; border-radius: 10px; font-size: .9rem; }
.alert--success { background: #E8F8EF; color: #2E7D32; border: 1px solid #B7E1C5; }

@media (max-width: 640px) {
  .ap-apply__grid { grid-template-columns: 1fr; }
}
