/* ==========================================================
   ACMOBOOK Public Talent Profile (Batch 3)
   Presentation layer on top of legacy talent-profile.css
   ========================================================== */

.acm-profile-page-body .site-main,
body.acm-profile-page-body {
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(108, 99, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 40%, #F8FAFC 100%);
}

.acm-profile__container {
  max-width: var(--acm-max, 1120px);
}

/* ---- Hero ---- */
.acm-profile-hero {
  position: relative;
  margin-bottom: var(--acm-space-4, 24px);
}

.acm-profile-hero__cover {
  height: clamp(140px, 22vw, 220px);
  overflow: hidden;
}

.acm-profile-hero__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acm-profile-hero__inner {
  max-width: var(--acm-max, 1120px);
  margin: -72px auto 0;
  padding: 0 16px 8px;
  position: relative;
  z-index: 2;
}

.acm-profile-hero__layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: end;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--acm-border, #E2E8F0);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--acm-shadow, 0 8px 24px rgba(15, 23, 42, 0.06));
}

.acm-profile-hero__avatar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
}

.acm-profile-hero__avatar {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--acm-shadow);
}

.acm-profile-hero__verified-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--acm-success, #16A34A);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.acm-profile-hero__name {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--acm-text, #0F172A);
  letter-spacing: -0.02em;
}

