/* 1. VARIÁVEIS E TEMAS */
:root {
    --bg-site: #f5f7fa;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-header: #0f172a;
    --text-main: #222;
    --text-muted: #555;
    --accent: #3b82f6;
    --border: #dcdcdc;
    --shadow: 0 4px 10px rgba(0,0,0,0.1);
    --texto-secundario: #495057;
    --cor-borda: #dee2e6;
    
    /* Unificando as variáveis que faltavam para o Artigo */
    --primary: #0f172a;
    --light-bg: #f8fafc;
}

[data-theme="dark"] {
    --bg-site: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #111827;
    --bg-header: #020617;
    --text-main: #f1f5f9;
    --text-muted: #cbd5e1;
    --accent: #60a5fa;
    --border: #334155;
    --shadow: 0 4px 10px rgba(0,0,0,0.4);
    
    /* Ajustes das variáveis do artigo para o Dark Mode */
    --primary: #ffffff;
    --light-bg: #1e293b;
}

/* 2. CONFIGURAÇÕES GLOBAIS */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body, .post-card, .dropdown-content, input, textarea, .contact-box, .dado-card, .filter-btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--bg-site);
    color: var(--text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    width: 100%;
    overflow-x: hidden;
}

/* 3. HEADER E NAVEGAÇÃO */
.header {
    background-color: var(--bg-header);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #a5d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.menu > a, .menu > .dropdown > .dropbtn {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.header .dropdown .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--bg-card);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    border: 1px solid var(--border);
    z-index: 10000;
    padding: 8px 0;
    margin-top: 10px;
}

.header .dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    font-weight: 500;
    text-align: left;
}

.header .dropdown-content a span {
    font-size: 1.2rem;
    min-width: 25px;
    display: flex;
    justify-content: center;
}

.header .dropdown-content a:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.header .dropdown-content a:hover {
    background-color: var(--accent);
    color: white;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.dropbtn {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.dropbtn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 4. BUSCA E GRIDS */
.search-container {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 12px 25px;
    border: 2px solid var(--accent);
    background-color: var(--bg-input);
    color: var(--text-main);
    border-radius: 30px;
    outline: none;
    box-shadow: var(--shadow);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.posts-grid a {
    text-decoration: none;
    color: inherit;
}

.post-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%; 
    border: 1px solid var(--border);
}

.post-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #eee;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 20px;
    flex-grow: 1;
}

.post-content h3 { 
    color: var(--accent); 
    margin-bottom: 10px;
}

.post-content p { 
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 5. AÇÕES (BOTÕES REDONDOS) */
.actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.actions button, .actions a {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.actions button:hover, .actions a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .menu { gap: 10px; }
    .logo { font-size: 1.4rem; }
}

/* =========================
   PÁGINAS: CONTATO E SOBRE
========================= */
/* UNIFICADO: Removida a duplicidade do container */
.contact-container {
    display: flex;
    max-width: 1100px;
    margin: 60px auto;
    gap: 50px;
    padding: 0 20px;
    align-items: flex-start;
    min-height: 80vh;
}

.contact-welcome {
    flex: 1;
}

.contact-welcome h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.welcome-topics {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.topic-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.topic-icon {
    font-size: 1.5rem;
    background: rgba(15, 23, 42, 0.05);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .topic-icon {
    background: rgba(255, 255, 255, 0.05);
}

.topic-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

.topic-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
}

[data-theme="dark"] .topic-item strong {
    color: var(--accent);
}

.footer-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #94a3b8;
}

/* UNIFICADO: Removida a duplicidade do card de contato */
.contact-box {
    flex: 1;
    width: 100%;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-box h1, .contact-box h2 {
    color: var(--accent);
    margin-bottom: 20px;
}

.contact-box h1 {
    font-size: 2.2rem;
    text-align: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
}

.contact-box p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-main);
}

.contact-box ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.contact-box li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.input-group input, 
.input-group textarea {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg-input);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: var(--accent);
}

.btn-send {
    background-color: var(--accent);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    margin-top: 10px;
}

.btn-send:hover {
    background-color: #2563eb; 
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
        margin: 30px auto;
    }
    .contact-box {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .contact-box h1 { font-size: 1.8rem; }
}

/* ======================
   PÁGINA SOBRE
====================== */
.about-container {
    width: 90%;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.8;
    color: var(--text-main);
}

.about-hero {
    text-align: center;
    margin-bottom: 60px;
}

.about-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.mv-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.mv-card h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.values-section {
    margin-top: 40px;
}

.values-section h2 {
    font-size: 1.8rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 800;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.value-item {
    padding-left: 20px;
    border-left: 4px solid var(--accent);
}

.value-item h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: justify;
}

@media (max-width: 768px) {
    .mv-grid, .values-grid { grid-template-columns: 1fr; }
    .about-hero h1 { font-size: 2rem; }
}

