/* ==========================================================
   ACMOBOOK Talent Profile 2.0
   Bright / premium / editorial — presentation layer
   ========================================================== */

:root {
  --acm2-accent: var(--ps-accent, #635bff);
  --acm2-bg: #f8fafc;
  --acm2-surface: #ffffff;
  --acm2-text: #0f172a;
  --acm2-muted: #64748b;
  --acm2-border: rgba(226, 232, 240, 0.95);
  --acm2-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
  --acm2-radius: 20px;
  --acm2-max: 1180px;
}

body.acm-profile-v2 .site-main,
body.acm-profile-page-body.acm-profile-v2 {
  background:
    radial-gradient(900px 420px at 8% -5%, rgba(99, 91, 255, 0.07), transparent 55%),
    radial-gradient(700px 360px at 92% 0%, rgba(56, 189, 248, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
}

.acm-profile-v2 .acm-profile__container {
  max-width: var(--acm2-max);
}

/* ---- Hero 2.0 ---- */
.acm-profile-hero-v2 {
  margin-bottom: 0;
}

.acm-profile-hero-v2__wrap {
  padding: 12px 0 8px;
}

.acm-profile-hero-v2__grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(320px, 0.95fr);
  gap: 0;
  align-items: stretch;
  background: var(--acm2-surface);
  border: 1px solid var(--acm2-border);
  border-radius: calc(var(--acm2-radius) + 4px);
  box-shadow: var(--acm2-shadow);
  overflow: hidden;
}

.acm-profile-hero-v2__visual {
  position: relative;
  min-height: 480px;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 55%, #ecfeff 100%);
}

.acm-profile-hero-v2__visual--portrait {
  min-height: 480px;
  max-height: none;
}

.acm-profile-hero-v2__visual--portrait .acm-profile-hero-v2__img {
  object-position: center top;
}

.acm-profile-hero-v2__img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.acm-profile-hero-v2__visual:hover .acm-profile-hero-v2__img {
  transform: scale(1.02);
}

.acm-profile-hero-v2__monogram-lg {
  display: grid;
  place-items: center;
  min-height: 480px;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--acm2-accent);
  letter-spacing: -0.04em;
}

.acm-profile-hero-v2__avail-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.acm-profile-hero-v2__avatar-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

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

.acm-profile-hero-v2__panel {
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.acm-profile-hero-v2__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acm-profile-hero-v2__name {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--acm2-text);
}

.acm-profile-hero-v2__meta {
  margin: 0;
  color: var(--acm2-muted);
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.acm-profile-hero-v2__rating {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--acm2-text);
  font-size: 0.95rem;
}

.acm-profile-hero-v2__stars {
  color: #f59e0b;
  display: inline-flex;
  gap: 2px;
}

.acm-profile-hero-v2__intro {
  margin: 0;
  color: #334155;
  line-height: 1.6;
  font-size: 1.02rem;
  max-width: 38rem;
}

.acm-profile-hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.acm-profile-hero-v2__actions .acm-btn--primary {
  min-width: 160px;
}

.acm-profile-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.acm-profile-quick-actions__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--acm2-border);
  background: #f8fafc;
  color: var(--acm2-text);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.acm-profile-quick-actions__item:hover {
  background: #fff;
  border-color: rgba(99, 91, 255, 0.25);
}

/* Hide legacy hero chrome */
.acm-profile-v2 .acm-profile-hero__atmosphere,
.acm-profile-v2 .acm-profile-hero__floaters,
.acm-profile-v2 .acm-profile-hero__cover:not(.acm-profile-hero-v2__visual),
.acm-profile-v2 .acm-profile-hero__orb,
.acm-profile-v2 .acm-profile-hero__mesh {
  display: none !important;
}

.acm-profile-v2 .acm-profile-hero-v2 {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.acm-profile-v2 .acm-profile-hero-v2 .container {
  max-width: var(--acm2-max);
  padding-left: 16px;
  padding-right: 16px;
}

/* ---- Overview block ---- */
#ac-profile-overview {
  scroll-margin-top: 88px;
}

.acm-profile-stats {
  margin: 20px 0 8px;
}

.acm-profile-stats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.acm-profile-stats__item {
  background: var(--acm2-surface);
  border: 1px solid var(--acm2-border);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.acm-profile-stats__value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--acm2-accent);
  line-height: 1.1;
}

.acm-profile-stats__label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--acm2-muted);
  font-weight: 600;
}

/* ---- Compact quick bar ---- */
.acm-profile-quickbar {
  margin: 12px 0 20px;
}

.acm-profile-quickbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--acm2-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.acm-profile-quickbar__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--acm2-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.acm-profile-quickbar__item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--acm2-text);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.acm-profile-quickbar__item i {
  font-size: 1.1rem;
  color: var(--acm2-accent);
}

