/* =========================================
   CSS GLOBAL - SUBTITLE AI (DESIGN PREMIUM)
   ========================================= */

:root, [data-theme="light"] {
    --bg-base: #f8fafc; 
    --bg-panel: rgba(255, 255, 255, 0.85); 
    --text-main: #0f172a; 
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.08); 
    --input-bg: #ffffff; 
    --header-bg: rgba(248, 250, 252, 0.9); 
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%); 
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --shadow: rgba(139, 92, 246, 0.08); 
    --accent-color: #8b5cf6;
    --code-bg: #1e293b;
    --code-text: #f8fafc;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body { 
    background-color: var(--bg-base); color: var(--text-main); display: flex; flex-direction: column; min-height: 100vh; 
    transition: background-color 0.3s, color 0.3s; 
    position: relative; overflow-x: hidden; line-height: 1.5;
    
    /* ONDA 3D GLOBAL */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%238b5cf6' stop-opacity='0.3'/%3E%3Cstop offset='100%25' stop-color='%238b5cf6' stop-opacity='0.05'/%3E%3C/linearGradient%3E%3ClinearGradient id='g2' x1='100%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%233b82f6' stop-opacity='0.25'/%3E%3Cstop offset='100%25' stop-color='%233b82f6' stop-opacity='0.05'/%3E%3C/linearGradient%3E%3ClinearGradient id='g3' x1='0%25' y1='100%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23ec4899' stop-opacity='0.2'/%3E%3Cstop offset='100%25' stop-color='%23ec4899' stop-opacity='0.02'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g3)' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,165.3C960,149,1056,171,1152,192C1248,213,1344,235,1392,245.3L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3Cpath fill='url(%23g2)' d='M0,256L48,234.7C96,213,192,171,288,165.3C384,160,480,192,576,208C672,224,768,224,864,202.7C960,181,1056,139,1152,128C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3Cpath fill='url(%23g1)' d='M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,128C960,139,1056,181,1152,186.7C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 350px;
    background-position: top center;
}

/* CABEÇALHO */
header { 
    background-color: var(--header-bg); padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); 
}
.logo { 
    font-size: 24px; 
    font-weight: 800; 
    letter-spacing: -0.5px; 
    background: var(--gradient-primary); 
    background-clip: text; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    text-decoration: none; 
    
    /* ADICIONADO PARA NÃO CORTAR AS LETRAS MAIÚSCULAS */
    line-height: 1.2;
    padding-bottom: 2px;
}

/* MANTÉM O TEXTO JUNTO E SEM ESPAÇO */
.texto-logo {
    display: flex;
    align-items: center;
}

/* CLASSE PARA DEIXAR O "AI-" CINZA E SEM NEGRITO */
.texto-ai {
    color: var(--text-muted) !important; 
    -webkit-text-fill-color: var(--text-muted) !important; 
    font-weight: 400 !important; 
}

