/*
    SISTEMA: COGNIVUS Ecosystem
    MÓDULO: LexHub Processual (Prática Jurídica & Ensino)
    VERSÃO: v.1.1.0 - descrição prévia: UI de alto impacto com Segoe UI e Tarjas de correlação
    STACK: HTML5, CSS3, JavaScript
    ARQUITETO_E_DESENVOLVEDOR: Luciano P. de Moura
    RESTRIÇÃO: Uso restrito. Propriedade intelectual protegida.
*/

:root {
    --bg-color: #f0f4f8;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --primary-color: #0f172a;
    --accent-color: #0ea5e9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- TIPOGRAFIA MAXIMIZADA --- */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-color);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- TARJAS E TAGS DE CORRELAÇÃO --- */
.tarja {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}
.tarja-urgencia { background: #fef2f2; color: #dc2626; border: 1px solid #f87171; }
.tarja-merito { background: #f0f9ff; color: #0284c7; border: 1px solid #7dd3fc; }
.tarja-processual { background: #fdf4ff; color: #c026d3; border: 1px solid #f0abfc; }
.tarja-destaque { background: #fffbeb; color: #d97706; border: 1px solid #fcd34d; font-size: 1rem; }

/* --- HERO SECTION --- */
.hub-hero {
    background: #0f172a;
    color: white;
    padding: 4rem 2rem;
    border-bottom: 4px solid var(--accent-color);
}
.hub-hero h1 { color: white; }
.hub-hero h1 span { color: var(--accent-color); }
.hub-hero p { font-size: 1.3rem; color: #cbd5e1; max-width: 800px; }

/* Barra de Busca */
.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: 'Segoe UI', sans-serif;
    border: none;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    outline: none;
}
.search-bar:focus { border: 2px solid var(--accent-color); }

/* --- CARDS DE ALTO IMPACTO --- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.hub-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.hub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.card-icon {
    font-size: 2.5rem;
    background: var(--bg-color);
    padding: 10px;
    border-radius: 12px;
}
.hub-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

/* --- ESTILO DAS PEÇAS (RAIO-X) --- */
.peca-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}
.peca-section p, .peca-section li {
    font-size: 1.2rem;
}

/* --- FOOTER INSTITUCIONAL COGNIVUS --- */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    font-size: 0.95rem;
    border-top: 4px solid var(--accent-color);
}
.site-footer strong { color: white; letter-spacing: 1px; }

/* --- CITAÇÕES LEGAIS (NOVO) --- */
.citacao-legal {
    background-color: #f8fafc;
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-family: 'Georgia', serif; 
    color: var(--text-secondary);
    font-size: 1.15rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.citacao-legal strong {
    color: var(--primary-color);
    font-family: 'Segoe UI', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- TELA DE LOGIN (OVERLAY VIA COOKIE) --- */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.98); /* Fundo escuro azulado da Cognivus */
    z-index: 9999; /* Fica por cima de tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

.login-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--accent-color);
}

.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    font-family: 'Segoe UI', sans-serif;
}

.login-card input:focus { border-color: var(--accent-color); }

.login-card button {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Segoe UI', sans-serif;
}

.login-card button:hover { background-color: #0284c7; }

.erro-msg {
    color: #dc2626;
    display: none;
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 600;
}

/* --- POPUP DISCLAIMER ACADÊMICO --- */
.disclaimer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.85); /* Fundo escuro semitransparente */
    z-index: 9998; /* Fica abaixo do login, mas acima do site */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.disclaimer-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-top: 5px solid #d97706; /* Laranja institucional de alerta */
}

.disclaimer-card h3 {
    color: #d97706;
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.disclaimer-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.disclaimer-card button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.disclaimer-card button:hover { background-color: #1e293b; }

/* --- BANNER DE COOKIES (LGPD) --- */
.cookie-banner {
    position: fixed;
    bottom: -150px; /* Escondido por padrão para animação de subida */
    left: 0;
    width: 100%;
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 15px 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    z-index: 9997;
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-banner.show {
    bottom: 0; /* Classe que o JS vai injetar para fazer o banner subir */
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 60%;
}

.cookie-banner button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.3s;
    white-space: nowrap;
}

.cookie-banner button:hover { background-color: #0284c7; }
