/* ========================================================
   1. VARIÁVEIS E BASE (COGNIVUS)
   ======================================================== */
:root {
    --navy: #0f172a;
    --gold: #c5a861;
    --bg-page: #f4f7f6;
    --text-main: #1e293b;
    --text-note: #64748b;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg-page); color: var(--text-main); line-height: 1.6; }

.executive-bar { background: var(--navy); color: #fff; padding: 1rem 2rem; border-bottom: 3px solid var(--gold); }
.executive-bar a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.2rem; }
.brand-container { display: flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 700; letter-spacing: 1px; }
.project-name { font-weight: 300; color: var(--gold); }

.container { max-width: 1000px; margin: 3rem auto; background: #fff; padding: 4rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* ========================================================
   2. PÁGINAS DE CONTEÚDO (LIVROS E ARTIGOS)
   ======================================================== */
.header-livro { text-align: center; margin-bottom: 3rem; border-bottom: 2px solid var(--navy); padding-bottom: 2rem; }
.header-livro h1 { color: var(--navy); font-size: 1.8rem; margin-bottom: 0.5rem; }
.header-livro h2 { color: var(--text-note); font-weight: 400; font-size: 1.2rem; }

.capitulo-title { text-align: center; color: var(--navy); margin: 3rem 0 2rem 0; font-size: 1.4rem; }

.artigo { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.artigo-texto { font-size: 1.1rem; text-align: justify; }
.artigo-numero { font-weight: 700; color: var(--navy); }

.anotacao { background: #f8fafc; border-left: 4px solid var(--gold); padding: 1rem; font-size: 0.95rem; color: var(--text-note); margin-top: 0.5rem; border-radius: 0 4px 4px 0; }
.anotacao a { color: var(--navy); font-weight: 600; text-decoration: none; transition: color 0.2s; }
.anotacao a:hover { color: var(--gold); text-decoration: underline; }
.tag-cpc73 { display: inline-block; background: #e2e8f0; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--navy); }

/* ========================================================
   3. EFEITO OBSIDIAN: Hover Preview no Sumário
   ======================================================== */
.indice-obsidian { background: #ffffff; padding: 2rem; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 3rem; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.indice-obsidian ul { list-style: none; margin-left: 1rem; }
.indice-obsidian li { margin-bottom: 0.8rem; position: relative; }

.link-preview { text-decoration: none; color: var(--navy); font-weight: 500; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px; }
.link-preview:hover { color: var(--gold); }

.preview-box { visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 2rem; background: #ffffff; border: 1px solid var(--border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15); padding: 1.2rem; border-radius: 8px; width: 350px; z-index: 100; font-size: 0.9rem; color: var(--text-note); transition: opacity 0.3s ease, transform 0.3s ease; transform: translateY(10px); pointer-events: none; border-left: 4px solid var(--gold); }
.preview-box strong { display: block; color: var(--navy); margin-bottom: 0.5rem; font-size: 1rem; }
.link-preview:hover .preview-box { visibility: visible; opacity: 1; transform: translateY(5px); }

/* ========================================================
   4. GOVERNANÇA, CARTÕES E MODAL DISCLAIMER
   ======================================================== */
.info-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.info-card { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); border-top: 4px solid var(--navy); border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.info-card h3 { color: var(--navy); margin-bottom: 1rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.info-card p { color: var(--text-note); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.info-card ul { list-style-type: none; margin-left: 0; }
.info-card ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; color: var(--text-main); font-size: 0.95rem; line-height: 1.5; }
.info-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: bold; }

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.85); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; backdrop-filter: blur(4px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #fff; padding: 2.5rem; border-radius: 12px; max-width: 600px; width: 90%; text-align: left; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border-top: 5px solid var(--gold); }
.modal-content h2 { color: var(--navy); margin-bottom: 1.2rem; font-size: 1.5rem; }
.modal-content p { color: var(--text-note); margin-bottom: 1rem; line-height: 1.6; font-size: 0.95rem; }
.modal-btn { background: var(--navy); color: #fff; border: none; padding: 1rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.3s; width: 100%; margin-top: 1.5rem; }
.modal-btn:hover { background: #1e293b; }