.btn-back { color: var(--text-main); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.btn-back:hover { color: var(--accent-color); }
.lang-selector select { padding: 6px 12px; border-radius: 50px; border: 1px solid var(--border-color); background: var(--bg-panel); color: var(--text-main); cursor: pointer; outline: none; font-weight: 600; font-size: 14px; transition: 0.3s; }

/* CONTEÚDO PRINCIPAL */
.main-content { max-width: 800px; margin: 30px auto 60px; padding: 0 20px; text-align: center; flex: 1; width: 100%; position: relative; z-index: 2; }
.content-page { max-width: 800px; margin: 40px auto; padding: 0 20px; flex: 1; position: relative; z-index: 1; text-align: left; }

/* PROVA SOCIAL */
.social-proof { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.avatar-group { display: flex; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg-base); background-color: #cbd5e1; margin-left: -10px; background-size: cover; background-position: center; }
.avatar:first-child { margin-left: 0; }
.av1 { background-image: url('https://randomuser.me/api/portraits/women/44.jpg'); }
.av2 { background-image: url('https://randomuser.me/api/portraits/men/32.jpg'); }
.av3 { background-image: url('https://randomuser.me/api/portraits/women/68.jpg'); }
.av4 { background-image: url('https://randomuser.me/api/portraits/men/75.jpg'); }

/* TÍTULOS E TEXTOS */
h1 { font-size: 42px; font-weight: 800; margin-bottom: 15px; letter-spacing: -1.5px; line-height: 1.1; }
.content-page h1 { font-size: 36px; margin-bottom: 20px; }
h2 { font-size: 24px; color: var(--accent-color); margin-top: 30px; margin-bottom: 15px; font-weight: 700; }
p { color: var(--text-muted); margin-bottom: 20px; font-size: 16px; }
strong { color: var(--text-main); }
pre { background: var(--code-bg); padding: 15px; border-radius: 8px; overflow-x: auto; color: var(--code-text); font-family: monospace; margin-bottom: 15px; border: 1px solid var(--border-color); }

/* CLASSE DO GRADIENTE */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800; 
}

/* BOTÕES */
.btn-primary { background: var(--gradient-primary); color: #fff; padding: 16px 40px; font-size: 16px; border: none; cursor: pointer; border-radius: 50px; font-weight: 700; transition: 0.3s; display: inline-block; text-decoration: none; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5); }
.btn-secondary { background: transparent; color: var(--text-muted); padding: 14px 30px; font-size: 14px; border: 1px solid var(--border-color); border-radius: 50px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-secondary:hover { background: var(--border-color); color: var(--text-main); }

/* CARDS (Artigos) */
.article-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px; margin-bottom: 20px; transition: 0.3s; text-decoration: none; display: block; color: inherit; backdrop-filter: blur(10px); }
.article-card:hover { border-color: var(--accent-color); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.article-card h2 { color: var(--accent-color); margin-top: 0; margin-bottom: 10px; font-size: 20px; }
.article-card p { font-size: 15px; margin-bottom: 0; }

/* WIZARD (Ferramenta) - EFEITO VIDRO REAL */
.wizard-box { 
    background: rgba(240, 244, 255, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.6); 
    border-radius: 24px; 
    padding: 50px 40px; 
    position: relative; 
    min-height: 400px; 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); 
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    transition: all 0.3s; 
    margin-bottom: 40px; 
}
.wizard-box .screen h2 { color: #0f172a; } 
.wizard-box .screen p { color: #475569; }

.steps { position: absolute; top: 25px; right: 25px; display: flex; align-items: center; gap: 15px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.step { display: flex; flex-direction: column; align-items: center; gap: 5px; transition: 0.3s; }
.step-circle { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border-color); display: flex; justify-content: center; align-items: center; background: transparent; color: var(--text-muted); transition: 0.3s; font-size: 13px; }
.step.active .step-circle { border-color: transparent; background: var(--gradient-primary); color: #fff; font-weight: bold; box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); }
.step.active { color: var(--text-main); }
.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.screen h2 { font-size: 26px; color: var(--text-main); margin-top: 0; margin-bottom: 10px; }
.screen p { margin-bottom: 30px; font-size: 15px; }
.select-lang { width: 100%; max-width: 300px; padding: 15px; border: 1px solid var(--border-color); border-radius: 12px; font-size: 15px; background: var(--input-bg); color: var(--text-main); margin-bottom: 30px; outline: none; transition: 0.3s; }
.actions-row { display: flex; justify-content: space-between; margin-top: 30px; align-items: center;}
input[type="file"] { display: none; }

/* OVERLAY DE CARREGAMENTO */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11, 15, 25, 0.4); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 1000; justify-content: center; align-items: center; }
.overlay.active { display: flex; }
.loading-box { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 40px; border-radius: 24px; text-align: center; width: 380px; box-shadow: 0 20px 40px var(--shadow); }
.loading-box h3 { font-size: 20px; margin-bottom: 10px; }
.loading-box p { color: var(--text-muted); margin-bottom: 20px; font-size: 13px; }
.progress-bar-container { width: 100%; height: 6px; background: var(--border-color); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.progress-bar-fill { height: 100%; background: var(--gradient-primary); width: 0%; transition: width 0.3s ease; }
.progress-text { color: var(--accent-color); font-weight: bold; margin-bottom: 20px; font-size: 14px; }
.btn-download { display: inline-block; padding: 14px 30px; background: var(--gradient-secondary); color: white; text-decoration: none; border-radius: 50px; font-weight: bold; font-size: 15px; margin-top: 20px; transition: 0.3s; box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3); }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5); }

/* --- CAIXA DE DOAÇÃO COM GRADIENTE --- */
.donation-banner-box {
    background: linear-gradient(135deg, #6d28d9 0%, #3b82f6 50%, #ec4899 100%);
    border-radius: 24px; padding: 40px; color: white; text-align: left;
    display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
    box-shadow: 0 20px 40px rgba(109, 40, 217, 0.2);
    margin: 40px auto; max-width: 900px; position: relative; overflow: hidden;
}
.donation-banner-box h3 { color: white; font-size: 28px; font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.donation-banner-box p { color: rgba(255, 255, 255, 0.9); font-size: 16px; margin-bottom: 0; max-width: 500px; }
.donation-banner-box .btn-white { background: white; color: #6d28d9; padding: 14px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; transition: 0.3s; }
.donation-banner-box .btn-white:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* FAQ */
.faq-item { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; margin-bottom: 15px; transition: 0.3s; backdrop-filter: blur(10px); }
.faq-item summary { font-weight: 600; color: var(--text-main); cursor: pointer; font-size: 16px; }
.faq-item p { margin-top: 15px; margin-bottom: 0; font-size: 15px; }

/* RODAPÉ */
footer { background-color: var(--bg-base); padding: 40px 40px 20px 40px; border-top: 1px solid var(--border-color); margin-top: auto; position: relative; z-index: 1; }
.footer-container { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.footer-left { display: flex; flex-direction: column; align-items: flex-start; }
.footer-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 5px; }
.footer-right a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.3s; }
.footer-right a:hover { color: var(--accent-color); }

/* --- BANNER FLUTUANTE DE DOAÇÃO --- */
#banner-doacao {
    display: none; position: fixed; bottom: 20px; right: 20px; 
    background: var(--bg-panel); border: 1px solid var(--accent-color); padding: 25px; border-radius: 24px; 
    z-index: 999; box-shadow: 0 10px 30px var(--shadow); width: 380px; max-width: 90%; text-align: left; 
    transition: background-color 0.3s; backdrop-filter: blur(10px);
}