/* Importamos unha tipografía máis amigable */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --cor-primaria: #0059b3;
    --cor-secundaria: #fdb813; /* Amarelo vibrante */
    --cor-fondo: #f0f4f8;
    --cor-texto: #333;
    --cor-branca: #ffffff;
    --sombra-suave: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--cor-fondo);
    color: var(--cor-texto);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 0.5s ease-in-out;
}

header {
    background: linear-gradient(135deg, var(--cor-primaria), #007bff);
    color: var(--cor-branca);
    text-align: center;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid var(--cor-secundaria);
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    font-weight: 700;
}

header h2 {
    margin: 0;
    font-weight: 400;
    font-size: 1.3em;
    opacity: 0.9;
}

main {
    padding: 20px;
}

section h2 {
    text-align: center;
    color: var(--cor-primaria);
    font-size: 2.2em;
    margin-bottom: 25px;
    font-weight: 700;
    width: 100%;
}

/* Estilos para a vista diaria */
#vista-diaria {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.dia-container {
    flex: 1;
    min-width: 300px;
    max-width: 420px;
}

.dia-container h3 {
    text-align: center;
    font-size: 1.8em;
    color: var(--cor-texto);
    padding-bottom: 10px;
    border-bottom: 3px solid var(--cor-secundaria);
    margin-bottom: 20px;
}

/* Estilos para a vista mensual */
.month-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.month-nav button {
    background: var(--cor-primaria);
    color: var(--cor-branca);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.month-nav button:hover {
    background-color: #004a8c;
    transform: scale(1.1);
    box-shadow: var(--sombra-suave);
}

#month-name {
    margin: 0;
    font-size: 2em;
    font-weight: 600;
    min-width: 250px;
    text-align: center;
}

#monthly-menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* O novo deseño das tarxetas de menú */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-card {
    background-color: var(--cor-branca);
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
    width: 300px;
    padding: 0; /* Eliminamos o padding para que o header o controle */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Para que o borde superior quede ben */
    border-top: 5px solid var(--cor-primaria);
    animation: fadeIn 0.5s ease-out forwards;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.menu-card h4 {
    color: var(--cor-primaria);
    margin: 0;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 600;
    background-color: #f8f9fa;
}

.menu-card ul {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
}

.menu-card li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
}
.menu-card li:last-child {
    border-bottom: none;
}

.menu-card li .icon {
    font-size: 1.5em;
}

.menu-card li strong {
    color: var(--cor-texto);
    font-weight: 600;
}

.separator {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 50px auto;
    width: 80%;
}

.disclaimer {
    text-align: center;
    padding: 15px;
    margin: 20px;
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    font-size: 0.9em;
}

.loading, .no-menu {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.2em;
    color: #888;
    padding: 40px 20px;
    font-style: italic;
}

/* Facemos o deseño un pouco máis compacto en móbiles */
@media (max-width: 600px) {
    header h1 { font-size: 2.2em; }
    header h2 { font-size: 1.1em; }
    section h2 { font-size: 1.8em; }
    #month-name { font-size: 1.5em; }
    .month-nav button { width: 40px; height: 40px; font-size: 1.5em; }
}