.acm-profile-quickbar__item:hover {
  background: #f1f5f9;
}

/* ---- Sticky section nav ---- */
.acm-profile-v2 .acm-profile-nav {
  position: sticky;
  top: calc(var(--acm-header-offset, 64px) + 4px);
  z-index: 20;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 10px 4px;
  margin: 0 0 20px;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--acm2-border);
}

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

.acm-profile-v2 .acm-profile-nav a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--acm2-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.acm-profile-v2 .acm-profile-nav a.active,
.acm-profile-v2 .acm-profile-nav a:hover {
  color: var(--acm2-accent);
  background: rgba(99, 91, 255, 0.08);
}

/* ---- Showreel ---- */
.acm-profile-showreel {
  margin-bottom: 24px;
}

.acm-profile-showreel__player {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--acm2-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  box-shadow: var(--acm2-shadow);
}

.acm-profile-showreel__player--no-thumb {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 45%, #ecfeff 100%);
}

.acm-profile-showreel__player--no-thumb .acm-profile-showreel__play svg {
  color: var(--acm2-accent);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(99, 91, 255, 0.2);
}

.acm-profile-showreel__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.acm-profile-showreel__player:hover .acm-profile-showreel__thumb {
  transform: scale(1.03);
  opacity: 0.92;
}

.acm-profile-showreel__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}

.acm-profile-showreel__play svg {
  width: 64px;
  height: 64px;
  padding: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.acm-profile-showreel__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---- Book me for ---- */
.acm-profile-bookfor {
  margin-bottom: 24px;
}

.acm-profile-bookfor__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.acm-profile-bookfor__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--acm2-border);
  background: var(--acm2-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.acm-profile-bookfor__card:hover {
  border-color: rgba(99, 91, 255, 0.28);
  box-shadow: 0 12px 32px rgba(99, 91, 255, 0.08);
  transform: translateY(-1px);
}

.acm-profile-bookfor__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(99, 91, 255, 0.08);
  color: var(--acm2-accent);
  font-size: 1.15rem;
}

.acm-profile-bookfor__body strong {
  display: block;
  font-size: 1rem;
  color: var(--acm2-text);
}

.acm-profile-bookfor__body span {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--acm2-muted);
  line-height: 1.45;
}

.acm-profile-bookfor__arrow {
  color: var(--acm2-muted);
}

.acm-profile-bookfor__all {
  margin-top: 12px;
}

/* ---- Section cards refresh ---- */
.acm-profile-v2 .ac-section-card,
.acm-profile-v2 .acm-profile-section {
  background: var(--acm2-surface);
  border: 1px solid var(--acm2-border);
  border-radius: var(--acm2-radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 20px;
}

.acm-profile-v2 .ac-title-lg {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
}

.acm-profile-v2 .acm-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.acm-profile-v2 .acm-portfolio-grid--single {
  grid-template-columns: minmax(0, 420px);
  justify-content: start;
}

.acm-profile-v2 .acm-portfolio-grid--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

.acm-portfolio-view-all {
  margin-top: 14px;
}

.acm-profile-v2 .acm-portfolio-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.acm-profile-v2 .acm-portfolio-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.acm-profile-v2 .acm-portfolio-item:hover .acm-portfolio-item__img {
  transform: scale(1.03);
}

/* ---- Final CTA ---- */
.acm-profile-v2 .acm-profile-final-cta {
  border-radius: calc(var(--acm2-radius) + 4px);
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 45%, #ecfeff 100%);
  border: 1px solid var(--acm2-border);
  box-shadow: var(--acm2-shadow);
}

.acm-profile-v2 .acm-profile-final-cta__actions {
  justify-content: center;
}

.acm-profile-v2 .acm-profile-final-cta .acm-btn--lg {
  min-width: min(100%, 280px);
  padding: 14px 28px;
  font-size: 1rem;
}

/* ---- Content density ---- */
.acm-profile-density-basic .acm-profile-stats,
.acm-profile-density-basic .acm-profile-bookfor,
.acm-profile-density-basic .acm-profile-req-bridge {
  display: none;
}

.acm-profile-density-basic .ac-section-card,
.acm-profile-density-medium .ac-section-card {
  margin-bottom: 16px;
}

.acm-profile-density-basic #ac-profile-overview {
  margin-bottom: 0;
}

/* ---- Share sheet ---- */
.acm-profile-share {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: grid;
  place-items: end center;
  padding: 16px;
}

.acm-profile-share[hidden] {
  display: none;
}

