/*
=====================================================
    GALLERY-STYLE.CSS - Standardized "Neon Noir" Theme
=====================================================
    This stylesheet styles the gallery page to match
    the professional theme of the rest of the site.
*/

/* === Variáveis de Cor para a Página da Galeria === */
body.gallery-page {
    --primary-color-override: #FF073A;   /* Vermelho Néon Intenso */
    --secondary-color-override: #00BFFF; /* Azul Elétrico */
}

/* === Header e Footer Padronizados === */
body.gallery-page .nav-link {
    text-shadow: none;
    position: relative;
    transition: color 0.3s ease-in-out;
    padding-bottom: 5px;
    border-bottom-color: transparent;
}
body.gallery-page .nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color-override); 
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
body.gallery-page .nav-link:hover,
body.gallery-page .nav-link.active {
    color: #fff;
    text-shadow: 0 0 8px var(--secondary-color-override);
}
body.gallery-page .nav-link:hover::after,
body.gallery-page .nav-link.active::after {
    transform: scaleX(1);
}
body.gallery-page footer {
    border-top: 1px solid rgba(0, 191, 255, 0.2);
}
body.gallery-page footer .social-links a:hover {
    color: var(--secondary-color-override);
    text-shadow: 0 0 15px var(--secondary-color-override);
}

/* =====================================================
    ESTILOS PRINCIPAIS DO CONTEÚDO DA GALERIA
=====================================================
*/

/* Título Principal da Página */
body.gallery-page .page-title {
    color: #fff;
    text-shadow: 0 0 10px var(--secondary-color-override), 0 0 20px var(--secondary-color-override);
}

/* Seletor de Galeria (Dropdown) Padronizado */
body.gallery-page .gallery-selector-wrapper {
    margin-bottom: 50px;
    position: relative;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}
body.gallery-page .gallery-selector-wrapper label {
    display: block;
    text-align: center;
    font-family: var(--font-title);
    font-size: 1.4em;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 8px var(--secondary-color-override);
}
body.gallery-page #gallery-selector {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 12px 40px 12px 20px;
    background: rgba(10, 10, 20, 0.7);
    border: 2px solid transparent;
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.1em;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-image: linear-gradient(to right, var(--primary-color-override), var(--secondary-color-override)) 1;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}
body.gallery-page #gallery-selector:hover {
    box-shadow: 0 0 30px rgba(255, 7, 58, 0.4);
}
body.gallery-page #gallery-selector:focus {
    outline: none;
}
body.gallery-page .gallery-selector-wrapper::after {
    content: '';
    position: absolute;
    top: 73%;
    right: 20px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--secondary-color-override);
    border-bottom: 2px solid var(--secondary-color-override);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    transition: all 0.3s ease;
}
body.gallery-page .gallery-selector-wrapper:hover::after {
    border-color: #fff;
}
body.gallery-page #gallery-selector option {
    background: #12121c;
    color: #fff;
    font-family: var(--font-title);
}

/* Grelha e Itens da Galeria Melhorados */
.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative; /* Para a sobreposição */

    /* Borda com Gradiente Néon */
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-color-override), var(--secondary-color-override)) 1;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover {
    box-shadow: 0 0 25px rgba(255, 7, 58, 0.5); /* Brilho vermelho no hover */
}
.gallery-item:hover img {
    transform: scale(1.1); /* Efeito de zoom na imagem */
}

/* MELHORIA: Sobreposição e Ícone no Hover */
.gallery-item::before, .gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.4s ease;
}
.gallery-item::before {
    background: rgba(0, 0, 0, 0.6); /* Sobreposição escura */
}
.gallery-item::after {
    /* Ícone de Lupa (Zoom) */
    content: '\f00e'; /* Código do ícone fa-search-plus do Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
}
.gallery-item:hover::before, .gallery-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox Melhorado */
.lightbox {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.lightbox:target {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}
.lightbox span {
    border: 2px solid #fff;
    border-radius: 5px;
    box-shadow: 0 0 50px #000;
}