/* ============================================================
   Public Artist Profile — artist-profile.css
   ============================================================ */

:root {
    --ap-black:     #0e0c0a;
    --ap-bg:        #f5f0e8;
    --ap-card:      #ffffff;
    --ap-highlight: #ede7da;
    --ap-muted:     #666;
    --ap-green:     #00d084;
}

/* ── Reset / base ─────────────────────────────────────────── */
.artinfo-artist-profile-page {
    background: var(--ap-bg);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--ap-black);
    margin: 0;
    padding: 0;
}

/* ── Container ────────────────────────────────────────────── */
.ap-container {
    max-width: 1280px;
    margin: 50px auto 80px;
    padding: 0 24px;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.ap-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: none;
    padding-right: 8px;
}
.ap-sidebar::-webkit-scrollbar { display: none; }

/* Avatar */
.ap-avatar-wrap { margin-bottom: 20px; }

.ap-avatar {
    width: 130px;
    height: 130px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--ap-card);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    display: block;
}

.ap-avatar-initials {
    background: var(--ap-black);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -1px;
}

/* Name + field */
.ap-name {
    font-weight: 800;
    font-size: 1.55rem;
    margin: 0 0 5px;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.ap-field {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ap-muted);
    margin-bottom: 12px;
}

/* Location */
.ap-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--ap-muted);
    margin-bottom: 22px;
}
.ap-location i { font-size: .75rem; }

/* Section titles */
.ap-section-title {
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #999;
    border-bottom: 1px solid var(--ap-highlight);
    padding-bottom: 5px;
    margin: 24px 0 10px;
}

/* Sidebar text */
.ap-sidebar-text {
    font-size: .84rem;
    line-height: 1.65;
    color: #444;
    margin: 0;
}

/* CV */
.ap-cv-text {
    font-family: inherit;
    font-size: .82rem;
    line-height: 1.65;
    color: #444;
    white-space: pre-wrap;
    word-break: break-word;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

/* Social links */
.ap-social {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.ap-social-link {
    color: var(--ap-black);
    font-size: 1.2rem;
    transition: opacity .2s, transform .2s;
    text-decoration: none;
}
.ap-social-link:hover {
    opacity: .55;
    transform: translateY(-2px);
    color: var(--ap-black);
}

/* ── Gallery grid ─────────────────────────────────────────── */
.ap-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Artwork card */
.ap-artwork-card {
    background: var(--ap-card);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    border: 1px solid rgba(0,0,0,.04);
}
.ap-artwork-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.09);
}

.ap-artwork-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.ap-artwork-brief {
    padding: 14px 16px 16px;
}
.ap-artwork-title {
    font-weight: 700;
    font-size: .9rem;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ap-artwork-desc {
    font-size: .75rem;
    color: var(--ap-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty state */
.ap-empty-portfolio {
    text-align: center;
    padding: 80px 20px;
    background: var(--ap-card);
    border-radius: 20px;
    border: 1px dashed var(--ap-highlight);
}

/* ── Modal ────────────────────────────────────────────────── */
.ap-modal-content {
    border-radius: 22px;
    border: none;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.2);
}

.ap-modal-img-col {
    background: #f3ede3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

.ap-modal-img {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.ap-modal-details {
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.ap-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Artist identity row */
.ap-modal-artist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    margin-top: 8px;
}

.ap-modal-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.ap-modal-avatar-initials {
    background: var(--ap-black);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap-modal-artist-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--ap-black);
    line-height: 1.2;
}

.ap-modal-artist-field {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ap-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 2px;
}

.ap-modal-title {
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 0 20px;
    letter-spacing: -.4px;
    line-height: 1.2;
}

.ap-modal-label {
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #bbb;
    margin-bottom: 6px;
}

.ap-modal-desc-wrap { margin-bottom: 20px; }

.ap-modal-desc {
    font-size: .88rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.ap-modal-contact { margin-top: auto; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .ap-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .ap-avatar { width: 100px; height: 100px; }
    .ap-name { font-size: 1.35rem; }

    .ap-container { margin-top: 30px; }
}

@media (max-width: 575px) {
    .ap-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
}