/* =========================
   PÁGINA DE CATÁLOGO
========================= */
.catalog-container {
    padding: 60px 40px 120px 40px; 
    max-width: 1100px;
    margin: 0 auto;
}

.catalog-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 800;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); 
    gap: 60px;
    justify-items: center;
    justify-content: center;
}

.catalog-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
    width: 100%;
}

.catalog-item:hover {
    transform: translateY(-5px);
}

.circle-image {
    width: 80px; 
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--bg-card);
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-item span {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    word-break: break-word; 
}

@media (max-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(6, 1fr); gap: 15px; }
    .circle-image { width: 90px; height: 90px; }
}

@media (max-width: 768px) {
    .catalog-grid { grid-template-columns: repeat(4, 1fr); }
    .catalog-container { padding: 40px 20px 80px 20px; }
}

@media (max-width: 480px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* =========================================================
   ZARDIUS - DESIGN DE ARTIGOS MINIMALISTA
========================================================= */
.article-container {
    max-width: 900px; 
    margin: 60px auto;
    background: var(--bg-card); /* Ajustado para variável ativa */
    padding: 60px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.article-container header { 
    text-align: left;
    margin-bottom: 50px; 
    border-bottom: 1px solid var(--border);
    padding-bottom: 40px;
}

.article-container h1 {
    color: var(--primary);
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.article-container .intro {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 100%;
    line-height: 1.6;
}

.article-container h2 {
    color: var(--primary);
    font-size: 2.2rem; 
    margin: 55px 0 25px;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.article-container h3 {
    color: var(--primary);
    font-size: 1.5rem; 
    margin: 40px 0 20px;
    font-weight: 600;
}

.article-container p { 
    margin-bottom: 28px; 
    font-size: 1.15rem; 
    line-height: 1.85; 
}

.item-list { 
    list-style: none; 
    margin: 35px 0; 
    padding-left: 0;
}

.item-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 22px;
    font-size: 1.15rem;
    line-height: 1.8;
}

.item-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85rem; 
    width: 12px;
    height: 1px;
    background-color: var(--accent);
}

.arbitrage-card, .risk-management {
    padding: 35px;
    border-radius: 8px;
    margin: 40px 0;
    line-height: 1.75;
}

.arbitrage-card h4, .risk-management h4 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 700;
}

.arbitrage-card {
    background-color: rgba(56, 189, 248, 0.05);
    border-left: 4px solid var(--accent);
}

.risk-management {
    background-color: rgba(225, 29, 72, 0.04);
    border-left: 4px solid #e11d48;
}

.table-wrapper {
    width: 100%;
    margin: 50px 0;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background-color: var(--bg-card);
    text-align: left;
    font-size: 1rem; 
}

.data-table th {
    background-color: var(--light-bg);
    color: var(--primary);
    padding: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border);
    letter-spacing: 0.02em;
}

.data-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    line-height: 1.6;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.mentor-section {
    background: var(--light-bg);
    border: 1px solid var(--border);
    padding: 60px;
    border-radius: 12px;
    text-align: center;
    margin-top: 90px;
}

.mentor-section h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.btn-final {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-card);
    padding: 18px 45px;
    border-radius: 6px; 
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 20px;
}

.btn-final:hover {
    background: var(--accent);
    color: #0f172a;
}

.figura-artigo {
    margin: 35px auto;
    text-align: center; 
    display: block;
}

.figura-artigo img {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 280px;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
    border: 1px solid var(--cor-borda); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
}

.legenda-imagem {
    display: block;
    font-size: 14px;
    color: var(--texto-secundario);
    margin-top: 10px;
    font-style: italic;
    line-height: 1.4;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .article-container { 
        padding: 40px 24px; 
        margin: 20px auto;
    }
    .article-container h1 { font-size: 2.4rem; }
    .article-container h2 { font-size: 1.8rem; }
    .mentor-section { padding: 40px 24px; }
}

/* =========================
   FOOTER (RODAPÉ GLOBAL)
========================= */
.main-footer {
    background-color: #0f172a; 
    color: #f1f5f9;
    padding: 60px 5% 20px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    width: 100%;
    margin-top: auto; 
}

[data-theme="dark"] .main-footer {
    background-color: #020617;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-column .footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #a5d8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 15px;
}

.brand-column .footer-tagline {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 360px;
}

.footer-column h3 {
    color: var(--accent); 
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; 
        gap: 30px;
        text-align: center;
    }
    .brand-column .footer-tagline { margin: 0 auto; }
    .footer-column ul li a:hover {
        padding-left: 0; 
        color: var(--accent);
    }
}

/* =========================
   FILTROS DE CATEGORIA
========================= */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 40px auto;
    max-width: 800px;
    flex-wrap: wrap; 
    padding: 0 20px;
}

