/* ============================================================
   ARTISTS.CSS — Singapore Saxophone Symposium
   ============================================================ */

/* ── Page Header ───────────────────────────────────────────── */
.artists-header {
    padding: 5rem 0 0 0;
}

.artists-header .content-wrapper { 
    /* padding: 0 40px;  */
}

.artists-header h1 {
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.artists-header h1 .accent-italic {
    color: #EFE1B6;
}

.artists-header__sub {
    font-size: 20px;
    color: #C7C0A8;
    font-family: var(--font-serif);
    max-width: 600px;
    line-height: 1.7;
    margin: 0;
}

/* ── Artist Grid ───────────────────────────────────────────── */
.artists-grid {
    padding: 0 0 var(--section-pad);
}

.artists-grid .content-wrapper { 
    /* padding: 0 40px;  */
}

.artists-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 29px 0;
}

.artist-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

/* Image wrapper — keeps aspect ratio + overflow for zoom */
.artist-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: var(--dark-card);
}

.artist-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s;
    filter: grayscale(20%);
}

.artist-card:hover .artist-card__img-wrap img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

/* Card info — sits below image */
.artist-card__info {
    padding: 2.5rem 1.375rem 0 1.375rem;
    position: relative;
}

.artist-card__number {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--white);
    opacity: 0.7;
    margin-bottom: 0.3rem;
    position: absolute;
    left: 0;
    top: 0;
}

.artist-card__name {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

.artist-card__country {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

/* ══ Artist Modal ══════════════════════════════════════════ */
.artist-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.artist-modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.artist-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 900px;
    height: 75vh;
    max-height: 680px;
    background: #0A0A0A;
    transform: translateY(16px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.artist-modal-overlay.is-open .artist-modal {
    transform: translateY(0);
}

/* Left: photo */
.artist-modal__img-wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.artist-modal__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%);
}

/* Right: content */
.artist-modal__body {
    background: #0D0D0D;
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;

    /* Elegant slim scrollbar — Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 225, 182, 0.18) transparent;
}

/* Elegant slim scrollbar — WebKit / Chromium */
.artist-modal__body::-webkit-scrollbar {
    width: 6px;
}
.artist-modal__body::-webkit-scrollbar-track {
    background: transparent;
}
.artist-modal__body::-webkit-scrollbar-thumb {
    background-color: rgba(239, 225, 182, 0.18);
    border-radius: 4px;
    transition: background-color 0.25s ease;
}
.artist-modal__body::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold);
}
.artist-modal__body:hover {
    scrollbar-color: var(--gold) transparent;
}

.artist-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 28px;
    height: 28px;
    font-size: 30px !important;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0 !important;

}

.artist-modal__close:hover {
    border-color: var(--off-white);
    color: var(--off-white);
}

.artist-modal__country {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}

.artist-modal__name {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    margin: 0;
}

.artist-modal__role {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

.artist-modal__bio p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.artist-modal__bio p:last-child { margin-bottom: 0; }

/* Thumbnail strip */
.artist-modal__thumbs {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 900px;
    margin-top: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;

    /* Elegant slim scrollbar — Firefox (mirrors .artist-modal__body) */
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 225, 182, 0.18) transparent;
}

/* Elegant slim scrollbar — WebKit / Chromium (mirrors .artist-modal__body) */
.artist-modal__thumbs::-webkit-scrollbar {
    height: 6px;
}
.artist-modal__thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.artist-modal__thumbs::-webkit-scrollbar-thumb {
    background-color: rgba(239, 225, 182, 0.18);
    border-radius: 4px;
    transition: background-color 0.25s ease;
}
.artist-modal__thumbs::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold);
}
.artist-modal__thumbs:hover {
    scrollbar-color: var(--gold) transparent;
}

.artist-modal__thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s;
    border: 1px solid transparent;
}

.artist-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
}

