:root {
    --primary: #1b4332;
    --secondary: #2d6a4f;
    --accent: #74c69d;
    --bg: #f8f9fa;
    --card: #ffffff;
    --text: #2d3436;
}

.dark-mode {
    --bg: #121212;
    --card: #1e1e1e;
    --text: #f1f1f1;
    --primary: #081c15;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { background-color: var(--bg); color: var(--text); font-family: sans-serif; transition: 0.3s; }

.hero-banner { background: var(--primary); color: white; padding: 60px 20px; text-align: center; }

main { max-width: 1100px; margin: -40px auto 40px; padding: 0 20px; }

.card-container { background: var(--card); padding: 30px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

/* BOTÕES DO TOPO - LETRA BRANCA GARANTIDA */
#top-bar { position: fixed; top: 15px; right: 15px; z-index: 9999; }
.btn-topo { 
    background-color: #1b4332 !important; 
    color: white !important; 
    border: 1px solid white !important;
    padding: 8px 12px; margin-left: 5px; border-radius: 5px; cursor: pointer; font-weight: bold; 
}

/* Galeria */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.item-galeria { cursor: pointer; text-align: center; background: #fdfdfd; padding: 10px; border-radius: 12px; transition: 0.3s; }
.item-galeria:hover { transform: translateY(-5px); background: #f0fdf4; }
.moldura { position: relative; border-radius: 10px; overflow: hidden; height: 180px; margin-bottom: 10px; }
.moldura img { width: 100%; height: 100%; object-fit: cover; }
.tag-ia { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.7); color: white; font-size: 10px; padding: 3px 7px; border-radius: 4px; }

/* Caixa de Detalhe */
.info-box { background: #e8f5e9; padding: 20px; border-radius: 10px; margin-top: 20px; border-left: 8px solid var(--accent); color: #1b4332; }
.btn-fechar { background: #ce2d2d; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; margin-top: 10px; }

.botoes-flex { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
button { background: var(--secondary); color: white; border: none; padding: 12px 20px; border-radius: 8px; cursor: pointer; font-weight: bold; }

footer { text-align: center; padding: 40px; color: #888; }
