/* 🚀 LIGHTBOX MODERNO - UNIVERSAL PARA TODOS OS TEMAS */
/* Arquivo: /clientes/core/public/css/lightbox.css - VERSÃO COMPLETA CORRIGIDA */

/* LIGHTBOX PRINCIPAL */
.swiper-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.swiper-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.lightbox-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    padding: 60px 20px 120px;
}

.lightbox-slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-slide img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

/* BOTÕES DE NAVEGAÇÃO ELEGANTES */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    margin-top: 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: white;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px;
    font-weight: bold;
}

/* INFORMAÇÕES DA IMAGEM - FORÇAR SEMPRE VISÍVEIS */
.lightbox-info {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%) !important;
    color: white !important;
    padding: 25px 20px 15px !important;
    z-index: 999999 !important;
    backdrop-filter: blur(15px) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.lightbox-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-description {
    font-size: 16px;
    margin: 0 0 12px 0;
    text-align: center;
    opacity: 0.95;
    line-height: 1.6;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.lightbox-category {
    display: inline-block;
    background: var(--primary-color, #2662e9);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lightbox-counter {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* BOTÃO FECHAR */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.lightbox-close:hover {
    background: rgba(255, 0, 0, 0.8);
    border-color: white;
    transform: scale(1.1);
}

/* MOBILE RESPONSIVO */
@media (max-width: 768px) {
    .lightbox-slide {
        padding: 40px 15px 80px;
    }
    
    .lightbox-slide img {
        max-width: 95%;
        max-height: 75%;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 55px;
        height: 55px;
        opacity: 0.8;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 18px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-title {
        font-size: 18px;
    }
    
    .lightbox-description {
        font-size: 14px;
    }
    
    .lightbox-info {
        padding: 20px 15px 10px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 0 !important;
        z-index: 999999 !important;
    }
    
    .lightbox-slide img.zoomed {
        transform: scale(1.8);
    }
}

/* ANIMAÇÕES SUAVES */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-slide img {
    animation: fadeInScale 0.4s ease-out;
}

/* LOADING SPINNER */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    z-index: 5;
    text-align: center;
}

.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* GALERIA GRID - MANTER COMPATIBILIDADE */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.gallery-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.gallery-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

.gallery-zoom:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* FILTROS DE CATEGORIA */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color, #2662e9);
    color: white;
    border-color: var(--primary-color, #2662e9);
    transform: translateY(-2px);
}

/* LIGHTBOX ULTRA PROFISSIONAL - SUBSTITUI TODO O CSS DAS INFORMAÇÕES */

/* RESET E FORÇAR EXIBIÇÃO */
.lightbox-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999999 !important;
    
    /* BACKGROUND ULTRA PROFISSIONAL */
    background: linear-gradient(
        180deg, 
        transparent 0%,
        rgba(0, 0, 0, 0.0) 10%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.85) 90%,
        rgba(0, 0, 0, 0.95) 100%
    ) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    
    /* ESPAÇAMENTO PREMIUM */
    padding: 40px 30px 25px !important;
    min-height: 120px !important;
    
    /* EFEITOS PROFISSIONAIS */
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 
        0 -20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* CATEGORIA PREMIUM */
.lightbox-category {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* VISUAL PREMIUM */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    
    /* DIMENSÕES E ESPAÇAMENTO */
    padding: 6px 16px !important;
    border-radius: 50px !important;
    margin-bottom: 12px !important;
    
    /* EFEITOS PROFISSIONAIS */
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    
    /* ANIMAÇÃO SUTIL */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* TÍTULO ULTRA PROFISSIONAL */
.lightbox-title {
    display: block !important;
    
    /* TIPOGRAFIA PREMIUM */
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    
    /* ALINHAMENTO */
    text-align: center !important;
    margin: 0 0 10px 0 !important;
    max-width: 90% !important;
    
    /* EFEITOS PROFISSIONAIS */
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.9) !important;
    
    /* RESPONSIVE */
    word-break: break-word !important;
    hyphens: auto !important;
}

/* DESCRIÇÃO ULTRA PROFISSIONAL */
.lightbox-description {
    display: block !important;
    
    /* TIPOGRAFIA ELEGANTE */
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    letter-spacing: 0.2px !important;
    
    /* ALINHAMENTO */
    text-align: center !important;
    margin: 0 auto 16px auto !important;
    max-width: 80% !important;
    
    /* EFEITOS SUTIS */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    
    /* RESPONSIVE */
    word-break: break-word !important;
    hyphens: auto !important;
}

/* CONTADOR DISCRETO E ELEGANTE */
.lightbox-counter {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* VISUAL MINIMALISTA */
    color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums !important;
    
    /* DIMENSÕES */
    padding: 6px 14px !important;
    border-radius: 20px !important;
    margin: 0 !important;
    
    /* EFEITOS SUTIS */
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* RESPONSIVE PREMIUM - MOBILE */
@media (max-width: 768px) {
    .lightbox-info {
        padding: 25px 20px 20px !important;
        min-height: 100px !important;
    }
    
    .lightbox-title {
        font-size: 22px !important;
        letter-spacing: -0.3px !important;
        max-width: 95% !important;
    }
    
    .lightbox-description {
        font-size: 15px !important;
        max-width: 90% !important;
        margin-bottom: 14px !important;
    }
    
    .lightbox-category {
        font-size: 10px !important;
        padding: 5px 14px !important;
        margin-bottom: 10px !important;
    }
    
    .lightbox-counter {
        font-size: 12px !important;
        padding: 5px 12px !important;
    }
}

/* RESPONSIVE PREMIUM - DESKTOP GRANDE */
@media (min-width: 1200px) {
    .lightbox-info {
        padding: 50px 40px 30px !important;
    }
    
    .lightbox-title {
        font-size: 32px !important;
        max-width: 80% !important;
    }
    
    .lightbox-description {
        font-size: 18px !important;
        max-width: 70% !important;
    }
}

/* ANIMAÇÕES PREMIUM */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInCategory {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lightbox-info {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lightbox-category {
    animation: slideInCategory 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both !important;
}

.lightbox-title {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both !important;
}

.lightbox-description {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both !important;
}

.lightbox-counter {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both !important;
}

/* HOVER STATES PROFISSIONAIS */
.lightbox-category:hover {
    transform: translateY(-1px) !important;
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* DARK MODE COMPATIBILITY */
@media (prefers-color-scheme: dark) {
    .lightbox-info {
        background: linear-gradient(
            180deg, 
            transparent 0%,
            rgba(0, 0, 0, 0.0) 10%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.9) 90%,
            rgba(0, 0, 0, 0.98) 100%
        ) !important;
    }
}

/* ACESSIBILIDADE */
@media (prefers-reduced-motion: reduce) {
    .lightbox-info,
    .lightbox-category,
    .lightbox-title,
    .lightbox-description,
    .lightbox-counter {
        animation: none !important;
        transition: none !important;
    }
}

/* PRINT STYLES */
@media print {
    .lightbox-info {
        display: none !important;
    }
}


/* INFORMAÇÕES SEMPRE VISÍVEIS NA GALERIA - ADICIONAR NO lightbox.css */

/* RESETAR HOVER E TORNAR INFORMAÇÕES SEMPRE VISÍVEIS */
.gallery-overlay {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    background: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 15px !important;
    color: #333 !important;
    transition: none !important;
    transform: none !important;
    border-top: 1px solid #f0f0f0 !important;
}

/* REMOVER EFEITO HOVER DO OVERLAY */
.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    background: white !important;
}

/* ESTRUTURA DO ITEM DA GALERIA */
.gallery-item {
    overflow: visible !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    background: white !important;
    transition: all 0.3s ease !important;
    border: 1px solid #f0f0f0 !important;
}

.gallery-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    border-color: #e0e0e0 !important;
}

/* CONTAINER DA IMAGEM */
.gallery-image {
    position: relative !important;
    aspect-ratio: 1 !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
}

.gallery-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.02) !important;
}

