/* ===================================
   PÁGINA DE GALERIA (/galeria)
   Estilos específicos para a página completa de galeria
   =================================== */

/* ===================================
   COMPONENTE: GALLERY CARD (INLINE)
   ⚠️ FONTE ÚNICA: resources/css/components/gallery-card.css
   ⚠️ Conteúdo copiado inline para funcionar no browser
   =================================== */

/* [Conteúdo do componente inlineado - veja gallery.css para referência] */
/* Para evitar duplicação excessiva neste arquivo, o componente completo está em gallery.css */
/* Este arquivo herda todos os estilos de cards do componente base */

/* Grid de Galeria */
.gallery-grid {display: grid;grid-template-columns: repeat(3, 1fr);gap: 24px;margin-bottom: 50px;}
.gallery-item {position: relative;overflow: hidden;border-radius: 12px;box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);cursor: pointer;aspect-ratio: 4/3;background-color: var(--color-white);}
.gallery-item:hover {transform: translateY(-8px) scale(1.02);box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);z-index: 10;}
.gallery-image {position: relative;width: 100%;height: 100%;overflow: hidden;background-color: #f0f0f0;}
.gallery-image img {width: 100%;height: 100%;object-fit: cover;transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);user-select: none;-webkit-user-drag: none;pointer-events: none;}
.gallery-item:hover .gallery-image img {transform: scale(1.15);}
.gallery-overlay {position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.85) 100%);display: flex;align-items: flex-end;opacity: 0;transition: opacity 0.4s ease;pointer-events: auto;}
.gallery-item:hover .gallery-overlay {opacity: 1;}
.gallery-content {padding: 24px;width: 100%;transform: translateY(20px);transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);position: relative;z-index: 4;}
.gallery-item:hover .gallery-content {transform: translateY(0);}
.gallery-item-title {font-size: 1.25rem;font-weight: 700;color: var(--color-white);margin-bottom: 8px;line-height: 1.3;display: -webkit-box;-webkit-line-clamp: 2;line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;max-height: 3.25rem;}
.gallery-description {font-size: 0.9375rem;color: rgba(255, 255, 255, 0.9);margin-bottom: 16px;line-height: 1.5;display: -webkit-box;-webkit-line-clamp: 2;line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;}
.gallery-category-tag {position: absolute;top: 16px;left: 16px;background-color: var(--color-primary);color: var(--color-white);padding: 6px 14px;border-radius: 20px;font-size: 0.8125rem;font-weight: 600;z-index: 5;box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);transition: transform 0.3s ease;max-width: calc(100% - 32px);white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.gallery-item:hover .gallery-category-tag {transform: scale(1.05);}
.gallery-view-btn {display: inline-flex;align-items: center;gap: 8px;padding: 10px 20px;background-color: rgba(255, 255, 255, 0.15);color: var(--color-white);border: 2px solid rgba(255, 255, 255, 0.3);border-radius: 6px;font-weight: 600;font-size: 0.9375rem;cursor: pointer;transition: all 0.3s ease;backdrop-filter: blur(10px);}
.gallery-view-btn:hover {background-color: var(--color-primary);border-color: var(--color-primary);transform: translateX(4px);}
.gallery-view-btn i {font-size: 0.875rem;transition: transform 0.3s ease;}
.gallery-view-btn:hover i {transform: translateX(4px);}
.gallery-album-badge {display: none;}
.gallery-item-album .gallery-category-tag {top: 12px;left: 12px;right: auto;font-size: 0.75rem;padding: 5px 12px;z-index: 6;max-width: calc(100% - 24px);}
.gallery-album-info {display: inline-flex;align-items: center;gap: 6px;font-size: 0.8rem;font-weight: 500;color: rgba(255, 255, 255, 0.95);margin-top: 10px;margin-bottom: 8px;padding: 6px 10px;background: rgba(255, 255, 255, 0.1);border-radius: 6px;backdrop-filter: blur(8px);user-select: none;-webkit-user-select: none;-moz-user-select: none;}
.gallery-album-info i {font-size: 0.875rem;color: #ffffff;}
.gallery-album-btn {background: linear-gradient(135deg, #c8102e 0%, #a00d25 100%);padding: 8px 16px;font-size: 0.875rem;border: none;cursor: pointer;user-select: none;}
.gallery-album-btn:hover {background: linear-gradient(135deg, #d61f3a 0%, #c8102e 100%);transform: translateY(-2px);box-shadow: 0 6px 20px rgba(200, 16, 46, 0.5);}
.gallery-item-album .gallery-image::after {content: "";position: absolute;top: 0;left: 0;right: 0;bottom: 0;background: linear-gradient(135deg, rgba(69, 123, 157, 0.05) 0%, rgba(29, 53, 87, 0.08) 100%);pointer-events: none;opacity: 0;transition: opacity 0.3s ease;}
.gallery-item-album:hover .gallery-image::after {opacity: 1;}
.gallery-item-album:hover .gallery-image img {transform: scale(1.05);}
.gallery-item-album .gallery-overlay {opacity: 1;background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.85) 100%);}
.gallery-item-album .gallery-content {transform: translateY(0);position: relative;z-index: 3;padding: 20px;}
.gallery-item-album .gallery-item-title {opacity: 1;text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.6);font-size: 1.125rem;line-height: 1.4;-webkit-line-clamp: 2;line-clamp: 2;max-height: 3.15rem;margin-bottom: 10px;word-break: break-word;overflow-wrap: break-word;}
.gallery-item-album .gallery-description {opacity: 1;text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 3px 12px rgba(0, 0, 0, 0.5);font-size: 0.875rem;line-height: 1.5;-webkit-line-clamp: 3;line-clamp: 3;max-height: 3.94rem;word-break: break-word;overflow-wrap: break-word;}
.gallery-item-album {cursor: pointer;transition: transform 0.3s ease, box-shadow 0.3s ease;}
.gallery-item-album .gallery-image {cursor: pointer;}
.gallery-album-btn:focus,.gallery-view-btn:focus {outline: 3px solid #457b9d;outline-offset: 2px;}
.gallery-image img[loading="lazy"] {background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);}
@media (max-width: 992px) {.gallery-grid {grid-template-columns: repeat(2, 1fr);gap: 24px;margin-bottom: 50px;}.gallery-content {padding: 20px;}.gallery-item-title {font-size: 1.125rem;}.gallery-description {font-size: 0.875rem;}.gallery-category-tag {top: 12px;left: 12px;font-size: 0.75rem;padding: 5px 12px;}.gallery-item-album .gallery-category-tag {top: 10px;left: 10px;font-size: 0.7rem;padding: 4px 10px;}.gallery-album-info {font-size: 0.75rem;padding: 5px 8px;margin-top: 8px;}.gallery-album-btn {padding: 7px 14px;font-size: 0.8125rem;}.gallery-item-album .gallery-item-title {font-size: 1rem;line-height: 1.35;max-height: 2.7rem;}.gallery-item-album .gallery-description {font-size: 0.8125rem;max-height: 3.66rem;}}
@media (max-width: 576px) {.gallery-grid {grid-template-columns: 1fr;gap: 20px;margin-bottom: 40px;}.gallery-item {aspect-ratio: 16/10;}.gallery-content {padding: 16px;}.gallery-item-title {font-size: 1rem;margin-bottom: 6px;-webkit-line-clamp: 2;line-clamp: 2;max-height: 2.6rem;}.gallery-description {font-size: 0.8125rem;margin-bottom: 12px;}.gallery-view-btn {padding: 8px 16px;font-size: 0.875rem;}.gallery-category-tag {top: 12px;left: 12px;padding: 5px 12px;font-size: 0.75rem;}.gallery-item-album .gallery-category-tag {top: 8px;left: 8px;font-size: 0.65rem;padding: 4px 8px;}.gallery-album-info {font-size: 0.7rem;padding: 4px 8px;margin-top: 6px;}.gallery-album-btn {padding: 6px 12px;font-size: 0.8rem;}.gallery-item-album .gallery-content {padding: 16px;}.gallery-item-album .gallery-item-title {font-size: 0.9375rem;line-height: 1.3;max-height: 2.44rem;margin-bottom: 8px;}.gallery-item-album .gallery-description {font-size: 0.8125rem;-webkit-line-clamp: 2;line-clamp: 2;max-height: 2.44rem;margin-bottom: 10px;}}
@media (max-width: 480px) {.gallery-item {aspect-ratio: 4/3;}.gallery-item-album .gallery-content {padding: 14px;}.gallery-item-album .gallery-item-title {font-size: 0.875rem;line-height: 1.3;max-height: 2.28rem;}.gallery-item-album .gallery-description {font-size: 0.75rem;max-height: 2.25rem;}}
@media print {.gallery-album-badge,.gallery-album-info,.gallery-overlay {display: none !important;}.gallery-item {break-inside: avoid;}}

/* ===================================
   FIM DO COMPONENTE INLINE
   =================================== */

/* ===================================
   BREADCRUMB
   =================================== */

.breadcrumb-section {
    padding: 12px 0 10px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 10;
    margin-top: 60px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #666666;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb-item:not(.active):hover {
    color: #c8102e;
}

.breadcrumb-item:not(.active):hover i {
    transform: scale(1.1);
}

.breadcrumb-item.active {
    color: #333333;
    font-weight: 600;
    cursor: default;
}

.breadcrumb-item i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.breadcrumb-separator {
    color: #cccccc;
    user-select: none;
    font-weight: 400;
}

/* ===================================
   PAGE HERO
   =================================== */

.gallery-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    padding: 80px 0 60px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    opacity: 0.5;
    pointer-events: none;
}

.gallery-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 0;
}

