/* ═══════════════════════════════════════
   Page header
═══════════════════════════════════════ */
.artists-header {
    padding: calc(var(--nav-height) + 48px) 0 40px;
    border-bottom: 1px solid var(--border);
}

.artists-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.05;
    color: var(--text);
}

.artists-count {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: .05em;
    margin-top: 6px;
}

/* ═══════════════════════════════════════
   Search bar
═══════════════════════════════════════ */
.artists-search-wrap {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--nav-height);
    background: rgba(12,12,12,.97);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.artists-search-form {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.artists-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    padding: 0 16px;
    height: 40px;
    flex: 0 0 340px;
    transition: border-color .2s;
}

.artists-search-inner:focus-within {
    border-color: var(--text-muted);
}

.artists-search-inner i {
    color: var(--text-subtle);
    font-size: 13px;
    flex-shrink: 0;
}

.artists-search-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 300;
    width: 100%;
}

.artists-search-input::placeholder {
    color: var(--text-subtle);
}

.artists-search-clear {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-subtle);
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
    transition: color .2s;
}

.artists-search-clear:hover {
    color: var(--text-muted);
}

.artists-search-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(201,160,96,.4);
    background: var(--gold-dim);
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .05em;
}

.artists-search-tag-remove {
    color: var(--gold);
    font-size: 12px;
    opacity: .7;
    transition: opacity .2s;
    text-decoration: none;
}

.artists-search-tag-remove:hover {
    opacity: 1;
    color: var(--gold);
}

/* ═══════════════════════════════════════
   Artist blocks
═══════════════════════════════════════ */
.artists-body {
    padding: 72px 0 100px;
}

.artist-block {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 64px;
    align-items: start;
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}

.artist-block:first-child {
    padding-top: 0;
}

.artist-block:last-child {
    border-bottom: none;
}

.artist-block--reverse {
    grid-template-columns: 1fr 420px;
}

.artist-block--reverse .artist-photo-col {
    order: 2;
}

.artist-block--reverse .artist-content-col {
    order: 1;
}

/* ═══════════════════════════════════════
   Photo column
═══════════════════════════════════════ */
.artist-photo-wrap {
    position: sticky;
    top: calc(var(--nav-height) + 100px);
}

.artist-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    filter: grayscale(10%);
    transition: filter .4s;
}

.artist-photo:hover {
    filter: grayscale(0%);
}

.artist-photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-photo-placeholder i {
    font-size: 64px;
    color: var(--text-subtle);
}

/* ═══════════════════════════════════════
   Content column
═══════════════════════════════════════ */
.artist-content-col {
    padding-top: 8px;
}

.artist-meta {
    margin-bottom: 16px;
}

.artist-works-count {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
}

.artist-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text);
    margin: 0 0 24px;
}

.artist-bio {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 560px;
}

/* ═══════════════════════════════════════
   Best works thumbnails
═══════════════════════════════════════ */
.artist-best-works {
    margin-bottom: 40px;
}

.artist-best-works-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 16px;
}

.artist-works-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.artist-work-thumb {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--surface);
    text-decoration: none;
}

.artist-work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.artist-work-thumb:hover img {
    transform: scale(1.06);
}

.artist-work-thumb--empty {
    width: 100%;
    height: 100%;
    background: var(--surface-2);
}

.artist-work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    align-items: flex-end;
    padding: 10px;
}

.artist-work-thumb:hover .artist-work-overlay {
    opacity: 1;
}

.artist-work-overlay span {
    font-size: 11px;
    font-weight: 300;
    color: var(--text);
    letter-spacing: .03em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════
   CTA button
═══════════════════════════════════════ */
.artist-cta .btn {
    display: inline-flex;
    align-items: center;
}

/* ═══════════════════════════════════════
   Empty state
═══════════════════════════════════════ */
.artists-empty {
    text-align: center;
    padding: 80px 0;
}

.artists-empty-icon {
    font-size: 48px;
    color: var(--text-subtle);
    margin-bottom: 24px;
}

.artists-empty-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 12px;
}

.artists-empty-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════
   Pagination
═══════════════════════════════════════ */
.artists-pagination {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 64px;
}

/* ═══════════════════════════════════════
   Responsive
═══════════════════════════════════════ */
@media (max-width: 1199px) {
    .artist-block,
    .artist-block--reverse {
        grid-template-columns: 340px 1fr;
        gap: 48px;
    }
}

@media (max-width: 991px) {
    .artist-block,
    .artist-block--reverse {
        grid-template-columns: 280px 1fr;
        gap: 36px;
    }

    .artist-works-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .artists-search-inner {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .artist-block,
    .artist-block--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 0;
    }

    .artist-block--reverse .artist-photo-col {
        order: 0;
    }

    .artist-block--reverse .artist-content-col {
        order: 0;
    }

    .artist-photo-wrap {
        position: static;
    }

    .artist-photo,
    .artist-photo-placeholder {
        aspect-ratio: 4 / 3;
    }

    .artist-bio {
        max-width: 100%;
    }

    .artists-search-wrap {
        position: static;
    }

    .artists-header {
        padding-top: calc(var(--nav-height) + 32px);
    }
}

@media (max-width: 575px) {
    .artist-works-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .artist-name {
        font-size: 28px;
    }
}
