/**
 * NovaFolio — Artist Page Tab Navigation
 *
 * Styles for the tab-like navigation in the "Artist Page — Gallery Profile"
 * pattern. Active nav item styling + smooth show/hide transitions.
 *
 * @since 1.10.0
 */

/* ── Active nav item ──────────────────────────────────────────────── */
.nvf-artist-tabs__nav p.is-active a {
  opacity: 1;
  font-weight: 600;
}

.nvf-artist-tabs__nav p a {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.nvf-artist-tabs__nav p:hover a {
  opacity: 1;
}

/* ── Panel transitions ────────────────────────────────────────────── */
.nvf-artist-tabs__panel {
  animation: nvf-tab-fade-in 0.35s ease-out;
}

@keyframes nvf-tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Contact block: align left in artist tabs ─────────────────────── */
.nvf-artist-tabs .nvf-artist-tabs__panel .nvf-contact .nvf-contact__inner {
  margin-left: 0;
  margin-right: auto;
}

/* Keep the Art Fairs lead image left-aligned in the Artist Page pattern. */
.nvf-artist-tabs .nvf-artist-tabs__panel#art-fairs .wp-block-image:not(.alignleft):not(.alignright) img {
  display: block;
  margin-left: 0;
  margin-right: auto;
}

/* Legacy pattern instances can keep inline padding-top:3em on Enquire panel. */
.nvf-artist-tabs .nvf-artist-tabs__panel#enquire,
.nvf-artist-tabs #enquire.nvf-artist-tabs__panel {
  padding-top: 1.2em !important;
}

/* ── Mobile: stack layout ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nvf-artist-tabs__nav {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 14px;
    margin-bottom: 10px;
  }

  .nvf-artist-tabs__nav p {
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0.55em 0 !important;
    line-height: 1.25;
    white-space: nowrap;
  }

  .nvf-artist-tabs__nav p a {
    display: inline-block;
    padding: 0.1em 0;
  }
}
