/* ═══════════════════════════════════════════════════════════
   Artist Booking — Modern Entertainment Booking Design
   ═══════════════════════════════════════════════════════════ */

/* — Design Tokens — */
:root {
  --abv4-bg: #0c0c0f;
  --abv4-surface: #161619;
  --abv4-surface-2: #1e1e23;
  --abv4-surface-3: #26262d;
  --abv4-border: rgba(255,255,255,.07);
  --abv4-border-hover: rgba(255,255,255,.15);
  --abv4-text: #f0f0f2;
  --abv4-text-muted: #8e8e96;
  --abv4-accent: #7c5cfc;
  --abv4-accent-hover: #9478ff;
  --abv4-accent-glow: rgba(124,92,252,.25);
  --abv4-gradient: linear-gradient(135deg, #7c5cfc 0%, #c471ed 50%, #f64f59 100%);
  --abv4-radius: 16px;
  --abv4-radius-sm: 10px;
  --abv4-radius-xs: 6px;
  --abv4-shadow: 0 4px 24px rgba(0,0,0,.35);
  --abv4-shadow-lg: 0 12px 48px rgba(0,0,0,.45);
  --abv4-transition: .25s cubic-bezier(.4,0,.2,1);
  --abv4-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* — Reset & Base — */
.abv4-wrap {
  max-width: 100%;
  margin: 0;
  padding: 0 0 80px;
  font-family: var(--abv4-font);
  color: var(--abv4-text);
  background: var(--abv4-bg);
  -webkit-font-smoothing: antialiased;
}
.abv4-wrap > section,
.abv4-wrap > .abv4-hero {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.abv4-wrap *, .abv4-wrap *::before, .abv4-wrap *::after { box-sizing: border-box; }
.abv4-wrap h1, .abv4-wrap h2, .abv4-wrap h3 { font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: -.02em; color: #fff !important; }
.abv4-wrap h2 { font-size: 1.5rem !important; margin: 0 0 20px; }
.abv4-wrap section { margin-top: 48px; }
.abv4-wrap a { color: inherit !important; text-decoration: none !important; }
.abv4-wrap p { color: var(--abv4-text-muted) !important; }

/* — Theme override: force dark context, beat theme specificity — */
main.abv4-wrap,
main.abv4-wrap div,
main.abv4-wrap span,
main.abv4-wrap p,
main.abv4-wrap li,
main.abv4-wrap small,
main.abv4-wrap a {
  color: var(--abv4-text) !important;
}
main.abv4-wrap h1,
main.abv4-wrap h2,
main.abv4-wrap h3 {
  color: #fff !important;
}
main.abv4-wrap .abv4-rich,
main.abv4-wrap .abv4-rich p,
main.abv4-wrap .abv4-content p,
main.abv4-wrap .abv4-archive-sub {
  color: var(--abv4-text-muted) !important;
}
main.abv4-wrap .abv4-chip {
  color: var(--abv4-text-muted) !important;
}
main.abv4-wrap .abv4-chip:hover,
main.abv4-wrap .abv4-chip-active {
  color: #fff !important;
}
main.abv4-wrap .abv4-card-genres {
  color: rgba(255,255,255,.55) !important;
}
main.abv4-wrap .abv4-form-grid label {
  color: rgba(255,255,255,.85) !important;
}
main.abv4-wrap .abv4-msg:empty {
  color: transparent !important;
}
main.abv4-wrap select option {
  background: var(--abv4-surface-2);
  color: var(--abv4-text);
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE PAGE
   ═══════════════════════════════════════════════════════════ */

/* — Hero Header — */
.abv4-archive-head {
  text-align: center;
  padding: 64px 0 40px;
}
.abv4-archive-head h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  background: var(--abv4-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px;
}
.abv4-archive-head .abv4-archive-sub {
  color: var(--abv4-text-muted);
  font-size: 1.1rem;
  margin: 0 0 28px;
}

/* — Genre Chips / Filter — */
.abv4-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 16px;
}
.abv4-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  background: var(--abv4-surface-2) !important;
  color: var(--abv4-text) !important;
  border: 1px solid var(--abv4-border);
  cursor: pointer;
  transition: all var(--abv4-transition);
  text-decoration: none;
}
.abv4-chip:hover {
  background: var(--abv4-surface-3);
  color: var(--abv4-text);
  border-color: var(--abv4-border-hover);
}
.abv4-chip-active, .abv4-chip-active:hover {
  background: var(--abv4-accent);
  color: #fff;
  border-color: var(--abv4-accent);
  box-shadow: 0 0 20px var(--abv4-accent-glow);
}

/* — Artist Cards Grid — */
.abv4-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.abv4-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--abv4-surface);
  border: 1px solid var(--abv4-border);
  border-radius: var(--abv4-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--abv4-transition);
}
.abv4-card:hover {
  transform: translateY(-6px);
  border-color: var(--abv4-border-hover);
  box-shadow: var(--abv4-shadow-lg), 0 0 40px var(--abv4-accent-glow);
}
.abv4-card-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--abv4-surface-2);
}
.abv4-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.abv4-card:hover .abv4-card-img img {
  transform: scale(1.06);
}
.abv4-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,15,.85) 0%, transparent 50%);
  pointer-events: none;
}
.abv4-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 1;
}
.abv4-card-body h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: #fff !important;
}
.abv4-card-genres {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

/* — Pagination — */
.abv4-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.abv4-pagination a, .abv4-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--abv4-radius-sm);
  font-size: .9rem;
  font-weight: 500;
  background: var(--abv4-surface);
  border: 1px solid var(--abv4-border);
  color: var(--abv4-text-muted);
  transition: all var(--abv4-transition);
}
.abv4-pagination a:hover {
  background: var(--abv4-surface-2);
  border-color: var(--abv4-border-hover);
  color: var(--abv4-text);
}
.abv4-pagination .current {
  background: var(--abv4-accent);
  border-color: var(--abv4-accent);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   SINGLE ARTIST PAGE
   ═══════════════════════════════════════════════════════════ */

/* — Hero Banner — */
.abv4-hero {
  height: 340px;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: var(--abv4-surface-2);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.abv4-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--abv4-bg) 0%, transparent 60%);
}

