:root {
    --primary: #4f46e5;   /* indigo moderno */
    --primary-dark: #3730a3;
    --bg: #f6f7fb;
    --text: #1f2933;
    --muted: #6b7280;
}

* {
    box-sizing: border-box;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url('../fonts/Roboto-Bold.ttf');
    font-weight: 400;
    font-style: normal;
}


@font-face {
    font-family: 'Merriweather';
    src: url('../fonts/Merriweather_24pt-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}



body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ===== HEADER ===== */

header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    max-width: 1100px;
    margin: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 1.4rem;
    font-weight: bold;
}

.destaque{
    color: #991111;
}
nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--primary);
}

/* ===== HEADER ===== */

.site-header {
    background-color: #f5f5f5; /* mesma cor do body */
    border-bottom: 1px solid #ddd;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Título */
.site-title {
    font-family: 'Roboto-Bold', 'Arial Narrow Bold', sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0;
    color: #000;

}

/* Navegação */
.site-nav {
    display: flex;
    gap: 20px;
}

.site-nav a {
    text-decoration: none;
    color: #000;
    font-family: 'Roboto-Regular', Arial, sans-serif;
    font-size: 1rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* Botão hamburger */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
}


/* ===== MAIN ===== */

main {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

/* ===== FORM ===== */

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.search-row {
    display: flex;
    gap: 0.6rem;
}

.search-row input[type="text"] {
    flex: 1;
    padding: 0.7rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.search-row button {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.search-row button:hover {
    background: var(--primary-dark);
}

.radios {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

/* ===== RESULTADOS ===== */

.resultado {
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;

}

.mensagem-erro {
    margin-top: 1.5rem;
    font-style: italic;
}


.fonte-dicionario {
    margin-top: 2.4em;
    font-size: 0.8em;
    color: #666;
}

.fonte-contato {
    margin-top: 2.4em;
    font-size: 0.8em;
    color: #666;
    text-decoration: none;
}


/* ===== FOOTER ===== */

footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 3rem 0 1rem;
}


/* =========================
   NUVEM DE PALAVRAS
========================= */

.nuvem-buscas {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.nuvem-buscas h2 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #555;
}

.nuvem {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1rem;
    line-height: 2;
}

.nuvem a {
    text-decoration: none;
    color: #333;
    transition: opacity 0.2s ease;
}

.nuvem a:hover {
    opacity: 0.7;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 600px) {
    .search-row {
        flex-direction: column;
    }

    nav a {
        margin-left: 0.6rem;
    }
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 60px;
        right: 16px;

        background-color: #f5f5f5;
        border: 1px solid #ddd;
        border-radius: 6px;

        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;

        display: none;
    }

    .site-nav.open {
        display: flex;
    }
}