.artist-modal__thumb:hover,
.artist-modal__thumb.is-active {
    opacity: 1;
    border-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — artists page
   ═══════════════════════════════════════════════════════════ */
@media screen and (max-width: 1280px) {
    .artists-header .content-wrapper,
    .artists-grid .content-wrapper { padding: 0 40px; }
}

@media screen and (max-width: 1024px) {
    .artists-gallery { grid-template-columns: repeat(3, 1fr); }
    .artists-header h1 { font-size: 64px; }
    /* Modal — narrower with shorter height */
    .artist-modal { max-width: 760px; height: 80vh; }
}

@media screen and (max-width: 768px) {
    .artists-header { padding: 3rem 0 1.5rem; }
    .artists-header h1 { font-size: 44px; line-height: 1.05; max-width: 100%; }
    .artists-header__sub { font-size: 14px; }
    .artists-header .content-wrapper,
    .artists-grid .content-wrapper { padding: 0 24px; }
    .artists-gallery { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
    .artist-card__name { font-size: 15px; }

    /* Artist modal — stack image above content; fill viewport */
    .artist-modal-overlay { padding: 0; align-items: stretch; }
    .artist-modal {
        grid-template-columns: 1fr;
        grid-template-rows: 45vh 1fr;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        transform: translateY(0);
    }
    .artist-modal__img-wrap { height: 100%; }
    .artist-modal__body { padding: 1.5rem 1.25rem 1.5rem; }
    .artist-modal__name { font-size: 28px; }
    .artist-modal__role { font-size: 11px; }
    .artist-modal__bio p { font-size: 13px; }
    .artist-modal__close { top: 0.75rem; right: 0.75rem; }
    .artist-modal__thumbs { gap: 6px; }
    .artist-modal__thumb { width: 48px; height: 48px; }
}

@media screen and (max-width: 480px) {
    .artists-header h1 { font-size: 34px; }
    .artists-header .content-wrapper,
    .artists-grid .content-wrapper { padding: 0 16px; }
    .artists-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px 8px; }
    .artist-card__name { font-size: 14px; }
    .artist-card__country { font-size: 10px; }

    .artist-modal { grid-template-rows: 56vh 1fr; }
    .artist-modal__name { font-size: 22px; }
    .artist-modal__body { padding: 1.25rem 1rem 1.25rem; }
    .artist-modal__thumb { width: 40px; height: 40px; }
}


/* ============================================================
   TAB BAR — category filter for the artist gallery
   ============================================================ */
.artists-tabs {
    padding: 0 0 2rem;
}

.artists-tabs .content-wrapper { 
    /* padding: 0 40px;  */
}

.artists-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    border-bottom: 1px solid var(--mid-gray);
    padding-bottom: 0;
}

.artists-tab {
    background: none;
    border: 0;
    padding: 0.75rem 0;
    margin-bottom: -1px;            /* sit on top of the list's bottom border */
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.artists-tab:hover,
.artists-tab:focus-visible {
    color: #C7C0A8;
    outline: none;
}

.artists-tab.is-active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ── Filtered card hidden state ─────────────────────────────── */
.artist-card.is-filtered-out {
    display: none;
}

/* ── Empty-state placeholder (active tab has no artists) ────── */
.artists-empty {
    padding: 3rem 0 var(--section-pad);
}

.artists-empty .content-wrapper { padding: 0 40px; }

.artists-empty__msg {
    font-family: var(--font-serif);
    font-size: 18px;
    color: #888888;
    font-style: italic;
    margin: 0;
}

/* ── Mobile dropdown (hidden on desktop) ─────────────────────── */
.artists-tabs__select-wrap {
    display: none;                      /* hidden on desktop; shown at ≤768px */
    position: relative;
}

/* Custom caret rendered by the wrap so we can style a native <select>.
   Native dropdown arrows vary across browsers and don't honour --gold;
   this gives us a consistent gold chevron in the same vertical position. */
.artists-tabs__select-wrap::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;               /* clicks pass through to the select */
}

.artists-tabs__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    border: 1px solid var(--mid-gray);
    border-radius: 0;
    padding: 0.85rem 2.5rem 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    cursor: pointer;
    line-height: 1.2;
}

.artists-tabs__select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Option styling — native pickers on iOS/Android ignore this and use OS
   chrome, but desktop browsers (when the user resizes down) honour it. */
.artists-tabs__select option {
    background-color: #141414;
    color: #C7C0A8;
}

/* ── Responsive: swap tab strip for dropdown on narrow screens ── */
@media screen and (max-width: 768px) {
    .artists-tabs .content-wrapper { padding: 0 24px; }
    .artists-empty .content-wrapper { padding: 0 24px; }

    .artists-tabs__list        { display: none; }
    .artists-tabs__select-wrap { display: block; }
}

@media screen and (max-width: 480px) {
    .artists-tabs .content-wrapper { padding: 0 16px; }
    .artists-empty .content-wrapper { padding: 0 16px; }
    .artists-tabs__select { font-size: 11px; padding: 0.75rem 2.25rem 0.75rem 0.875rem; }
}
