/* ===================================
   PAINTINGS INDEX PAGE STYLES
   =================================== */

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: var(--space-2xl);
}

/* Search and Filter */
.search-filter {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-lg);
}

.search-box:focus {
    outline: 3px solid var(--primary-light);
}

.filter-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--white);
    color: var(--primary);
}

/* Featured Painting */
.featured-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-painting {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.featured-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-placeholder {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    width: 100%;
    max-width: 400px;
}

.featured-content {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.difficulty-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    width: fit-content;
}

.difficulty-badge.easy {
    background: #C8E6C9;
    color: #2E7D32;
}

.difficulty-badge.moderate {
    background: #FFE082;
    color: #F57C00;
}

.difficulty-badge.challenging {
    background: #FFCDD2;
    color: #C62828;
}

.featured-content h3 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.featured-content .artist {
    font-size: 1.25rem;
    color: var(--gray);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.featured-content .description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.learning-points {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.learning-points h4 {
    color: #1565C0;
    margin-bottom: var(--space-md);
}

.learning-points ul {
    margin: 0;
}

.learning-points li {
    margin-bottom: var(--space-sm);
}

/* Paintings Grid */
.paintings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.painting-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.painting-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.painting-image {
    position: relative;
    overflow: hidden;
}

/* Card image styling */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.painting-card:hover .card-image {
    transform: scale(1.1);
}

/* Featured painting image */
.featured-painting-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Card placeholder - fallback for missing images */
.card-placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
}

/* Painting-specific themes */
.klimt-theme {
    background: linear-gradient(135deg, #D4AF37 0%, #CD7F32 100%);
}

.vangogh-theme {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.hokusai-theme {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.vermeer-theme {
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}

.hopper-theme {
    background: linear-gradient(135deg, #1c1917 0%, #78716c 100%);
}

.kahlo-theme {
    background: linear-gradient(135deg, #be123c 0%, #f43f5e 100%);
}

.picasso-theme {
    background: linear-gradient(135deg, #18181b 0%, #52525b 100%);
}

.pollock-theme {
    background: linear-gradient(135deg, #422006 0%, #a16207 100%);
}

.difficulty-tag {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.difficulty-tag.easy {
    background: #C8E6C9;
    color: #2E7D32;
}

.difficulty-tag.moderate {
    background: #FFE082;
    color: #F57C00;
}

.difficulty-tag.challenging {
    background: #FFCDD2;
    color: #C62828;
}

.painting-info {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.painting-info h3 {
    color: var(--dark);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.artist-name {
    color: var(--gray);
    font-style: italic;
    margin-bottom: var(--space-xs);
}

.year {
    color: var(--gray-light);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}

.techniques {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.technique-badge {
    padding: var(--space-xs) var(--space-sm);
    background: var(--gray-lighter);
    color: var(--gray);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.card-btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    margin-top: auto;
}

.card-btn:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

.card-btn.coming-soon {
    background: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
}

.card-btn.coming-soon:hover {
    transform: none;
}

/* More Coming Section */
.more-coming {
    text-align: center;
    padding: var(--space-3xl);
    background: linear-gradient(135deg, #FFF8DC 0%, #FFE4B5 100%);
    border-radius: var(--radius-lg);
    border: 3px dashed var(--primary);
}

.more-coming h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

/* Learning Path */
.learning-path {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    position: relative;
    padding-left: 60px;
}

.learning-path::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: 40px;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.path-step {
    display: flex;
    gap: var(--space-xl);
    position: relative;
}

.path-number {
    position: absolute;
    left: -50px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px #667eea;
}

.path-content {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    flex: 1;
}

.path-content h3 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.path-paintings {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.path-paintings span {
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-lighter);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hidden state for filtering */
.painting-card.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-painting {
        grid-template-columns: 1fr;
    }
    
    .paintings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .featured-content h3 {
        font-size: 2rem;
    }
    
    .paintings-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-path {
        padding-left: 40px;
    }
    
    .learning-path::before {
        left: 10px;
    }
    
    .path-number {
        left: -35px;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}