:root {
    --primary-color: #F06A58; /* Cor coral do design */
    --primary-light: #FCE8E6; /* Fundo rosado claro */
    --bg-color: #EFEFEF;     /* Fundo cinza claro padrão */
    --white: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #DDDDDD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Controle de Telas (SPA) */
.screen {
    display: none;
}
.screen.active {
    display: block;
}

/* Header */
.site-header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-img {
    height: 40px;
    width: auto;
}

.slogan-header {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    background-color: var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
}

.main-nav a {
    display: block;
    padding: 10px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #D95544;
}

/* Hero Section */
.hero-section {
    background-color: #E6E6E6;
    padding: 50px 0;
    margin: 25px 20px;
    border-radius: 4px;
    text-align: center;
}

.hero-box h1 {
    font-size: 38px;
    font-weight: 400;
    color: #222;
    margin-bottom: 5px;
}

.hero-box h1 span {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0 8px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 15px;
    color: #444;
    margin-bottom: 20px;
}

.hero-box h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 25px;
    color: #333;
}

/* Barra de Pesquisa */
.search-bar {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
}

.search-bar button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.search-bar button:hover {
    background-color: #D95544;
}

/* Layout Grid Home 2 */
.main-layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    margin-top: 30px;
}

.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-menu-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.side-menu-card:hover {
    border-color: var(--primary-color);
}

.thumb-placeholder {
    width: 100%;
    height: 90px;
    background: #CCCCCC;
    border-radius: 2px;
    margin-bottom: 10px;
}

.side-menu-card span {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

.content-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card-preview {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    gap: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.post-card-preview:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.post-thumb-placeholder {
    width: 240px;
    height: 140px;
    background: #E0E0E0;
    border-radius: 2px;
    flex-shrink: 0;
}

.post-preview-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.post-preview-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Seção Mapas na Home */
.home-mapas-section {
    margin-top: 50px;
}

.inner-hero {
    margin: 20px 0;
}

.section-title {
    font-size: 20px;
    font-weight: 400;
    margin: 40px 0 20px 0;
    color: #444;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.mapas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.map-card-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.map-thumb {
    width: 100%;
    height: 200px;
    background: #CCCCCC;
}

.map-meta {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.map-meta h4 {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
}

.map-meta span {
    font-size: 13px;
    color: var(--primary-color);
}

.date-tag {
    font-size: 12px !important;
    color: var(--text-muted) !important;
}

/* Categorias */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.cat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
}

.cat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(240, 106, 88, 0.1);
}

/* Tela de Post Completo */
.post-layout-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    margin-top: 30px;
}

.post-full-content {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 30px;
}

.post-header-banner {
    background: #EAEAEA;
    padding: 40px;
    border-radius: 4px;
    position: relative;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inline-banner {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.social-dots-vertical {
    position: absolute;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.post-title-main {
    font-size: 26px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.post-meta-date {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.post-text-body p {
    margin-bottom: 18px;
    color: #444;
    font-size: 15px;
}

.post-featured-image-box {
    width: 100%;
    height: 280px;
    background: #CCCCCC;
    border-radius: 4px;
    margin: 25px 0;
}

.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.gallery-thumb {
    height: 90px;
    background: #CCCCCC;
    border-radius: 4px;
}

.post-footer-search {
    text-align: center;
    margin-top: 30px;
}

.btn-search-red {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-size: 15px;
}

/* Tela de Dados Abertos (Estilo Portal Oficial + Nosso Design) */
.dados-screen-container {
    margin-top: 30px;
}

.dados-search-section {
    background: #E8E8E8;
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 30px;
}

.dados-intro-text {
    max-width: 750px;
    margin: 15px auto 0 auto;
    font-size: 14px;
    color: #555;
}

.dados-content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

.datasets-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dataset-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 25px;
    transition: all 0.2s;
}

.dataset-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.dataset-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dataset-card-header h3 {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
}

.btn-download {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-download:hover {
    background-color: #D95544;
}

.dataset-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.dataset-tags {
    display: flex;
    gap: 8px;
}

.tag-org, .tag-cat {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.tag-cat {
    background-color: #C04939;
}

.dados-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
}

.filter-box h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.filter-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-box a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.filter-box a:hover, .filter-box a.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Rodapé */
.site-footer {
    background: #E2E2E2;
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    margin-top: 60px;
    font-size: 13px;
    color: #555;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
}

@media(max-width: 900px) {
    .main-layout-grid, .post-layout-wrapper, .dados-content-layout {
        grid-template-columns: 1fr;
    }
}