/* ===================================================================
   GROOT PESQUISA - SISTEMA DE DESIGN v2.1 (Premium com Cores de Marca)
   =================================================================== */

/* -------------------------------------------------------------------
   1. Variáveis CSS (Tokens)
   ------------------------------------------------------------------- */
:root {
    /* ... (variáveis primárias e neutras mantidas) ... */
    --primary-100: #EAE2F8; --primary-400: #AC8AE4; --primary-600: #7A4EDA; --primary-700: #5F39B6; --primary-900: #301C62;
    --neutral-100: #F8F9FA; --neutral-200: #E9ECEF; --neutral-300: #DEE2E6; --neutral-500: #ADB5BD; --neutral-700: #495057; --neutral-900: #212529;
    
    /* CORES DE MARCA DAS LINGUAGENS */
    --color-js: #f7df1e;
    --color-css: #264de4;
    --color-html: #e34c26;

    /* ... (espaçamento, raio e z-index mantidos) ... */
    --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 48px; --space-6: 64px;
    --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px; --radius-full: 9999px;
    --z-index-background: -1; --z-index-main: 1; --z-index-header: 100; --z-index-popup: 200;

    /* Sombras (Sistema de Elevação) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transições */
    --transition-speed: 0.3s;
}

/* ... (Animações, Estilos Gerais e Fundo mantidos como antes) ... */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gradientAnimation { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes logoAnimation { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -468px 0; } 100% { background-position: 468px 0; } }
body { font-family: 'Chakra Petch', sans-serif; background-color: var(--neutral-900); color: var(--neutral-100); font-size: 16px; line-height: 1.5; margin: 0; display: flex; flex-direction: column; min-height: 100vh; position: relative; overflow-x: hidden; animation: fadeIn 0.5s ease-in-out; }
.background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: var(--z-index-background); overflow: hidden; }
.background-image { width: 100%; height: 100%; background-image: url('/img/background-jadson.jpg'); background-size: cover; background-position: center; filter: blur(20px) saturate(1.2); }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, hsla(297, 86%, 57%, 0.1), hsla(260, 59%, 33%, 0.3), hsla(183, 72%, 52%, 0.1)); animation: gradientAnimation 15s linear infinite; }
.overlay::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); opacity: 0.15; }
main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: var(--space-6) var(--space-3); z-index: var(--z-index-main); margin-top: 80px; }
h1, h2, h3 { font-family: 'Chakra Petch', sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--neutral-100); text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
h1 { font-size: 2.31rem; } h2 { font-size: 1.88rem; margin-bottom: var(--space-4); } h3 { font-size: 1.5rem; }

/* ... (Cabeçalho e Pesquisa mantidos como antes) ... */
.header-background { background: rgba(30, 25, 45, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--shadow-md); padding: var(--space-2) var(--space-4); position: fixed; top: 0; width: 100%; z-index: var(--z-index-header); display: flex; justify-content: center; align-items: center; height: 40px; }
header nav a { color: var(--neutral-100); text-decoration: none; font-size: 0.94rem; font-weight: 600; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); transition: all var(--transition-speed) ease; }
header nav a:hover, header nav a:focus { background-color: rgba(122, 78, 218, 0.3); color: white; }
header nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); }
.pesquisar-bar { display: flex; align-items: center; background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-full); box-shadow: var(--shadow-xl); padding: var(--space-1); width: 100%; transition: box-shadow var(--transition-speed) ease; max-width: 500px; }
.pesquisar-bar input { color: var(--neutral-100); flex: 1; border: none; outline: none; font-size: 1rem; padding: var(--space-2) var(--space-3); background-color: transparent; }
.pesquisar-bar input::placeholder { color: rgba(233, 236, 239, 0.6); }
.pesquisar-container { display: flex; flex-direction: column; align-items: center; margin-bottom: var(--space-5); text-align: center; width: 100%;}
.logo-groot { width: 150px; margin-bottom: var(--space-3); animation: logoAnimation 4s ease-in-out infinite; }

/* -------------------------------------------------------------------
   6. CARDS DE ARTIGO (Com Cores de Marca)
   ------------------------------------------------------------------- */
.artigos-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); width: 100%; max-width: 1200px; }

.artigo {
    background-color: #2b2a33; /* Fundo unificado para a parte de conteúdo */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden; /* Garante que o raio da borda se aplique ao header */
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.artigo:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.artigo-header {
    padding: var(--space-4) var(--space-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

/* Cores de fundo específicas para cada linguagem */
.artigo-header.js { background-color: var(--color-js); }
.artigo-header.css { background-color: var(--color-css); }
.artigo-header.html { background-color: var(--color-html); }

.artigo-header-icon {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-2);
}
.artigo-header-icon.js-icon { filter: brightness(0) saturate(100%); } /* Deixa o ícone JS preto */

.artigo-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900); /* Texto escuro para fundos claros */
}

/* O ícone do HTML e CSS já são brancos, não precisam de filtro */
.artigo-header.js .artigo-header-title { color: var(--neutral-900); }
.artigo-header.css .artigo-header-title, 
.artigo-header.html .artigo-header-title {
    color: var(--neutral-100);
}

.artigo-conteudo {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz o conteúdo crescer e empurra o botão para baixo */
}

.artigo-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 var(--space-1) 0;
    color: var(--neutral-100);
}

.artigo-descricao {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--neutral-300);
    margin-bottom: var(--space-3);
    flex-grow: 1;
}

.leia-mais {
    background-color: var(--primary-600);
    /* ... (outros estilos do leia-mais mantidos) ... */
    font-size: 0.94rem; font-weight: 600; line-height: 1.4; color: #fff; text-decoration: none; padding: 12px var(--space-2); border-radius: var(--radius-sm); text-align: center; transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease; align-self: flex-start;
}
.leia-mais:hover { background-color: var(--primary-700); }

/* ... (Popups, Rodapé e outros estilos mantidos) ... */
.popup { background-color: rgba(20, 10, 30, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: none; justify-content: center; align-items: center; z-index: var(--z-index-popup); animation: fadeIn 0.3s ease;}
.popup-content { background-color: rgba(43, 37, 63, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: var(--space-4); width: 100%; max-width: 600px; position: relative; color: var(--neutral-200); }
.popup-artigo-content h3 { color: var(--primary-100); }
.popup-artigo-content p { color: var(--neutral-300); }
.footer-background { background: transparent; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: var(--space-3) var(--space-4); color: var(--neutral-200); text-align: center; box-shadow: none; }
