/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background-color: #fff;
    border-bottom: 3px solid #dc2626;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

/* Main content */
.main {
    padding: 3rem 0;
}

.intro {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

/* Artwork gallery */
.artwork-gallery {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.artwork-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.artwork-image {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.artwork-image:hover .art-image {
    transform: scale(1.05);
}

.artwork-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artwork-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.artwork-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artwork-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 1rem;
}

.artwork-episode {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.artwork-size {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.artwork-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Buy button styles */
.buy-button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.buy-button:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.buy-button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .intro h2 {
        font-size: 1.5rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    .artwork-item {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .artwork-image {
        min-height: 250px;
    }
    
    .artwork-details {
        padding: 1.5rem;
    }
    
    .artwork-title {
        font-size: 1.3rem;
    }
    
    .artwork-subtitle {
        font-size: 0.8rem;
    }
    
    .artwork-price {
        font-size: 1.2rem;
    }
    
    .artwork-episode {
        font-size: 0.85rem;
    }
    
    .artwork-size {
        font-size: 0.8rem;
    }
    
    .buy-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .intro {
        margin-bottom: 2rem;
    }
    
    .artwork-gallery {
        gap: 2rem;
    }
    
    .artwork-details {
        padding: 1rem;
    }
}

/* Hover effect for larger screens */
@media (min-width: 769px) {
    .artwork-image {
        cursor: zoom-in;
    }
    
    .artwork-image:hover::after {
        content: "Click to enlarge";
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        opacity: 0;
        animation: fadeIn 0.3s ease forwards;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Loading animation for images */
.art-image {
    position: relative;
}

.art-image::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #dc2626;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    opacity: 0.3;
}

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