/* 1. CONFIGURAÇÕES DE CORES E VARIÁVEIS */
:root {
    --primary: #ff4757;
    --secondary: #ffa502;
    --bg: #1e1e2e;
    --card: #2f3542;
    --text-light: #ffffff;
    --text-dim: #a4b0be;
}

/* 2. RESET E LAYOUT BASE */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container { 
    width: 90%; 
    max-width: 400px; 
    text-align: center; 
    flex-grow: 1; /* Garante que o conteúdo empurre o footer para a base */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

h1 { 
    font-size: 2.2rem; 
    margin: 0; 
    background: linear-gradient(to right, var(--primary), var(--secondary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* 3. CARD E ÁREA DE EXIBIÇÃO */
.card {
    background: var(--card);
    padding: 40px 25px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-top: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

#display-area {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

/* Tamanho do Emoji Principal Aumentado */
.placeholder-icon { 
    font-size: 8rem; 
    margin-bottom: 15px; 
    transition: 0.3s; 
}

#food-name { 
    font-size: 1.8rem; 
    font-weight: 800; 
    margin: 0; 
    min-height: 2.2rem; 
}

/* 4. BOTÃO PRINCIPAL */
.btn-primary {
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 18px;
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
    transition: 0.3s;
}

.btn-primary:hover { transform: scale(1.02); filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.98); }

/* 5. ANIMAÇÕES */
.shaking { animation: shake 0.1s infinite; }

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    50% { transform: translate(-1px, -2px) rotate(-1deg); }
    100% { transform: translate(1px, -1px) rotate(1deg); }
}

/* 6. RODAPÉ INSTITUCIONAL MATOS TECNOLOGIAS */
.main-footer {
    width: 100%;
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: #a4b0be;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

/* Logomarca "M" minimalista em CSS */
.brand-m {
    font-family: serif;
    font-weight: bold;
    font-size: 1.4rem;
    color: #ffffff;
    border: 2px solid #ffffff;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.footer-brand p {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    font-size: 0.9rem;
}

.footer-nav {
    margin-top: 20px;
}

.footer-nav a {
    color: var(--secondary);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-nav a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}