/* INFORMAÇÕES SEMPRE VISÍVEIS */
.gallery-info {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.gallery-info h4 {
    margin: 0 0 8px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    line-height: 1.3 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.gallery-info p {
    margin: 0 0 10px 0 !important;
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* CATEGORIA SEMPRE VISÍVEL */
.gallery-category {
    display: inline-block !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* BOTÃO DE ZOOM REPOSICIONADO */
.gallery-zoom {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    border-radius: 20px !important;
    color: #333 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 0.8 !important;
    transform: scale(0.9) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.gallery-item:hover .gallery-zoom {
    opacity: 1 !important;
    transform: scale(1) !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.gallery-zoom:hover {
    background: white !important;
    transform: scale(1.1) !important;
    color: var(--primary-color, #2662e9) !important;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .gallery-overlay {
        padding: 12px !important;
    }
    
    .gallery-info h4 {
        font-size: 15px !important;
    }
    
    .gallery-info p {
        font-size: 13px !important;
    }
    
    .gallery-category {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    
    .gallery-zoom {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
        top: 10px !important;
        right: 10px !important;
    }
}

/* ANIMAÇÃO SUAVE */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-info {
    animation: fadeInUp 0.3s ease-out !important;
}

/* ESTADOS DE CARREGAMENTO */
.gallery-item.loading .gallery-info {
    opacity: 0.7 !important;
}

.gallery-item.loading .gallery-info h4,
.gallery-item.loading .gallery-info p {
    background: #f0f0f0 !important;
    color: transparent !important;
    border-radius: 4px !important;
    animation: pulse 1.5s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

