/*
Theme Name: Análise Amorosa
Theme URI: https://seusite.com/analise-amorosa
Author: Fran Azure
Author URI: https://seusite.com
Description: Tema WordPress da plataforma "Análise de Saúde do Relacionamento" — quiz emocional estratégico com perfis, gráfico radar, integração com Google Sheets e insight por IA (Gemini). Reescrito de forma nativa (PHP + JS), totalmente configurável pelo Customizer.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: analise-amorosa
*/

/* ══════════════════════════════════════════════════════════
   VARIÁVEIS — paleta original (brand bordô + dourado)
══════════════════════════════════════════════════════════ */
:root {
    --brand-50:  #FAF8F5;
    --brand-100: #F4F1EC;
    --brand-200: #EAE5DE;
    --brand-300: #D6CFC7;
    --brand-400: #C6A664;
    --brand-500: #7A1E2B;
    --brand-600: #631823;
    --brand-700: #4A1F26;
    --brand-800: #3D151B;
    --brand-900: #2A0E12;
    --neutral-400: #A8A29E;
    --neutral-600: #6F6A65;
    --neutral-700: #44403C;
    --neutral-850: #292524;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', 'Lato', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--brand-50);
    color: var(--neutral-850);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

.luxury-shadow { box-shadow: 0 4px 20px -5px rgba(122, 30, 43, 0.05); }

/* ══════════════════════════════════════════════════════════
   ANIMAÇÕES
══════════════════════════════════════════════════════════ */
@keyframes aaFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes aaSlideUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes aaSpin { to { transform: rotate(360deg); } }
@keyframes aaVibrant {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(122,30,43,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 35px rgba(122,30,43,0.6); }
}
.aa-fade-in { animation: aaFadeIn 1.2s ease-out forwards; }
.aa-slide-up { animation: aaSlideUp 0.8s ease-out forwards; }
.aa-vibrant { animation: aaVibrant 2s infinite ease-in-out; }

/* ══════════════════════════════════════════════════════════
   LAYOUT BÁSICO / TELAS
══════════════════════════════════════════════════════════ */
.aa-wrap {
    font-family: var(--font-sans);
    color: var(--neutral-850);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.aa-flex-grow { flex-grow: 1; }
.aa-screen { display: none; }
.aa-screen.active { display: block; }

.aa-center-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 4rem 1.5rem;
    text-align: center;
}
.aa-container-sm { max-width: 28rem; margin: 0 auto; }
.aa-container-md { max-width: 32rem; margin: 0 auto; }
.aa-container-lg { max-width: 36rem; margin: 0 auto; }

/* ── Tipografia ── */
.aa-serif { font-family: var(--font-serif); }
.aa-italic { font-style: italic; }
.aa-title-hero {
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, 6vw, 4.5rem);
    color: var(--brand-500);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    line-height: 1.05;
}
.aa-lead {
    color: var(--neutral-600);
    font-size: 1.125rem;
    font-weight: 300;
    max-width: 36rem;
    margin: 0 auto 1rem;
    line-height: 1.7;
    opacity: 0.85;
}
.aa-subtle {
    color: var(--neutral-400);
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 4rem;
}
.aa-eyebrow {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--neutral-400);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}
.aa-heart { color: var(--brand-400); margin-bottom: 2rem; opacity: 0.6; }

/* ── Botões ── */
.aa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.25s ease;
    text-decoration: none;
}
.aa-btn:active { transform: scale(0.95); }
.aa-btn-primary {
    background-color: var(--brand-500);
    color: var(--brand-50);
    padding: 1rem 2rem;
    box-shadow: 0 10px 25px -5px rgba(122,30,43,0.2);
}
.aa-btn-primary:hover { background-color: var(--brand-600); }
.aa-btn-hero {
    width: 100%;
    max-width: 340px;
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
}
.aa-btn-block { width: 100%; }
.aa-btn-disabled, .aa-btn:disabled {
    background-color: var(--brand-200) !important;
    color: var(--neutral-400) !important;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}
.aa-btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    padding: 1rem 2rem;
    width: 100%;
}
.aa-btn-book {
    background-color: var(--brand-700);
    color: var(--brand-50);
    padding: 1.25rem 2.5rem;
}
.aa-btn-book:hover { background-color: var(--brand-900); }

