/*
Theme Name: Conexão Essencial
Theme URI: https://conexaoessencial.online
Author: Gustavo Figueiredo
Author URI: https://conexaoessencial.online
Description: Tema focado em Educação, Tecnologia e Saúde Mental. Inclui Header Fixo, Dark Mode, Skeletons e Apps Pedagógicos.
Version: 1.3
License: GNU General Public License v2 or later
Text Domain: conexao-essencial
Tags: landing-page, education, technology, mental-health, custom-colors, dark-mode, claymorphism
*/

/* --- 1. CONFIGURAÇÃO DE VARIÁVEIS (MODO CLARO E ESCURO) --- */
:root {
    /* Cores Fixas (Brand) */
    --primary: #001F5B;
    --accent: #D4AF37;
    --secondary: #20B2AA;
    
    /* Cores Variáveis (Tema Claro por padrão) */
    --bg-white: #FFFFFF;
    --bg-light: #F4F7F6;
    --text: #333333;
    --text-muted: #666;
    --hero-gradient: linear-gradient(180deg, #f0f4f8 0%, #fff 100%);
    --clay-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
    --skeleton-bg: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
}

[data-theme="dark"] {
    --bg-white: #1a1a1a;
    --bg-light: #121212;
    --text: #e0e0e0;
    --text-muted: #aaaaaa;
    --hero-gradient: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
    --clay-shadow: 8px 8px 16px #0d0d0d, -8px -8px 16px #262626;
    --skeleton-bg: linear-gradient(110deg, #252525 8%, #333333 18%, #252525 33%);
}

/* --- 2. ESTILOS BASE --- */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg-white);
    margin: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background 0.3s ease, color 0.3s ease;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- 3. HEADER & LOGO --- */
.main-header {
    background: var(--bg-white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.logo-link { text-decoration: none; display: inline-block; }

/* --- 4. HERO SECTION --- */
.hero { 
    padding: 100px 0 60px; 
    text-align: center; 
    background: var(--hero-gradient); 
}
.hero h1 { font-size: 2.8rem; color: var(--primary); margin-bottom: 20px; line-height: 1.2; font-weight: 700; }
[data-theme="dark"] .hero h1 { color: var(--secondary); }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; color: var(--text-muted); }

.btn-cta { 
    background: var(--secondary); 
    color: white; 
    padding: 15px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3); 
    transition: 0.3s ease; 
    display: inline-block; 
    border: none; 
    cursor: pointer; 
}
.btn-cta:hover { transform: translateY(-3px); background: #1a948e; }

/* --- 5. AUTHORITY BAR --- */
.authority-bar { 
    background: var(--bg-light); 
    padding: 15px 0; 
    border-top: 1px solid rgba(0,0,0,0.05); 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    text-align: center; 
    font-size: 0.95rem; 
    color: var(--primary); 
    font-weight: 500; 
}
[data-theme="dark"] .authority-bar { color: var(--accent); }

/* --- 6. APP GRID --- */
.section-title { text-align: center; margin: 80px 0 40px; color: var(--primary); font-size: 2rem; }
[data-theme="dark"] .section-title { color: var(--bg-white); }

.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.app-card { 
    background: var(--bg-white); 
    padding: 40px 30px; 
    border-radius: 30px; 
    box-shadow: var(--clay-shadow); 
    border: 1px solid rgba(255,255,255,0.1); 
    text-align: center; 
    transition: 0.3s; 
}
.app-card:hover { transform: translateY(-5px); }
.app-card h3 { color: var(--primary); margin-bottom: 15px; }
[data-theme="dark"] .app-card h3 { color: var(--secondary); }
.app-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }

/* --- 7. BLOG & CONTENT --- */
.blog-preview { margin: 80px auto; }
.blog-preview-card {
    padding: 60px 40px;
    background: var(--bg-light);
    border-radius: 30px;
    border: 2px dashed var(--secondary);
    text-align: center;
    transition: 0.3s ease;
}
[data-theme="dark"] .blog-preview-card {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: var(--clay-shadow);
}

/* Tipografia Avançada para Artigos */
.entry-content {
    line-height: 2.1;
    font-size: 1.15rem;
    hyphens: auto;
    -webkit-hyphens: auto;
}

@media (min-width: 768px) {
    .entry-content {
        text-align: justify;
        text-justify: inter-word;
    }
}

.entry-content p { margin-bottom: 2rem; }

/* --- 8. BOOK HIGHLIGHT --- */
.book-highlight { padding: 100px 0; background: var(--bg-light); }
.book-container { display: flex; align-items: center; gap: 70px; flex-wrap: wrap; }
.book-visual { flex: 1; position: relative; min-width: 300px; text-align: center; }
.amazon-capa { display: inline-block; padding: 10px; background: #fff; border-radius: 10px; box-shadow: 20px 20px 40px rgba(0,0,0,0.1); transition: 0.3s; }
.amazon-capa img { max-width: 100%; height: auto; border-radius: 5px; }
.book-content { flex: 1.3; min-width: 300px; }
.tag-autor { background: rgba(0,31,91,0.08); color: var(--primary); padding: 6px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
[data-theme="dark"] .tag-autor { background: var(--primary); color: white; }
.book-content h2 { font-size: 3rem; color: var(--primary); margin: 20px 0 10px; line-height: 1.1; }
[data-theme="dark"] .book-content h2 { color: var(--bg-white); }
.subtitle { font-size: 1.4rem; color: var(--accent); font-weight: 600; margin-bottom: 30px; }
.benefits-list { list-style: none; padding: 0; margin: 25px 0; }
.benefits-list li { margin-bottom: 12px; font-weight: 500; color: var(--text); }

.btn-amazon { 
    display: inline-block; 
    background: var(--primary); 
    color: #fff !important; 
    padding: 20px 45px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1.1rem; 
    box-shadow: 0 10px 20px rgba(0,31,91,0.2); 
    transition: 0.3s; 
}
.btn-amazon:hover { background: #00153f; transform: translateY(-3px); }

/* --- 9. NEWSLETTER --- */
.newsletter { background: var(--primary); color: white; padding: 80px 40px; border-radius: 40px; text-align: center; margin: 80px 0; }
.newsletter h2 { font-size: 2.2rem; margin-bottom: 15px; color: white; }
.newsletter input { padding: 15px 20px; width: 100%; max-width: 350px; border-radius: 10px; border: none; margin: 10px; font-family: inherit; box-sizing: border-box; }

/* --- 10. SKELETON SCREEN & DARK MODE --- */
.skeleton {
    background: var(--skeleton-bg);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
    border-radius: 10px;
}
@keyframes shine { to { background-position-x: -200%; } }

.dark-mode-toggle-inline {
    background: var(--bg-light);
    border: none;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--clay-shadow);
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.dark-mode-toggle-inline:hover { transform: translateY(-2px); }

/* --- 11. RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .book-container { flex-direction: column; text-align: center; }
    .benefits-list li { text-align: left; }
    .newsletter input { max-width: 100%; margin: 10px 0; }
    .book-content h2 { font-size: 2.2rem; }
    .main-logo { height: 40px; }
}