/* ===================================
   GALERIA - SEÇÃO DA HOME
   Estilos específicos para a seção de galeria na página inicial
   =================================== */

/* Importar componente compartilhado de cards */
@import "../../components/gallery-card.css";

/* ===================================
   SEÇÃO DE GALERIA (HOME)
   =================================== */

.gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

/* Cabeçalho da Seção */
.gallery-section .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.gallery-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

/* Linha de animação do título */
.gallery-section .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: var(--color-primary);
    transition: all 0.6s ease;
}

.gallery-section .section-title.title-visible::after {
    animation: underlineGrow 0.8s ease-out 0.3s both;
}

.gallery-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* CTA Ver Galeria Completa */
.gallery-cta {
    text-align: center;
}

.gallery-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gallery-cta .btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gallery-cta .btn i {
    font-size: 1.125rem;
}

/* ===================================
   LIGHTBOX MODAL
   =================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

/* Overlay do Lightbox */
.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1;
    cursor: pointer;
}

/* Conteúdo do Lightbox */
.lightbox-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Botão Fechar */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 3;
}

.lightbox-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

/* Container da Imagem */
.lightbox-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Informações da Imagem */
.lightbox-info {
    margin-top: 20px;
    text-align: center;
    color: var(--color-white);
    max-width: 600px;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.lightbox-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.lightbox-counter {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

.lightbox-category {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Navegação do Lightbox */
.lightbox-nav {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 2rem;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.lightbox-nav:active {
    transform: scale(0.95);
}

.lightbox-prev {
    margin-right: 20px;
}

.lightbox-next {
    margin-left: 20px;
}

/* Animação de entrada do lightbox */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox.active .lightbox-image {
    animation: lightboxFadeIn 0.3s ease;
}

/* ===================================
   RESPONSIVIDADE - SEÇÃO ESPECÍFICA
   =================================== */

/* Tablets */
@media (max-width: 992px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-section .section-title {
        font-size: 2rem;
    }

    .gallery-section .section-subtitle {
        font-size: 1rem;
    }

    /* Lightbox Tablet */
    .lightbox-content {
        width: 95%;
        gap: 15px;
    }

    .lightbox-image {
        max-height: 60vh;
    }

    .lightbox-nav {
        font-size: 1.5rem;
        padding: 15px 12px;
    }

    .lightbox-title {
        font-size: 1.25rem;
    }

    .lightbox-description {
        font-size: 0.9375rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .gallery-section {
        padding: 50px 0;
    }

    .gallery-section .section-header {
        margin-bottom: 40px;
    }

    .gallery-section .section-title {
        font-size: 1.75rem;
        padding-bottom: 12px;
    }

    .gallery-section .section-subtitle {
        font-size: 0.9375rem;
    }

    .gallery-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 32px;
        font-size: 0.9375rem;
    }

    /* Lightbox Mobile */
    .lightbox-content {
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 0 15px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.75rem;
    }

    .lightbox-image {
        max-height: 50vh;
    }

    .lightbox-info {
        margin-top: 15px;
    }

    .lightbox-title {
        font-size: 1.125rem;
    }

    .lightbox-description {
        font-size: 0.875rem;
    }

    .lightbox-counter {
        font-size: 0.875rem;
    }

    .lightbox-nav {
        position: absolute;
        bottom: 50%;
        transform: translateY(50%);
        font-size: 1.25rem;
        padding: 12px 10px;
    }

    .lightbox-prev {
        left: 10px;
        margin-right: 0;
    }

    .lightbox-next {
        right: 10px;
        margin-left: 0;
    }
}

/* Mobile Pequeno */
@media (max-width: 375px) {
    .gallery-section .section-title {
        font-size: 1.5rem;
    }

    .lightbox-image {
        max-height: 40vh;
    }

    .lightbox-nav {
        font-size: 1rem;
        padding: 10px 8px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .gallery-cta {
        display: none !important;
    }
}
