/* Art Gallery Style - Sotheby's inspired */

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: 'Georgia', serif;
    background-color: #fafafa;
    color: #2c2c2c;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-image: url('/images/2023-11-11_9f2be1e2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: #ffffff;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 2px rgb(0, 0, 0);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #2c2c2c;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #666666;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#hero {
    text-align: center;
    padding: 4rem 0;
    background-color: #ffffff;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

#hero p {
    font-size: 1.2rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

section {
    margin: 3rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: normal;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 1rem;
}

/* Gallery Styles */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-main {
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.gallery-controls button {
    background: none;
    border: 2px solid #2c2c2c;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gallery-controls button:hover {
    background-color: #2c2c2c;
    color: #fafafa;
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
    border-radius: 4px;
}

.thumbnail:hover {
    border-color: #666666;
}

.thumbnail.active {
    border-color: #2c2c2c;
}

.gallery-main {
    cursor: zoom-in;
}

.artwork-info {
    text-align: center;
    padding: 1.5rem 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.artwork-title {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: normal;
    color: #2c2c2c;
    letter-spacing: 1px;
}

.artwork-artist {
    font-size: 1.1rem;
    color: #666666;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.artwork-description {
    font-size: 1rem;
    color: #444444;
    line-height: 1.6;
    max-width: 700px;
    margin: 1rem auto 0;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    border: none;
    background: #ffffff;
    color: #2c2c2c;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

/* Artist portal */
.artist-box {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

#artist-forms {
    display: grid;
    gap: 2rem;
}

#artist-forms h3 {
    margin-top: 0;
}

#artist-forms form {
    display: grid;
    gap: 1rem;
}

.artist-uploads {
    border-top: 1px solid #e8e8e8;
    padding-top: 1.5rem;
}

.artist-uploads-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.upload-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
}

.upload-thumbnail {
    width: 100%;
    height: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.upload-card h4 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.upload-card p {
    margin: 0.25rem 0;
    color: #444;
}

.upload-meta {
    color: #777;
    font-size: 0.9rem;
}

#artist-forms label {
    display: grid;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #333;
}

#artist-forms input,
#artist-forms textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

#artist-forms textarea {
    min-height: 120px;
}

#artist-forms button,
.gallery-controls button {
    border: 2px solid #2c2c2c;
    background: none;
    color: #2c2c2c;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}

#artist-forms button:hover,
.gallery-controls button:hover {
    background-color: #2c2c2c;
    color: #fafafa;
}

.secondary-button {
    background-color: #2c2c2c;
    color: #fafafa;
}

.link-button {
    border: none;
    background: none;
    color: #2c2c2c;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: underline;
    padding: 0;
}

.artist-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.artist-link.clickable {
    color: #2c2c2c;
    text-decoration: underline;
    cursor: pointer;
}

.artist-link.clickable:hover {
    color: #666666;
}

.artist-message {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.artist-message.success {
    color: #166534;
}

.artist-message.error {
    color: #991b1b;
}

.artist-message.info {
    color: #1d4ed8;
}

.gallery-empty {
    padding: 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

/* Toast Notifications */
.toast {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
}

.toast-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-message {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Loading overlay for forms */
form.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #e5e7eb;
    border-top-color: #2c2c2c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Image loading placeholder */
.main-image,
.lightbox-image,
.thumbnail {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Accessibility - Focus styles */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2c2c2c;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

#about, #contact, #youtube {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

#about p, #contact p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

footer {
    background-color: #2c2c2c;
    color: #fafafa;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Artist Profile Page */
#artistProfile {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.artist-profile-header {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.artist-profile-header h2 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: normal;
    color: #2c2c2c;
}

.artist-location {
    color: #666666;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.artist-website {
    display: inline-block;
    margin-top: 0.5rem;
    color: #2c2c2c;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.artist-website:hover {
    color: #666666;
}

.artist-bio {
    background: #fafafa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #2c2c2c;
}

.artist-bio h3 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: normal;
    color: #2c2c2c;
}

.artist-bio p {
    line-height: 1.8;
    color: #444444;
    white-space: pre-wrap;
}

.artist-gallery h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

.artist-artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.artist-artwork-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artist-artwork-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.artist-artwork-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.artist-artwork-info {
    padding: 1.5rem;
}

.artist-artwork-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: normal;
    color: #2c2c2c;
}

.artist-artwork-info p {
    margin: 0;
    color: #666666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    nav {
        justify-content: center;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    .gallery-thumbnails {
        gap: 0.5rem;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
}
