/* =========================================
   🎨 Gallery Creative - Tierra y Arte Palette
   ========================================= */

/* === 🖼️ Main Container === */
#real-gallery {
    padding: 2rem 0;
}

/* === 📊 Stats Section === */
.artwork-stats-modern {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto 3rem;
    flex-wrap: wrap;
}

.stat-item {
    background: white;
    border: 2px solid var(--art-ocre);
    border-radius: 15px;
    padding: 1.5rem 2.5rem;
    text-align: center;
    box-shadow: 4px 4px 0px rgba(201, 162, 39, 0.2);
    transition: all 0.3s ease;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--art-mostaza);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0px rgba(201, 162, 39, 0.4);
    border-color: var(--art-mostaza);
}

.stat-number {
    display: block;
    color: var(--art-teja);
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: var(--art-marron);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* === 🔍 Filters === */
.gallery-filters-modern {
    background: white;
    border: 2px solid var(--art-ocre);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    max-width: 950px;
    margin: 0 auto 3rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.filter-group-primary {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    background: transparent;
    border: 2px solid transparent;
    color: var(--art-marron);
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chip:hover {
    background: var(--art-marfil);
    color: var(--art-teja);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--art-teja);
    color: white;
    box-shadow: 0 4px 10px rgba(192, 88, 56, 0.3);
}

.filter-chip.active .filter-icon {
    filter: brightness(0) invert(1); /* Make icon white */
}

/* Dropdowns */
.filter-group-secondary {
    display: flex;
    gap: 1rem;
}

.filter-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    color: var(--art-marron);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.filter-select {
    appearance: none;
    background: var(--art-marfil);
    border: 2px solid var(--art-ocre);
    color: var(--art-marron);
    border-radius: 10px;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235D4037' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--art-teja);
    box-shadow: 0 0 0 3px rgba(192, 88, 56, 0.1);
}

/* === 📂 Technique Groups (Portfolios) === */
.technique-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.technique-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--art-ocre);
}

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

.technique-cover {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay Gradient */
.technique-cover::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(93, 64, 55, 0.1), rgba(93, 64, 55, 0.8));
}

.technique-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    color: white;
}

.technique-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white !important;
}

.technique-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.technique-view-btn {
    background: var(--art-mostaza);
    color: var(--art-marron);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.technique-card:hover .technique-view-btn {
    background: var(--art-teja);
    color: white;
}

/* === 🖼️ Gallery Grid (Artworks) === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.real-artwork-card {
    background: white;
    border-radius: 2px; /* Canvas corners */
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.real-artwork-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px rgba(93, 64, 55, 0.15);
    border-color: var(--art-ocre);
}

.real-artwork-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 4px solid var(--art-ocre);
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.status-badge.available {
    background: var(--art-mostaza);
    color: var(--art-marron);
}

.status-badge.sold {
    background: var(--art-teja);
    color: white;
}

.status-badge.exhibition {
    background: var(--art-marron);
    color: white;
}

.status-badge.private {
    background: #2c3e50;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.real-artwork-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.real-artwork-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--art-marron);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.artwork-details {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.artwork-story {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-btn {
    background: white;
    border: 2px solid var(--art-teja);
    color: var(--art-teja);
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.detail-btn:hover {
    background: var(--art-teja);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-filters-modern {
        flex-direction: column;
        border-radius: 20px;
        padding: 1.5rem;
    }
    
    .filter-group-primary {
        justify-content: center;
        width: 100%;
    }
    
    .filter-group-secondary {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .artwork-stats-modern {
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