.acm-profile-share__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.acm-profile-share__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 22px 20px 18px;
  border-radius: 20px 20px 16px 16px;
  background: #fff;
  border: 1px solid var(--acm2-border);
  box-shadow: var(--acm2-shadow);
  outline: none;
}

.acm-profile-share__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.acm-profile-share__url {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--acm2-muted);
  word-break: break-all;
}

.acm-profile-share__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.acm-profile-share__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 14px;
  border: 1px solid var(--acm2-border);
  background: #f8fafc;
  color: var(--acm2-text);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.acm-profile-share__btn i {
  font-size: 1.25rem;
  color: var(--acm2-accent);
}

.acm-profile-share__close {
  width: 100%;
  margin-top: 12px;
}

@media (min-width: 992px) {
  .acm-profile-share {
    place-items: center;
  }

  .acm-profile-share__panel {
    border-radius: 20px;
  }
}

/* ---- Mobile sticky booking bar ---- */
.acm-profile-v2 .acm-profile-sticky-cta {
  display: none;
}

@media (max-width: 991px) {
  .acm-profile-hero-v2__wrap {
    padding: 0 0 4px;
  }

  .acm-profile-hero-v2__grid {
    grid-template-columns: 1fr;
    border-radius: 0 0 calc(var(--acm2-radius) + 4px) calc(var(--acm2-radius) + 4px);
    border-left: none;
    border-right: none;
  }

  .acm-profile-hero-v2__visual {
    order: 1;
    min-height: clamp(280px, 56vh, 420px);
  }

  .acm-profile-hero-v2__visual--portrait {
    min-height: clamp(320px, 58vh, 440px);
  }

  .acm-profile-hero-v2__img,
  .acm-profile-hero-v2__monogram-lg {
    min-height: clamp(280px, 56vh, 420px);
  }

  .acm-profile-hero-v2__panel {
    order: 2;
    padding: 20px 18px 22px;
  }

  .acm-profile-hero-v2__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .acm-profile-hero-v2__actions .acm-btn--primary {
    width: 100%;
    min-width: 0;
  }

  .acm-profile-hero-v2__actions .acm-btn--secondary,
  .acm-profile-hero-v2__actions .acm-btn--ghost {
    justify-self: start;
  }

  .acm-profile-hero-v2__actions .acm-btn--icon {
    width: 44px;
    height: 44px;
  }

  .acm-profile-v2 .acm-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .acm-profile-v2 .acm-portfolio-grid--single {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .acm-profile-v2 .acm-profile-sticky-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--acm-mobile-nav-height, 64px) + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--acm2-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
  }

  .acm-profile-sticky-cta__identity strong {
    display: block;
    font-size: 0.92rem;
    color: var(--acm2-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
  }

  .acm-profile-sticky-cta__identity span {
    display: block;
    font-size: 0.75rem;
    color: #15803d;
    font-weight: 600;
  }

  .acm-profile-v2 .site-main {
    padding-bottom: calc(88px + var(--acm-mobile-nav-height, 64px) + env(safe-area-inset-bottom, 0px));
  }

  .acm-profile-v2 .acm-profile-sticky-cta .acm-profile-sticky-cta__btn {
    min-width: 120px;
  }
}

@media (max-width: 430px) {
  .acm-profile-stats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .acm-profile-quickbar__item span {
    font-size: 0.68rem;
  }
}

/* ---- Compact profile footer (mobile) ---- */
@media (max-width: 991px) {
  body.acm-profile-v2 .footer .footer-main .row > .col-lg-5,
  body.acm-profile-v2 .footer .footer-main .row > .col-lg-7 {
    display: none;
  }

  body.acm-profile-v2 .footer .footer-main {
    padding-top: 24px;
    padding-bottom: 8px;
  }

  body.acm-profile-v2 .footer-compact-profile {
    display: block;
  }
}

body.acm-profile-v2 .footer-compact-profile {
  display: none;
}

.footer-compact-profile__brand {
  text-align: center;
  margin-bottom: 16px;
}

.footer-compact-profile__brand h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-compact-profile__brand p {
  margin: 0;
  color: var(--acm2-muted);
  font-size: 0.92rem;
}

.footer-compact-profile__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 18px;
}

.footer-compact-profile details {
  border-top: 1px solid var(--acm2-border);
  padding: 10px 0;
}

.footer-compact-profile summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--acm2-text);
  list-style: none;
}

.footer-compact-profile summary::-webkit-details-marker {
  display: none;
}

.footer-compact-profile__links {
  display: grid;
  gap: 8px;
  padding: 10px 0 4px;
}

.footer-compact-profile__links a {
  color: var(--acm2-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .acm-profile-hero-v2__img,
  .acm-profile-showreel__thumb,
  .acm-profile-bookfor__card {
    transition: none;
  }
}
