/**
 * @fileoverview Stylesheet for the Artists public page.
 * @file artist-page.css
 * @project Chicky Galery
 */

.artist-public-page {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 28px 18px;
    box-sizing: border-box;
}

.artists-header {
    text-align: center;
    margin: 2rem auto 2rem;
    background: #ffffff;
    border: 1px solid #ead8e8;
    border-radius: 20px;
    padding: 34px 22px;
    box-shadow: 0 8px 24px rgba(175, 0, 161, 0.12);
}

.artists-header h1 {
    margin: 0 0 10px;
    color: #af00a1;
    font-size: clamp(2rem, 4vw, 3rem);
}

.artists-header p {
    margin: 0;
    color: #666666;
    line-height: 1.5;
}

.artists-list-section,
.selected-artist-section {
    background: #ffffff;
    border: 1px solid #ead8e8;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(175, 0, 161, 0.12);
}

.artists-list-section h2,
.selected-artist-section h2 {
    margin-top: 0;
    color: #333333;
}

.artists-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.artist-profile-card {
    border: 1px solid #ead8e8;
    border-radius: 18px;
    padding: 18px;
    background: #fffafd;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(175, 0, 161, 0.08);
}

.artist-profile-card img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #af00a1;
    background: #f5f5f5;
    flex: 0 0 auto;
}

.artist-profile-card-info {
    min-width: 0;
    flex: 1;
}

.artist-profile-card-info h3 {
    margin: 0 0 6px;
    color: #333333;
}

.artist-profile-card-info p {
    margin: 0 0 12px;
    color: #666666;
    font-size: 0.92rem;
}

.artist-select-button {
    border: none;
    border-radius: 999px;
    padding: 9px 15px;
    cursor: pointer;
    background: #af00a1;
    color: #ffffff;
    font-weight: 800;
    font-family: inherit;
}

.artist-select-button:hover {
    background: #8e0082;
}

.selected-artist-profile {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #ead8e8;
}

.selected-artist-profile img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #af00a1;
    background: #f5f5f5;
    flex: 0 0 auto;
}

.selected-artist-info h2 {
    margin: 0 0 8px;
    color: #333333;
    font-size: 1.8rem;
}

.selected-artist-info p {
    margin: 0 0 12px;
    color: #666666;
    line-height: 1.5;
}

.artist-count-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff0fb;
    color: #af00a1;
    border: 1px solid #ead8e8;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Más específico que global.css */
.artist-public-page .galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
}

.artist-public-page .obra-card {
    background: #ffffff;
    border: 1px solid #ead8e8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(175, 0, 161, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.artist-public-page .obra-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(175, 0, 161, 0.18);
}

.artist-public-page .obra-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.artist-public-page .obra-info {
    padding: 14px;
}

.artist-public-page .obra-info h3 {
    margin: 0 0 6px;
    color: #333333;
    font-size: 1.05rem;
}

.artist-public-page .obra-info p {
    margin: 0;
    color: #666666;
    line-height: 1.4;
}

.artist-public-page .obra-description {
    margin-top: 8px !important;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #ead8e8;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .artist-public-page {
        padding: 18px 12px;
    }

    .artists-header {
        padding: 26px 18px;
        margin: 1rem auto 1.5rem;
    }

    .artists-list-section,
    .selected-artist-section {
        padding: 18px;
    }

    .artist-profile-card {
        flex-direction: column;
        text-align: center;
    }

    .selected-artist-profile {
        flex-direction: column;
        text-align: center;
    }

    .selected-artist-profile img {
        width: 110px;
        height: 110px;
    }

    .artist-public-page .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .artist-public-page .obra-card img {
        height: 160px;
    }
}