/* Artist Detail Page Styles */

/* Artist Hero Section */
.artist-hero {
    background-color: #f8f5f0;
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 60px;
}

.artist-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #4a3428;
    margin-bottom: 10px;
}

.artist-hero p {
    font-size: 1.2rem;
    color: #8b5a2b;
    font-style: italic;
}

/* Artist Profile Section */
.artist-container {
    padding: 0 0 80px;
}

.artist-profile {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
}

.artist-image-container {
    flex: 0 0 217px;
    width: 175px;
    height: 217px;
    min-width: 175px; /* Prevent flex-shrink */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-right: 30px; /* Add space between image and info */
}

.artist-image {
    width: 175px;
    height: 217px;
    min-width: 175px; /* Prevent flex-shrink */
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    background: #f0f0f0; /* Fallback background color */
}

.artist-image:hover {
    transform: scale(1.02);
}

/* Ensure the image container maintains aspect ratio */
@media (max-width: 768px) {
    .artist-profile {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .artist-image-container {
        margin: 0 auto 20px;
    }
}

.artist-info {
    flex: 1;
    min-width: 0; /* Allow the info section to shrink below 300px on small screens */
}

.artist-info {
    flex: 1;
}

.artist-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #4a3428;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.artist-name:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #d4a76a;
}

.artist-bio {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 30px;
}

.artist-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.detail-label {
    font-weight: 600;
    color: #4a3428;
    min-width: 120px;
}

.detail-value {
    color: #666;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0e8df;
    color: #8b5a2b;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #d4a76a;
    color: white;
    transform: translateY(-3px);
}

/* Artist Statement */
.artist-statement {
    background-color: #f9f7f3;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.artist-statement h3 {
    font-family: 'Playfair Display', serif;
    color: #4a3428;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.artist-statement p {
    line-height: 1.8;
    color: #555;
}

/* Artist Works Section */
.artist-works {
    margin-top: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #4a3428;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #d4a76a;
}

/* Featured Works Section */
.artist-works {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #4a3428;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #d4a76a;
}

.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.artwork-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.artwork-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.artwork-info {
    padding: 20px;
}

.artwork-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #4a3428;
    margin-bottom: 5px;
}

.artwork-details {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.artwork-price {
    font-weight: 600;
    color: #8b5a2b;
    font-size: 1.1rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 90, 43, 0.2);
    border-radius: 50%;
    border-top-color: #8b5a2b;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .artist-profile {
        flex-direction: column;
        gap: 40px;
    }
    
    .artist-image-container {
        flex: 0 0 auto;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .artworks-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .artist-hero {
        padding: 60px 0 40px;
    }
    
    .artist-hero h1 {
        font-size: 2.5rem;
    }
    
    .artist-name {
        font-size: 2rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        min-width: 100%;
    }
    
    .artworks-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .artist-hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .artworks-grid {
        grid-template-columns: 1fr;
    }
    
    .artwork-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Hide social links by default - will be shown by JavaScript */
#facebookLink,
#instagramLink,
#websiteLink,
#emailLink {
    display: none !important;
}
