/* ==================================================
   GLOBAL.CSS - Variáveis, Reset, Navbar e Footer
   ================================================== */

/* 1. VARIÁVEIS E CORES GERAIS */
:root {
    --vinho: #5a1a1b;
    --vinho-claro: #7a2a2b;
    --vinho-suave: rgba(90, 26, 27, 0.1);
    --dourado: #a17d4d;
    --dourado-claro: #b8945e;
    --dourado-suave: rgba(161, 125, 77, 0.1);
    --bege-claro: #f8f4f0;
    --bege-medio: #efe7dd;
    --bege-escuro: #e3d5c3;
    --texto: #333333;
    --texto-claro: #666666;
    --branco: #ffffff;
    --sombra: rgba(90, 26, 27, 0.08);
    --sombra-forte: rgba(90, 26, 27, 0.15);
    --sucesso: #28a745;
    --erro: #c45a5a;

    /* Variáveis Responsivas */
    --font-size-body: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
    --font-size-h1: clamp(1.6rem, 1.4rem + 1.5vw, 2.8rem);
}

/* 2. RESET E TIPOGRAFIA BÁSICA */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-body);
    background-color: var(--bege-claro);
    color: var(--texto);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    color: var(--vinho);
}

h1 {
    font-size: var(--font-size-h1);
}

/* 3. NAVBAR (MENU DE NAVEGAÇÃO) */
.navbar {
    background-color: var(--vinho);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: white;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    color: var(--dourado);
}

.nav-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-only {
    display: none;
}

/* 4. FOOTER (RODAPÉ GERAL) */
.main-footer {
    background-color: var(--vinho);
    color: white;
    padding: 40px 20px;
    margin-top: auto;
    /* Empurra o footer para o fundo */
    font-size: 0.9rem;
    border-top: 4px solid var(--dourado);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 300px;
}

.footer-logo {
    font-size: 2rem;
    color: var(--dourado);
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-info .credits {
    font-size: 0.8rem;
    color: var(--bege-claro);
    opacity: 0.8;
}

/* 5. RESPONSIVIDADE GLOBAL (Mobile) */
@media (max-width: 768px) {

    /* Navbar Mobile */
    .navbar {
        padding: 1rem;
    }

    .navbar-toggle {
        display: block;
    }

    .mobile-only {
        display: inline;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--vinho);
        flex-direction: column;
        padding: 20px 0;
        z-index: 1000;
    }

    .navbar-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-item {
        padding: 15px;
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-section {
        flex-direction: column;
        max-width: 100%;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}