.filter-btn {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.filter-btn.active {
    background-color: #0f172a; 
    color: #ffffff;
    border-color: #0f172a;
}

[data-theme="dark"] .filter-btn {
    background-color: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

[data-theme="dark"] .filter-btn:hover {
    background-color: #334155;
    color: #ffffff;
}

[data-theme="dark"] .filter-btn.active {
    background-color: #38bdf8; 
    color: #020617;
    border-color: #38bdf8;
}

/* ==========================================================================
   FICHA ANIMAL - DESIGN REUTILIZÁVEL
========================================================================== */
.ficha-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}

.ficha-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.ficha-titulo-grupo {
    flex: 1;
    min-width: 280px;
}

.animal-nome-popular {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 8px 0 4px 0;
    line-height: 1.1;
}

.animal-nome-cientifico {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted); 
}

.animal-classe {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-mamifero { background-color: #fef3c7; color: #d97706; }
.tag-ave { background-color: #e0f2fe; color: #0284c7; }
.tag-reptil { background-color: #dcfce7; color: #16a34a; }
.tag-inseto { background-color: #ffedd5; color: #ea580c; }
.tag-aracnideo { background-color: #fae8ff; color: #a21caf; }

.ficha-status-conservacao {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.status-titulo {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.status-tag {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-ameacada { background-color: #fee2e2; color: #dc2626; }
.status-seguro { background-color: #dcfce7; color: #15803d; }
.status-perigo { background-color: #fee2e2; color: #dc2626; }
.status-atencao { background-color: #fef3c7; color: #d97706; }

.ficha-grid-dados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.dado-card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: var(--bg-card);
}

.dado-card:hover {
    transform: translateY(-2px);
}

.dado-rotulo {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.dado-valor {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.ficha-detalhes h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-left: 4px solid #10b981; 
    padding-left: 12px;
}

.curiosidade-bloco {
    margin-bottom: 28px;
}

.curiosidade-bloco h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.curiosidade-bloco p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* CORREÇÃO DO DARK MODE DA FICHA (Escopo corrigido) */
[data-theme="dark"] .tag-mamifero { background-color: rgba(254, 243, 199, 0.15); color: #fbbf24; }
[data-theme="dark"] .tag-ave { background-color: rgba(224, 242, 254, 0.15); color: #38bdf8; }
[data-theme="dark"] .tag-reptil { background-color: rgba(220, 252, 231, 0.15); color: #4ade80; }
[data-theme="dark"] .tag-inseto { background-color: rgba(255, 237, 213, 0.15); color: #fb923c; }
[data-theme="dark"] .tag-aracnideo { background-color: rgba(250, 232, 255, 0.15); color: #e879f9; }
[data-theme="dark"] .status-ameacada { background-color: rgba(254, 226, 226, 0.15); color: #f87171; }
[data-theme="dark"] .status-perigo { background-color: rgba(254, 226, 226, 0.15); color: #f87171; }
[data-theme="dark"] .status-atencao { background-color: rgba(254, 243, 199, 0.15); color: #fbbf24; }

/* ==========================================
   6. RESPONSIVIDADE EXCLUSIVA (MENU HAMBÚRGUER)
   ========================================== */

/* Garante que o botão hambúrguer fique oculto por padrão no Desktop (PC) */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    /* Faz o botão hambúrguer aparecer e ir para a ponta direita */
    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        order: 3;
    }

    /* Mantém os botões de ação (Tema/Idioma) visíveis no topo e centralizados */
    .actions {
        margin-left: auto;
        margin-right: 15px;
        order: 2;
    }

    /* Transforma o menu de links em uma gaveta vertical oculta */
    .menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-header);
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        order: 4; /* Abre logo abaixo da barra do topo */
    }

    /* Classe injetada pelo JS para abrir a gaveta */
    .menu.active {
        display: flex;
    }

    /* Ajusta os links internos da gaveta para ocuparem a linha toda no mobile */
    .menu > a, .menu .dropbtn {
        width: 100%;
        text-align: left;
        padding: 10px 0;
        font-size: 1.1rem;
        background: none;
        border: none;
    }

    .menu .dropdown {
        width: 100%;
    }

    /* Deixa o submenu do Catálogos estático dentro da gaveta vertical */
    .menu .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        margin-top: 5px;
        border-color: rgba(255, 255, 255, 0.1);
    }

    /* Abre o submenu de Catálogos via clique no mobile */
    .menu .dropdown.open .dropdown-content {
        display: flex;
    }

    /* CORREÇÃO DO IDIOMA NO MOBILE: Mantém a caixinha flutuando certinho abaixo do Globo */
    .actions .lang-content {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        min-width: 160px !important;
    }
    
    .actions .lang-dropdown.open .lang-content {
        display: flex !important;
        flex-direction: column;
    }
}