/* ===================================
   GALERIA DE DASHBOARDS MIA ENGENHARIA
   Padrão: Hermès + Patek Philippe
   =================================== */

/* Container Principal */
.dashboard-gallery-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    padding: 8rem 3rem;
    position: relative;
}

.dashboard-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header da Galeria */
.dashboard-gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.dashboard-gallery-label {
    font-size: 0.8125rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 162, 79, 0.7);
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.dashboard-gallery-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.dashboard-gallery-subtitle {
    max-width: 750px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.75);
}

/* Filtros */
.dashboard-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.875rem 2rem;
    background: rgba(200, 162, 79, 0.08);
    border: 1px solid rgba(200, 162, 79, 0.25);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.8125rem;
}

.filter-btn:hover {
    background: rgba(200, 162, 79, 0.15);
    border-color: rgba(200, 162, 79, 0.4);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--premium-gold);
    border-color: var(--premium-gold);
    color: #000;
    font-weight: 600;
}

/* Grid de Dashboards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Card Individual */
.dashboard-card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(200, 162, 79, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 162, 79, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 
                0 8px 20px rgba(200, 162, 79, 0.15);
}

/* Imagem do Dashboard */
.dashboard-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: rgba(200, 162, 79, 0.05);
}

.dashboard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover .dashboard-image img {
    transform: scale(1.05);
}

/* Badge de Categoria */
.dashboard-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(200, 162, 79, 0.95);
    color: #000;
    padding: 0.5rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Ícone de Zoom */
.dashboard-zoom-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(200, 162, 79, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.dashboard-card:hover .dashboard-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.dashboard-zoom-icon i {
    color: #000;
    font-size: 1rem;
}

/* Conteúdo do Card */
.dashboard-content {
    padding: 2rem;
}

.dashboard-title {
    font-size: 1.5rem;
    color: var(--premium-gold);
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.3;
    font-weight: 400;
}

.dashboard-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* Métricas do Dashboard */
.dashboard-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(200, 162, 79, 0.2);
}

.metric-item {
    text-align: center;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(200, 162, 79, 0.7);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Lightbox */
.dashboard-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.dashboard-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: rgba(200, 162, 79, 0.9);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.25rem;
}

.lightbox-close:hover {
    background: var(--premium-gold);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(200, 162, 79, 0.9);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.5rem;
}

.lightbox-nav:hover {
    background: var(--premium-gold);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -4rem;
}

.lightbox-next {
    right: -4rem;
}

.lightbox-caption {
    position: absolute;
    bottom: -3rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    font-style: italic;
}

/* Animação de Fade para Filtro */
.dashboard-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.dashboard-card.fade-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Responsividade */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-gallery-section {
        padding: 5rem 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dashboard-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.75rem;
    }
    
    .dashboard-image {
        height: 200px;
    }
    
    .dashboard-content {
        padding: 1.5rem;
    }
    
    .dashboard-title {
        font-size: 1.25rem;
    }
    
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-gallery-title {
        font-size: 2rem;
    }
    
    .dashboard-gallery-subtitle {
        font-size: 1rem;
    }
    
    .dashboard-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* Acessibilidade */
.filter-btn:focus,
.dashboard-card:focus,
.lightbox-close:focus,
.lightbox-nav:focus {
    outline: 2px solid var(--premium-gold);
    outline-offset: 2px;
}

/* Animação para prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .dashboard-card,
    .dashboard-image img,
    .filter-btn,
    .lightbox-content {
        transition: none;
        animation: none;
    }
}