.gallery-title {
    font-family: "Poppins", sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-subtitle {
    font-family: "Open Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #e0e0e0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===================================
   GALERIA PRINCIPAL
   =================================== */

.gallery-main {
    padding: 50px 0 80px;
    background-color: var(--color-light);
}

/* ===================================
   FILTROS DE CATEGORIA
   =================================== */

.gallery-filters {
    background-color: var(--color-white);
    padding: 30px 0 40px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background-color: var(--color-white);
    color: var(--color-gray);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.15);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.filter-btn i {
    font-size: 0.875rem;
}

.filter-count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.filter-btn.active .filter-count {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Estado oculto para filtro */
.gallery-item.hidden {
    display: none;
}

/* ===================================
   ESTADO VAZIO
   =================================== */

.gallery-empty {
    display: none;
    text-align: center;
    padding: 80px 20px;
    color: var(--color-gray);
}

.gallery-empty.show {
    display: block;
}

.gallery-empty i {
    font-size: 4rem;
    color: var(--color-gray-light);
    margin-bottom: 24px;
}

.gallery-empty h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.gallery-empty p {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===================================
   LIGHTBOX MODAL (específico da página)
   =================================== */

.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.75);
    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: 2.5rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 3;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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: 24px;
    text-align: center;
    color: var(--color-white);
    max-width: 700px;
    padding: 0 20px;
}

.lightbox-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #d7d6d6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.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;
}

.lightbox-description {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    line-height: 1.6;
}

.lightbox-counter {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* 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);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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 */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox.active .lightbox-image {
    animation: lightboxFadeIn 0.3s ease;
}

/* Animação da linha vermelha dos títulos */
@keyframes underlineGrow {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* ===================================
   RESPONSIVIDADE - PÁGINA ESPECÍFICA
   =================================== */

/* Tablets */
@media (max-width: 992px) {
    .gallery-hero {
        padding: 60px 0 50px;
    }

    .gallery-title {
        font-size: 2.5rem;
    }

    .gallery-subtitle {
        font-size: 1.1rem;
    }

    .filter-buttons {
        gap: 12px;
    }

    .filter-btn {
        padding: 10px 22px;
        font-size: 0.875rem;
    }

    /* Lightbox Tablet */
    .lightbox-content {
        width: 95%;
        gap: 15px;
    }

    .lightbox-image {
        max-height: 60vh;
    }

    .lightbox-nav {
        font-size: 1.5rem;
        padding: 15px 12px;
        width: 50px;
        height: 50px;
    }

    .lightbox-title {
        font-size: 1.5rem;
    }

    .lightbox-description {
        font-size: 0.9375rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .breadcrumb-section {
        padding: 16px 0;
    }

    .breadcrumb {
        font-size: 0.875rem;
        gap: 8px;
    }

    .gallery-hero {
        padding: 50px 0 40px;
    }

    .gallery-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .gallery-subtitle {
        font-size: 1rem;
    }

    .gallery-filters {
        padding: 30px 0;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.8125rem;
    }

    .gallery-main {
        padding: 50px 0;
    }

    .gallery-empty {
        padding: 60px 20px;
    }

    .gallery-empty i {
        font-size: 3rem;
    }

    .gallery-empty h3 {
        font-size: 1.25rem;
    }

    .gallery-empty p {
        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: 2rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-image {
        max-height: 50vh;
    }

    .lightbox-info {
        margin-top: 20px;
        padding: 0 10px;
    }

    .lightbox-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .lightbox-category {
        padding: 5px 12px;
        font-size: 0.8125rem;
        margin-bottom: 12px;
    }

    .lightbox-description {
        font-size: 0.9375rem;
    }

    .lightbox-counter {
        font-size: 0.875rem;
    }

    .lightbox-nav {
        position: absolute;
        bottom: 50%;
        transform: translateY(50%);
        font-size: 1.25rem;
        padding: 12px 10px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
        margin-right: 0;
    }

    .lightbox-next {
        right: 10px;
        margin-left: 0;
    }
}

/* Mobile Pequeno */
@media (max-width: 375px) {
    .gallery-title {
        font-size: 1.625rem;
    }

    .lightbox-image {
        max-height: 40vh;
    }

    .lightbox-nav {
        font-size: 1rem;
        padding: 10px 8px;
        width: 36px;
        height: 36px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .filter-buttons,
    .gallery-cta {
        display: none !important;
    }
}