.acm-profile-hero__legal-name {
  margin: 0 0 8px;
  color: var(--acm-text-muted, #64748B);
  font-size: 0.95rem;
}

.acm-profile-hero__meta {
  margin: 0 0 10px;
  color: var(--acm-text-muted, #64748B);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.acm-profile-hero__dot {
  opacity: 0.5;
}

.acm-profile-hero__intro {
  margin: 0 0 12px;
  max-width: 42rem;
  color: var(--acm-text, #0F172A);
  line-height: 1.55;
  font-size: 1rem;
}

.acm-profile-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.acm-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--acm-border, #E2E8F0);
  background: var(--acm-surface-soft, #F8FAFC);
  color: var(--acm-text, #0F172A);
}

.acm-chip--verified {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}

.acm-chip--featured {
  background: var(--acm-primary-soft, #EEF0FF);
  border-color: #C7C2FF;
  color: var(--acm-primary, #6C63FF);
}

.acm-profile-hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  margin: 0 0 16px;
  color: var(--acm-text-muted, #64748B);
  font-size: 0.875rem;
}

.acm-profile-hero__trust li {
  position: relative;
}

.acm-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.acm-btn--icon {
  width: var(--acm-touch, 44px);
  min-height: var(--acm-touch, 44px);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.acm-btn--icon.is-active {
  color: #DC2626;
}

/* ---- Section nav ---- */
.acm-profile-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 16px;
  margin-bottom: 8px;
  position: sticky;
  top: calc(var(--acm-header-h, 64px) - 1px);
  z-index: 30;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  scrollbar-width: none;
}

.acm-profile-nav::-webkit-scrollbar {
  display: none;
}

.acm-profile-nav a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--acm-text-muted, #64748B);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.acm-profile-nav a.active,
.acm-profile-nav a:hover,
.acm-profile-nav a:focus-visible {
  color: var(--acm-primary, #6C63FF);
  background: #fff;
  border-color: var(--acm-border, #E2E8F0);
  outline: none;
}

/* ---- Sections ---- */
.acm-profile-section {
  margin-bottom: 24px;
}

.acm-profile-bio__text {
  max-width: 40rem;
  line-height: 1.7;
  color: var(--acm-text, #0F172A);
  font-size: 1rem;
}

.acm-profile-quote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--acm-primary, #6C63FF);
  background: var(--acm-primary-soft, #EEF0FF);
  border-radius: 0 10px 10px 0;
}

.acm-profile-quote p {
  margin: 0;
  font-style: italic;
  color: var(--acm-text, #0F172A);
}

.acm-profile-attrs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0 0;
}

.acm-profile-attrs__item dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--acm-text-muted, #64748B);
  margin-bottom: 4px;
}

.acm-profile-attrs__item dd {
  margin: 0;
  font-weight: 600;
  color: var(--acm-text, #0F172A);
}

.acm-profile-attrs__item--wide {
  grid-column: 1 / -1;
}

.acm-profile-attrs__item--wide .acm-chip {
  margin: 2px 4px 2px 0;
}

/* ---- Portfolio ---- */
.acm-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.acm-portfolio-item {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.acm-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acm-video-card {
  appearance: none;
  border: 1px solid var(--acm-border, #E2E8F0);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.acm-video-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #E2E8F0;
}

.acm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.acm-lightbox__close,
.acm-lightbox__nav {
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.acm-lightbox__close {
  top: 16px;
  right: 16px;
}

.acm-lightbox__prev { left: 16px; }
.acm-lightbox__next { right: 16px; }

.acm-lightbox img {
  max-width: min(920px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}

.acm-lightbox__caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #E2E8F0;
  font-size: 0.9rem;
}

.acm-lightbox__video {
  width: min(880px, 94vw);
}

.acm-lightbox__ratio {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.acm-lightbox__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Reviews ---- */
.acm-reviews-summary-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.acm-reviews-avg {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}

.acm-reviews-stars {
  color: #D97706;
  letter-spacing: 2px;
  margin: 8px 0;
}

.acm-reviews-based {
  font-size: 0.8rem;
  color: var(--acm-text-muted, #64748B);
}

.acm-reviews-bar-row {
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.acm-reviews-bar-track {
  height: 6px;
  background: var(--acm-border, #E2E8F0);
  border-radius: 999px;
  overflow: hidden;
}

.acm-reviews-bar-fill {
  height: 100%;
  background: var(--acm-primary, #6C63FF);
}

.acm-review-card {
  border: 1px solid var(--acm-border, #E2E8F0);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

.acm-review-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
}

.acm-review-card__rating {
  color: #D97706;
}

.acm-review-card__date {
  color: var(--acm-text-muted, #64748B);
  font-size: 0.85rem;
}

.acm-review-card__body {
  margin: 0;
  line-height: 1.6;
  color: var(--acm-text, #0F172A);
}

/* ---- Trust ---- */
.acm-trust-strip {
  border: 1px solid var(--acm-border, #E2E8F0);
  border-radius: 14px;
  background: #fff;
  padding: 8px 4px;
  margin-bottom: 16px;
}

.acm-trust-strip__item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--acm-border, #E2E8F0);
}

.acm-trust-strip__item:last-child {
  border-bottom: 0;
}

.acm-trust-strip__title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--acm-text, #0F172A);
}

.acm-trust-strip__desc {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--acm-text-muted, #64748B);
  line-height: 1.45;
}

/* ---- Final CTA ---- */
.acm-profile-final-cta {
  margin: 32px 0 48px;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--acm-border, #E2E8F0);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--acm-primary-soft, #EEF0FF) 100%);
}

.acm-profile-final-cta__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.acm-profile-final-cta__text {
  margin: 0 0 16px;
  color: var(--acm-text-muted, #64748B);
}

.acm-profile-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Booking sidebar polish ---- */
.acm-booking-aside .acm-btn--block {
  width: 100%;
  min-height: var(--acm-touch, 44px);
  justify-content: center;
}

/* ---- Mobile sticky CTA ---- */
.acm-profile-sticky-cta {
  display: none;
}

@media (max-width: 991.98px) {
  .acm-profile-hero__layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    margin-top: 0;
  }

  .acm-profile-hero__inner {
    margin-top: -56px;
  }

  .acm-profile-hero__avatar-wrap,
  .acm-profile-hero__avatar {
    width: 128px;
    height: 128px;
  }

  .acm-profile-hero__intro,
  .acm-profile-hero__trust,
  .acm-profile-hero__actions {
    justify-content: center;
  }

  .acm-profile-hero__actions {
    width: 100%;
  }

  .acm-profile-hero__actions .acm-btn--primary,
  .acm-profile-hero__actions .acm-btn--secondary {
    flex: 1 1 calc(50% - 10px);
    min-height: var(--acm-touch, 44px);
    justify-content: center;
  }

  .acm-reviews-summary-grid {
    grid-template-columns: 1fr;
  }

  .acm-profile-sticky-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--acm-border, #E2E8F0);
    box-shadow: var(--acm-shadow-sticky, 0 -4px 20px rgba(15, 23, 42, 0.08));
  }

  .acm-profile-sticky-cta__btn {
    flex: 1 1 0;
    min-height: var(--acm-touch, 44px);
    justify-content: center;
  }

  /* Keep sticky CTA clear of bottom nav + content */
  body.acm-profile-page-body .site-main,
  body.acm-shell.acm-profile-page-body {
    padding-bottom: calc(var(--acm-bottom-nav-h, 64px) + 72px + env(safe-area-inset-bottom, 0px));
  }

  .acm-profile-sticky-cta {
    bottom: calc(var(--acm-bottom-nav-h, 64px));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .acm-profile-hero__layout {
    grid-template-columns: 140px 1fr;
    text-align: left;
    justify-items: stretch;
  }

  .acm-portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (min-width: 1024px) {
  .acm-profile-hero__cover {
    height: 200px;
  }

  .ac-profile-sidebar-col .ac-sidebar-sticky {
    position: sticky;
    top: calc(var(--acm-header-h, 64px) + 16px);
  }
}

/* Hide legacy mobile price bar if present */
.ac-mobile-sticky-cta:not(.acm-profile-sticky-cta) {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .acm-profile-hero *,
  .acm-portfolio-item img {
    transition: none !important;
  }
}
