/*
Theme Name: Portfolio Diretor de Arte
Theme URI: https://seusite.com
Author: Seu Nome
Author URI: https://seusite.com
Description: Tema WordPress para portfólio de direção de arte com visualização de projetos em tela cheia e opções avançadas de personalização.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.8.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio-diretor-arte
Tags: portfolio, art-director, fullscreen, gallery, customizable
*/

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--portfolio-font-family, 'Montserrat', sans-serif);
    background-color: var(--portfolio-bg-color, #1a1a1a);
    color: var(--portfolio-text-color, #ffffff);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Variáveis CSS para personalização */
:root {
    --portfolio-primary-color: #7fff00;
    --portfolio-secondary-color: #1e2761;
    --portfolio-bg-color: #1a1a1a;
    --portfolio-text-color: #ffffff;
    --portfolio-font-family: 'Montserrat', sans-serif;
    --portfolio-overlay-color: rgba(127, 255, 0, 0.9);
}

/* Estrutura de páginas */
.page {
    display: none;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.page.active {
    display: block;
}

.project-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--portfolio-bg-color);
    z-index: 1000;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.project-page.active {
    display: block;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: var(--portfolio-bg-color);
    border-bottom: 1px solid #333;
    width: 100%;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--portfolio-primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title {
    font-size: 0.9rem;
    color: var(--portfolio-primary-color);
    margin-top: -5px;
}

.nav-container {
    background-color: var(--portfolio-secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
}

.nav-link {
    color: var(--portfolio-text-color);
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-left: 10px;
}

/* Galeria */
.gallery {
    padding: 20px;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Overlay do mouseover */
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--portfolio-overlay-color);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay .project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--portfolio-bg-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overlay .project-client {
    font-size: 1rem;
    color: var(--portfolio-bg-color);
    opacity: 0.8;
}

/* Seção Sobre */
.about-section {
    padding: 60px 40px;
    background-color: var(--portfolio-bg-color);
    width: 100%;
}

.about-content {
    width: 100%;
    margin: 0;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--portfolio-primary-color);
}

.about-content p {
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.contact-info a {
    color: var(--portfolio-primary-color);
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

/* Página de Projeto */
.project-content {
    width: 100%;
    min-height: 100vh;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.project-description {
    padding: 40px;
    width: 100%;
    margin: 0;
}

.project-description h2 {
    display: none; /* Título não aparece na página do projeto */
}

.project-description p {
    margin-bottom: 15px;
}

/* Ícones personalizados */
.custom-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Torna o ícone branco */
}

.back-button .custom-icon {
    width: 20px;
    height: 20px;
}

.home-button .custom-icon {
    width: 24px;
    height: 24px;
}

/* Botão de voltar (X) */
.back-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--portfolio-text-color);
    z-index: 1010;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Rodapé do projeto com botão home - NÃO FIXO */
.project-footer {
    position: relative;
    width: 100%;
    padding: 40px 0;
    background-color: rgba(26, 26, 26, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1010;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 40px;
}

.project-footer.visible {
    opacity: 1;
}

.home-button {
    width: 50px;
    height: 50px;
    background-color: var(--portfolio-secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--portfolio-text-color);
    transition: background-color 0.3s ease;
}

.home-button:hover {
    background-color: #2a3a80;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.project-page.active {
    animation: fadeIn 0.3s ease forwards;
}

/* Responsividade */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-description {
        padding: 30px;
    }
    
    .overlay .project-title {
        font-size: 1.3rem;
    }
    
    .overlay .project-client {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-container {
        margin-top: 20px;
    }
    
    .project-description {
        padding: 20px;
    }
    
    .overlay .project-title {
        font-size: 1.2rem;
    }
    
    .overlay .project-client {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-description {
        padding: 15px;
    }
    
    .back-button {
        top: 10px;
        right: 10px;
    }
    
    .home-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .overlay .project-title {
        font-size: 1.1rem;
    }
    
    .overlay .project-client {
        font-size: 0.7rem;
    }
}

