/* public/css/style.css (VERSÃO FINAL COMPLETA) */

/* --- Variáveis de Cor e Fontes --- */
:root {
    --color-background: #121212;
    --color-text: #F5F5F5;
    --color-text-secondary: #adb5bd;
    --color-primary: #33cc66;       /* Verde Vibrante */
    --color-secondary: #ffc107;     /* Amarelo/Dourado */
    --font-primary: 'Poppins', sans-serif;
}

/* --- Reset Básico e Estilo do Body --- */
body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

/* --- Estrutura Principal e Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.homepage-wrapper {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 82px); /* Altura da tela menos a altura do header */
}

.container-split {
    display: flex;
    width: 100%;
}

/* --- Header --- */
.site-header {
    padding: 15px 0;
    border-bottom: 2px solid var(--color-secondary);
    height: 80px;
    box-sizing: border-box;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-left .logo-link img {
    height: 55px; /* Altura do logo principal */
}
.site-title-fallback {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
}
.site-title-header {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary); /* << MUDA A COR PARA O VERDE PRINCIPAL */
    white-space: nowrap;
    line-height: 1;
}

/* --- Menu Principal --- */
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}
.main-menu a {
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}
.main-menu a:hover {
    color: var(--color-primary);
}

/* Dropdown do Menu */
.menu-item-has-children {
    position: relative;
}
.sub-menu {
    display: block;
    position: absolute;
    top: 100%; 
    right: 0;
    margin-top: 15px; /* Pequeno espaço visual */
    background-color: #1f1f1f;
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    border-radius: 8px;
    z-index: 1000;
    border: 1px solid #333;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-secondary);
}
.sub-menu li a:hover {
    background-color: #2a2a2a;
    color: var(--color-primary);
}
.sub-menu .separator {
    height: 1px;
    background-color: #333;
    margin: 8px 0;
    padding: 0;
}
.btn-logout {
    background-color: #5d2b2b;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.btn-logout:hover {
    background-color: #8B0000;
    color: white !important;
}

/* --- Conteúdo da Página Principal (Home) --- */
.content-left, .content-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}
.presentation-logo-container {
    text-align: center;
    margin-bottom: 30px;
}
.presentation-logo {
    max-height: 90px;
    width: auto;
}
.main-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-secondary); /* Amarelo/Dourado */
}
.description {
    font-size: 1.1rem;
    color: var(--color-primary); /* Verde */
    max-width: 500px;
}

/* Slider de Imagens */
.image-slider img {
    width: 100%;
    max-height: 80vh; 
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* --- Footer --- */
.site-footer {
    padding: 20px 0;
    border-top: 1px solid #333;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-social {
    display: flex;
    gap: 20px;
}
.footer-social a {
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
    font-size: 1.5rem;
}
.footer-social a:hover {
    color: var(--color-primary);
}

/* --- Estilos da Página de Login --- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 143px); /* Altura da janela - (header + footer) */
    padding: 20px;
    box-sizing: border-box;
}
.login-container {
    width: 100%;
    max-width: 400px;
}
.login-box {
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
}
.login-box h1 {
    text-align: center;
    color: #33cc66;
    margin-top: 0;
    margin-bottom: 10px;
}
.login-box p {
    text-align: center;
    margin-bottom: 25px;
    color: #adb5bd;
}
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 5px; color: #adb5bd; font-size: 0.9rem; }
.input-group input, .input-group textarea { width: 100%; padding: 10px; background-color: #333; border: 1px solid #555; color: #fff; border-radius: 5px; box-sizing: border-box; }
.btn-login { width: 100%; padding: 12px; background-color: #33cc66; border: none; color: #000; font-weight: bold; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; font-size: 1rem; }
.btn-login:hover { background-color: #28a745; }
.error-message { background-color: #8B0000; color: white; padding: 10px; border-radius: 5px; text-align: center; margin-bottom: 15px; font-size: 0.9rem; }

/* --- Estilos da Área Administrativa --- */
.admin-wrapper { padding: 40px 20px; }
.admin-wrapper h1 { color: var(--color-primary); }
.admin-menu-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.admin-card { background-color: #1e1e1e; padding: 20px; border-radius: 8px; text-decoration: none; color: var(--color-text); border: 1px solid #333; transition: transform 0.2s, box-shadow 0.2s; }
.admin-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.admin-card h2 { margin-top: 0; }
.logout-card { background-color: #5d2b2b; }
.admin-form { margin-top: 30px; background-color: #1e1e1e; padding: 30px; border-radius: 8px; }
.current-logo { max-width: 150px; background: white; padding: 5px; display: block; margin-bottom: 10px; border-radius: 5px; }
.btn-submit { padding: 12px 25px; background-color: var(--color-primary); border: none; color: #fff; font-weight: bold; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; }
.btn-submit:hover { background-color: #28a745; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.btn-cancel { display: inline-block; margin-left: 10px; color: #adb5bd; text-decoration: none; }


/* --- Responsividade --- */
@media (max-width: 992px) {
    .container-split {
        flex-direction: column;
    }
    .content-left, .content-right {
        width: 100%;
        text-align: center;
        padding: 40px 20px;
    }
}
@media (max-width: 768px) {
    .site-header { height: auto; }
    .site-header .container, .site-footer .container {
        flex-direction: column;
        gap: 20px;
    }
    .main-headline { font-size: 2.2rem; }
    .page-header { flex-direction: column; gap: 15px; }
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #495057;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    min-height: 100px;
}
.image-container {
    position: relative;
    width: 150px;
    height: 150px;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}
.image-container .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 25px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.image-container:hover .delete-btn {
    opacity: 1;
}