.aa-icon { display: inline-block; vertical-align: middle; }
.aa-icon-mr { margin-right: 0.75rem; }

/* ── Cadastro / formulário ── */
.aa-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid var(--brand-100);
}
.aa-form-group { margin-bottom: 1.5rem; }
.aa-label {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--neutral-400);
    margin-bottom: 0.25rem;
}
.aa-input, .aa-select {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid var(--brand-100);
    background: transparent;
    outline: none;
    font-weight: 300;
    color: var(--neutral-600);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}
.aa-input:focus, .aa-select:focus { border-color: var(--brand-500); }
.aa-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* ── Seleção de gênero ── */
.aa-gender-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.aa-gender-btn {
    padding: 3rem;
    border-radius: 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--brand-50);
    border: none;
    transition: background-color 0.2s ease;
}
.aa-gender-btn span {
    display: block;
    margin-bottom: 0.25rem;
    opacity: 0.5;
    font-style: italic;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.aa-gender-female { background-color: #8B1E2D; }
.aa-gender-female:hover { background-color: var(--brand-500); }
.aa-gender-male { background-color: #3F3F44; }
.aa-gender-male:hover { background-color: #2F2F34; }

/* ── Saudação do usuário ── */
.aa-greeting {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}
.aa-greeting span.label {
    color: var(--brand-500);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    letter-spacing: 0.025em;
    opacity: 0.9;
    text-transform: uppercase;
}
.aa-greeting span.name {
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--brand-700);
}

/* ── Quiz ── */
.aa-quiz-wrap { max-width: 42rem; margin: 0 auto; padding: 3rem 1.5rem; }
.aa-progress-track {
    width: 100%;
    background: var(--brand-100);
    height: 4px;
    border-radius: 9999px;
    overflow: hidden;
}
.aa-progress-bar {
    background: var(--brand-500);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.7s ease;
    width: 0%;
}
.aa-block-title {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-500);
    font-weight: 700;
    opacity: 0.6;
}
.aa-question-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    color: var(--neutral-850);
    margin-bottom: 2rem;
    line-height: 1.3;
    text-align: center;
}
.aa-options { display: grid; gap: 0.75rem; margin-bottom: 2rem; width: 100%; max-width: 28rem; }
.aa-option {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--brand-100);
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.aa-option:hover { border-color: var(--brand-500); }
.aa-option .opt-label {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--neutral-700);
}
.aa-option .opt-radio {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--brand-200);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: all 0.2s ease;
}
.aa-option.selected {
    border-color: var(--brand-500);
    background: rgba(250,248,245,0.5);
    box-shadow: 0 0 0 1px var(--brand-500);
}
.aa-option.selected .opt-label { color: var(--brand-600); font-weight: 500; }
.aa-option.selected .opt-radio { background: var(--brand-500); border-color: var(--brand-500); }

.aa-reflection { border-top: 1px solid var(--brand-50); padding-top: 1.5rem; width: 100%; max-width: 28rem; margin-bottom: 2rem; }
.aa-reflection label {
    display: block; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.15em;
    font-weight: 700; color: var(--brand-400); margin-bottom: 0.5rem; margin-left: 0.25rem;
}
.aa-textarea {
    width: 100%; padding: 1rem; border-radius: 0.75rem; border: 1px solid var(--brand-100);
    background: rgba(255,255,255,0.5); outline: none; font-family: inherit; font-weight: 300;
    font-size: 0.875rem; min-height: 80px; resize: none; transition: border-color 0.2s ease;
}
.aa-textarea:focus { border-color: var(--brand-400); }

/* ── Transição / Interstício ── */
.aa-divider-v { width: 1px; height: 4rem; background: var(--brand-200); margin-bottom: 2.5rem; opacity: 0.3; }
.aa-transition-quote {
    color: var(--neutral-600);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 4rem;
    padding: 0 1.5rem;
}
.aa-interstitial-body {
    font-size: 1.0625rem; color: var(--neutral-600); font-weight: 300; line-height: 1.7;
    margin-bottom: 3rem; padding: 0 1.5rem; text-align: justify;
}
.aa-interstitial-body p { margin-bottom: 1.5rem; }