/* — Profile Header — */
.abv4-header {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  margin-top: -64px;
  position: relative;
  z-index: 2;
  padding: 0 8px;
}
.abv4-profile-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--abv4-bg);
  box-shadow: var(--abv4-shadow);
  flex-shrink: 0;
}
.abv4-title h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem) !important;
  margin: 0 0 4px;
  color: #fff !important;
}
.abv4-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.abv4-genres .abv4-chip {
  font-size: .78rem;
  padding: 5px 14px;
}

/* — Social Icons — */
.abv4-socials {
  display: flex;
  gap: 10px;
  margin: 8px 0 0;
}
.abv4-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--abv4-surface-2);
  border: 1px solid var(--abv4-border);
  color: var(--abv4-text-muted);
  transition: all var(--abv4-transition);
}
.abv4-social:hover {
  background: var(--abv4-accent);
  border-color: var(--abv4-accent);
  color: #fff;
  transform: translateY(-2px);
}
.abv4-social svg {
  display: block;
  width: 16px;
  height: 16px;
}

/* — Description — */
.abv4-content { margin-top: 48px; }
.abv4-content h2,
.abv4-gallery h2,
.abv4-youtube h2,
.abv4-form h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.abv4-content h2::after,
.abv4-gallery h2::after,
.abv4-youtube h2::after,
.abv4-form h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--abv4-gradient);
}
.abv4-rich {
  color: var(--abv4-text-muted) !important;
  line-height: 1.7;
  font-size: .95rem;
  max-width: 760px;
}
.abv4-rich img {
  max-width: 100%;
  height: auto;
  border-radius: var(--abv4-radius-sm);
}
.abv4-rich a {
  color: var(--abv4-accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* — Gallery — */
.abv4-gallery .abv4-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.abv4-g-item {
  position: relative;
  border-radius: var(--abv4-radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
}
.abv4-g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1), filter .4s;
}
.abv4-g-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}
.abv4-g-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(124,92,252,0);
  transition: background var(--abv4-transition);
  pointer-events: none;
  border-radius: inherit;
}
.abv4-g-item:hover::after {
  background: rgba(124,92,252,.15);
}

/* — YouTube Videos — */
.abv4-youtube .abv4-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.abv4-yt {
  position: relative;
  padding-top: 56.25%;
  background: var(--abv4-surface-2);
  border-radius: var(--abv4-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--abv4-border);
  transition: border-color var(--abv4-transition), box-shadow var(--abv4-transition);
}
.abv4-yt:hover {
  border-color: var(--abv4-border-hover);
  box-shadow: var(--abv4-shadow);
}
.abv4-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.abv4-yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.7);
  transition: filter var(--abv4-transition), transform .5s;
}
.abv4-yt:hover .abv4-yt-thumb {
  filter: brightness(.5);
  transform: scale(1.04);
}
.abv4-yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--abv4-transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.abv4-yt:hover .abv4-yt-play {
  background: var(--abv4-accent);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px var(--abv4-accent-glow);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════ */
.abv4-form { margin-top: 56px; }
#abv4-inquiry-form {
  background: var(--abv4-surface);
  border: 1px solid var(--abv4-border);
  border-radius: var(--abv4-radius);
  padding: 32px;
}
.abv4-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.abv4-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.85) !important;
}
.abv4-form-grid input,
.abv4-form-grid textarea,
.abv4-form-grid select {
  padding: 12px 16px;
  background: var(--abv4-surface-2) !important;
  border: 1px solid var(--abv4-border) !important;
  border-radius: var(--abv4-radius-sm);
  color: #fff !important;
  font-size: .95rem;
  font-family: var(--abv4-font);
  outline: none;
  transition: border-color var(--abv4-transition), box-shadow var(--abv4-transition);
  -webkit-appearance: none;
}
.abv4-form-grid input::placeholder,
.abv4-form-grid textarea::placeholder {
  color: var(--abv4-text-muted);
  opacity: .5;
}
.abv4-form-grid input:focus,
.abv4-form-grid textarea:focus,
.abv4-form-grid select:focus {
  border-color: var(--abv4-accent);
  box-shadow: 0 0 0 3px var(--abv4-accent-glow);
}
.abv4-form-grid select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238e8e96'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.abv4-form-grid .full { grid-column: 1 / -1; }

