
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* --- Artist Profile Info --- */
.artist-info {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.artist-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.artist-text{
    flex:1;
    min-width:0;
}

.artist-name {
    font-size: 2.5rem;
    font-weight: 700;
}

.artist-location {
    font-size: 1rem;
    color: #8d8d8d;
    margin: 4px 0;
}

.artist-bio {
    font-size: 1rem;
    color: #000;
    line-height: 1.6;
}

/* --- Artworks Grid Section --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;

    gap: 1rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
}

.btn-upload {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-block;
}

.btn-upload:hover {
    background-color: #6d28d9;
}

/* --- Art Cards --- */
.art-grid {
    display: grid;
    /* grid-template-columns: repeat(4, 1fr); */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.art-card {
    transition: transform 0.3s ease;
    min-width: 0;
}

.art-card:hover {
    transform: translateY(-5px);
}

.art-card a{
    text-decoration: none;
    color: #000;
    display: block;
}

.art-card img{
    width: 100%;
    aspect-ratio: 1/1;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
    object-fit: cover;
    display: block;
}

.art-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 5px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.art-card .price {
    font-size: 1rem;
    color: #333;
}


@media (max-width: 768px) {
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .artist-info {
        gap: 1.25rem;
        margin-bottom: 40px;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .artist-name {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 1rem 5%;
    }

    .artist-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .artist-avatar img {
        width: 100px;
        height: 100px;
    }

    .artist-name {
        font-size: 1.5rem;
        white-space: normal; 
        word-wrap: break-word;
    }

    .section-header{
        margin-bottom: 1rem;
    }

    .section-title{
        order: 2
    }

    .btn-upload{
        order: 1;
    }

    .art-grid {
        gap: 1rem;
    }

    .btn-upload {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}