/* ── Processamento ── */
.aa-spinner {
    width: 4rem; height: 4rem;
    border: 4px solid var(--brand-100);
    border-top-color: var(--brand-500);
    border-radius: 9999px;
    animation: aaSpin 1s linear infinite;
    margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════════════════════════
   RESULTADO
══════════════════════════════════════════════════════════ */
.aa-result { background: var(--brand-50); padding-bottom: 6rem; }
.aa-result-header {
    background: #fff; padding: 6rem 1.5rem 5rem;
    border-bottom-left-radius: 4rem; border-bottom-right-radius: 4rem;
    border-bottom: 1px solid var(--brand-100); margin-bottom: 3rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04); text-align: center;
}
.aa-result-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    color: var(--brand-500); font-weight: 500; margin-bottom: 3rem;
}
.aa-chart-card {
    max-width: 36rem; margin: 0 auto 3rem;
    background: #fff; border-radius: 1.5rem; padding: 2rem;
    border: 1px solid var(--brand-50); box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.aa-chart-canvas-wrap { width: 100%; height: 18rem; }
.aa-result-main { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.aa-section {
    background: #fff; padding: 2.5rem; border-radius: 1.5rem; margin-bottom: 3rem;
    border: 1px solid var(--brand-100); box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.aa-ess-risk-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
.aa-ess-box { background: var(--brand-50); padding: 2rem; border-radius: 1rem; }
.aa-risk-box { background: var(--stone-50); padding: 2rem; border-radius: 1rem; }
.aa-box-label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; display: block; margin-bottom: 0.75rem; }
.aa-ess-box .aa-box-label { color: var(--brand-400); }
.aa-risk-box .aa-box-label { color: var(--neutral-400); }
.aa-ess-box p, .aa-risk-box p {
    font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.6;
    white-space: pre-line; text-align: justify;
}
.aa-ess-box p { color: var(--brand-700); }
.aa-risk-box p { color: var(--neutral-700); }
.aa-prose { color: var(--neutral-700); font-size: 1.125rem; line-height: 1.7; font-weight: 300; text-align: justify; }
.aa-prose p { margin-bottom: 1.5rem; }

.aa-sexual-section { padding: 2.5rem; border-radius: 1.5rem; margin-bottom: 3rem; border: 1px solid var(--brand-100); }
.aa-sexual-green { background: rgba(236,253,245,0.5); border-color: var(--emerald-100); }
.aa-sexual-default { background: var(--brand-50); border-color: var(--brand-100); }
.aa-sexual-title { font-family: var(--font-serif); font-size: 1.875rem; color: var(--neutral-850); margin-bottom: 2rem; }

.aa-lock-band {
    width: 100%; background: var(--brand-500); padding: 1rem 1.5rem; margin: 1.5rem 0;
    border-radius: 0.375rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border: 1px solid var(--brand-600);
}
.aa-lock-band p { color: var(--brand-50); font-size: 0.8125rem; font-weight: 800; text-align: center; letter-spacing: 0.1em; text-transform: uppercase; }

.aa-insight-section {
    background: #fff; padding: 3rem; border-radius: 1.5rem; margin-bottom: 3rem;
    border: 1px solid var(--brand-50); text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    font-style: italic; font-size: clamp(1.25rem, 3vw, 1.5rem); font-family: var(--font-serif);
    color: var(--neutral-700); line-height: 1.6;
}

.aa-book-section {
    background: var(--stone-100); border-radius: 1.5rem; padding: 2.5rem; border: 1px solid var(--brand-100);
    margin-bottom: 5rem; display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); position: relative; overflow: hidden;
}
.aa-book-content { flex: 1; text-align: center; }
.aa-book-content h3 { font-size: 1.875rem; font-family: var(--font-serif); color: var(--brand-700); margin-bottom: 1.5rem; line-height: 1.2; }
.aa-book-content p { color: var(--neutral-600); font-weight: 300; line-height: 1.7; margin-bottom: 2rem; text-align: justify; }
.aa-book-cover {
    width: 12rem; height: 16rem; background-color: #1e1e1e; border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); display: flex; flex-direction: column;
    align-items: center; justify-content: space-between; padding: 1.5rem;
    border-left: 4px solid var(--brand-400); flex-shrink: 0; transform: rotate(2deg);
}
.aa-book-cover h2 { color: #fff; font-family: var(--font-serif); font-size: 1.5rem; line-height: 0.9; margin-bottom: 0.5rem; text-align: center; }
.aa-book-cover .author { color: var(--brand-400); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }

.aa-actions { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 0 1rem; max-width: 32rem; margin: 0 auto 3rem; }

/* ══════════════════════════════════════════════════════════
   MODAL (privacidade / termos)
══════════════════════════════════════════════════════════ */
.aa-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 100;
    align-items: center; justify-content: center; padding: 1.5rem;
    background: rgba(41,37,36,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.aa-modal-overlay.active { display: flex; animation: aaFadeIn 0.3s ease both; }
.aa-modal {
    background: #fff; width: 100%; max-width: 32rem; border-radius: 1.5rem; padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border: 1px solid var(--brand-50);
    overflow-y: auto; max-height: 90vh; animation: aaSlideUp 0.4s ease both;
}
.aa-modal h3 { font-size: 1.5rem; font-family: var(--font-serif); color: var(--brand-700); margin-bottom: 1.5rem; }
.aa-modal-body { color: var(--neutral-600); font-weight: 300; line-height: 1.7; margin-bottom: 2.5rem; font-size: 0.875rem; white-space: pre-line; text-align: justify; }

/* ══════════════════════════════════════════════════════════
   RODAPÉ LEGAL
══════════════════════════════════════════════════════════ */
.aa-legal-footer { width: 100%; margin-top: auto; }
.aa-legal-notice { background: var(--brand-500); width: 100%; padding: 1.25rem 1.5rem; }
.aa-legal-notice p {
    max-width: 56rem; margin: 0 auto; text-align: center;
    font-size: 0.75rem; color: var(--brand-50); font-weight: 300; line-height: 1.6; letter-spacing: 0.025em;
}
.aa-legal-links { width: 100%; padding: 0.75rem 0; display: flex; justify-content: center; gap: 1.5rem; background: rgba(250,248,245,0.5); }
.aa-legal-links button {
    background: none; border: none; font-size: 0.625rem; color: var(--neutral-400);
    transition: color 0.2s ease; text-underline-offset: 4px;
}
.aa-legal-links button:hover { color: var(--brand-500); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .aa-gender-grid { grid-template-columns: 1fr 1fr; }
    .aa-ess-risk-grid { grid-template-columns: 1fr 1fr; }
    .aa-book-section { flex-direction: row; }
    .aa-book-content { text-align: left; }
    .aa-section { padding: 4rem; }
    .aa-sexual-section { padding: 4rem; }
}

/* ══════════════════════════════════════════════════════════
   STORIES — botão circular + viewer (imagens e vídeos)
══════════════════════════════════════════════════════════ */
.aa-story-circle {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
    margin-bottom: 2rem; -webkit-tap-highlight-color: transparent;
    animation: aaStoryFloat 3s ease-in-out infinite;
}
@keyframes aaStoryFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.aa-story-circle-ring {
    width: 210px; height: 210px; border-radius: 50%;
    padding: 6px; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle, transparent 64%, var(--brand-500) 64%),
        conic-gradient(from 0deg, var(--brand-500), var(--brand-400), var(--brand-700), var(--brand-500));
    box-shadow: 0 10px 40px rgba(122,30,43,0.3);
}
.aa-story-circle-inner {
    width: 100%; height: 100%; border-radius: 50%;
    background: var(--brand-100) center/cover no-repeat;
    border: 5px solid var(--brand-50);
    display: flex; align-items: center; justify-content: center;
}
.aa-story-circle-inner:not(.has-img)::before { content: '\25B6'; color: var(--brand-500); font-size: 2.6rem; }
.aa-story-circle-label {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 22px; border-radius: 100px;
    background: var(--brand-500); color: var(--brand-50);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(122,30,43,0.35); margin-top: -1.6rem; position: relative; z-index: 2;
}
.aa-story-circle-label::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-400); animation: aaPulse 1.6s infinite;
}
@keyframes aaPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }

/* Stories no resultado: centraliza o botão */
.aa-story-circle-result { margin: 0 auto 2.5rem; }

@media (min-width: 480px) {
    .aa-story-circle-ring { width: 240px; height: 240px; }
}

.aa-start-wait {
    margin-top: 1.5rem; font-size: 0.8rem; color: var(--neutral-400);
    font-style: italic; min-height: 1.2em;
}

/* Overlay do viewer */
.aa-stories-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.94);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.aa-stories-overlay.open { opacity: 1; visibility: visible; pointer-events: all; }
.aa-stories-box {
    position: relative; width: 100%; max-width: 440px;
    height: 100vh; height: 100dvh; background: #000;
    display: flex; flex-direction: column; overflow: hidden;
}
.aa-stories-progress { display: flex; gap: 4px; padding: 12px 12px 6px; position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.aa-stories-progress-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.3); overflow: hidden; }
.aa-stories-progress-fill { height: 100%; width: 0; background: #fff; border-radius: 2px; }
.aa-stories-progress-bar.done .aa-stories-progress-fill { width: 100%; }
.aa-stories-progress-bar.active .aa-stories-progress-fill { animation: aaStoryFill 5s linear forwards; }
/* Vídeos não têm barra animada por tempo (avançam no toque) */
.aa-stories-progress-bar.active[data-type="youtube"] .aa-stories-progress-fill { animation: none; width: 40%; opacity: 0.7; }
@keyframes aaStoryFill { from { width: 0; } to { width: 100%; } }

.aa-stories-top {
    position: absolute; top: 22px; left: 0; right: 0; z-index: 11;
    display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}
.aa-stories-author { display: flex; align-items: center; gap: 9px; }
.aa-stories-author-av {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--brand-400) center/cover no-repeat; border: 2px solid var(--brand-400);
    display: inline-block;
}
.aa-stories-author-nm { font-size: 0.82rem; font-weight: 700; color: #fff; }
.aa-stories-close {
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.15); color: #fff; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.aa-story-slide { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: #000; }
.aa-story-slide.active { display: flex; }
.aa-story-slide img { width: 100%; height: 100%; object-fit: cover; }
.aa-story-video { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.aa-story-video iframe { width: 100%; height: 100%; border: 0; }
.aa-story-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 60px 20px 32px; z-index: 7;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.aa-story-caption-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.aa-story-caption-desc { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.5; }
.aa-story-nav { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 8; cursor: pointer; }
.aa-story-nav-prev { left: 0; }
.aa-story-nav-next { right: 0; }
/* Sobre vídeos, deixa o centro livre para os controles do player */
.aa-story-slide:has(.aa-story-video) ~ .aa-story-nav { width: 18%; }

/* ══════════════════════════════════════════════════════════
   IMPRESSÃO / PDF — mostra apenas o relatório dedicado (#aa-report)
══════════════════════════════════════════════════════════ */
.aa-prose-full { display: none; }
#aa-report { display: none; }

@media print {
    /* Esconde a interface do app, mantém apenas o relatório. */
    .aa-wrap,
    .aa-modal-overlay,
    .aa-stories-overlay,
    .aa-story-circle { display: none !important; }

    #aa-report {
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
    }
    html, body, #page, #content {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        display: block !important;
    }
    @page { margin: 16mm 14mm; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .aa-page-break { page-break-before: always; }
    .aa-report-section { page-break-inside: avoid; }
}

/* ── Estilos do relatório (usados na impressão) ── */
.aa-report-head { text-align: center; border-bottom: 2px solid var(--brand-500); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.aa-report-site { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--brand-400); font-weight: 700; }
.aa-report-h1 { font-family: var(--font-serif); font-size: 2rem; color: var(--brand-500); margin: 0.75rem 0 0.25rem; }
.aa-report-meta { font-size: 0.8rem; color: var(--neutral-600); margin-top: 0.5rem; line-height: 1.6; }
.aa-report-meta strong { color: var(--brand-700); }
.aa-report-section { margin-bottom: 1.75rem; }
.aa-report-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-400); display: block; margin-bottom: 0.4rem; }
.aa-report-profile-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brand-700); margin-bottom: 0.75rem; }
.aa-report-section p { font-size: 0.95rem; line-height: 1.65; color: var(--neutral-850); text-align: justify; margin-bottom: 0.75rem; white-space: pre-line; }
.aa-report-scores { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.aa-report-scores td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--brand-100); font-size: 0.85rem; color: var(--neutral-700); }
.aa-report-scores td:last-child { text-align: right; font-weight: 700; color: var(--brand-600); }
.aa-report-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--brand-200); font-size: 0.7rem; color: var(--neutral-400); text-align: center; line-height: 1.6; }