/* CTA Button */
.abv4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 32px;
  border: 0;
  border-radius: var(--abv4-radius-sm);
  background: var(--abv4-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--abv4-font);
  cursor: pointer;
  transition: all var(--abv4-transition);
  box-shadow: 0 4px 16px var(--abv4-accent-glow);
  position: relative;
  overflow: hidden;
}
.abv4-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--abv4-transition);
}
.abv4-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--abv4-accent-glow);
}
.abv4-btn:hover::before { opacity: 1; }
.abv4-btn:active { transform: translateY(0); }

/* Form messages */
.abv4-msg {
  margin-top: 12px;
  padding: 0;
  font-size: .9rem;
  min-height: 1.4em;
}
.abv4-msg:not(:empty) {
  padding: 12px 16px;
  border-radius: var(--abv4-radius-xs);
  background: var(--abv4-surface-2);
  border: 1px solid var(--abv4-border);
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════ */
.abv4-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  z-index: 99999;
}
.abv4-lightbox.open { display: flex; }
.abv4-lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--abv4-radius);
  box-shadow: var(--abv4-shadow-lg);
  margin-bottom: 16px;
  object-fit: contain;
}
.abv4-lightbox-cap {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  text-align: center;
}
.abv4-lightbox-close {
  position: absolute;
  right: 20px;
  top: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all var(--abv4-transition);
}
.abv4-lightbox-close:hover {
  background: rgba(255,255,255,.2);
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes abv4-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.abv4-animate {
  opacity: 0;
  transform: translateY(24px);
}
.abv4-animate.abv4-visible {
  animation: abv4-fade-up .5s cubic-bezier(.4,0,.2,1) forwards;
}
/* Stagger children */
.abv4-stagger > .abv4-animate:nth-child(1) { animation-delay: .05s; }
.abv4-stagger > .abv4-animate:nth-child(2) { animation-delay: .1s; }
.abv4-stagger > .abv4-animate:nth-child(3) { animation-delay: .15s; }
.abv4-stagger > .abv4-animate:nth-child(4) { animation-delay: .2s; }
.abv4-stagger > .abv4-animate:nth-child(5) { animation-delay: .25s; }
.abv4-stagger > .abv4-animate:nth-child(6) { animation-delay: .3s; }
.abv4-stagger > .abv4-animate:nth-child(7) { animation-delay: .35s; }
.abv4-stagger > .abv4-animate:nth-child(8) { animation-delay: .4s; }
.abv4-stagger > .abv4-animate:nth-child(9) { animation-delay: .45s; }
.abv4-stagger > .abv4-animate:nth-child(10) { animation-delay: .5s; }
.abv4-stagger > .abv4-animate:nth-child(11) { animation-delay: .55s; }
.abv4-stagger > .abv4-animate:nth-child(12) { animation-delay: .6s; }

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.abv4-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--abv4-text-muted);
}
.abv4-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: .4;
}
.abv4-empty p { font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════════════
   ADMIN TEST AUTOFILL
   ═══════════════════════════════════════════════════════════ */
.abv4-test-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.abv4-test-toast {
  display: none;
  max-width: min(320px, calc(100vw - 48px));
  padding: 10px 16px;
  border-radius: 8px;
  background: #047857;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  font: 600 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.abv4-test-toast.is-visible { display: block; }
.abv4-test-autofill {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #b42318;
  color: #fff;
  box-shadow: 0 4px 18px rgba(180,35,24,.35);
  cursor: pointer;
  font: 700 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  transition: transform var(--abv4-transition), box-shadow var(--abv4-transition), background var(--abv4-transition);
}
.abv4-test-autofill:hover,
.abv4-test-autofill:focus-visible {
  background: #912018;
  box-shadow: 0 6px 24px rgba(145,32,24,.42);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .abv4-hero { height: 200px; }
  .abv4-header { flex-direction: column; align-items: center; text-align: center; margin-top: -48px; gap: 12px; }
  .abv4-profile-img { width: 110px; height: 110px; }
  .abv4-genres { justify-content: center; }
  .abv4-socials { justify-content: center; }
  .abv4-archive-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .abv4-card-body { padding: 14px; }
  .abv4-card-body h3 { font-size: 1rem; }
  #abv4-inquiry-form { padding: 20px; }
  .abv4-youtube .abv4-grid { grid-template-columns: 1fr; }
  .abv4-test-fab { right: 16px; bottom: 16px; }
}

@media (min-width: 601px) {
  .abv4-form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .abv4-hero { height: 380px; }
  .abv4-header { gap: 28px; }
  .abv4-profile-img { width: 160px; height: 160px; margin-top: -20px; }
  .abv4-gallery .abv4-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
