/*
Theme Name: Projeto Incrível
Author: Seu Nome
Description: Um tema leve, focado em leitura e integração com FluentCommunity.
Version: 1.8.0
Text Domain: projeto-incrivel
*/

/* ==========================================================================
   1. VARIÁVEIS E SISTEMA DE CORES (A Fonte da Verdade)
   ========================================================================== */
:root {
    /* --- Cores Base (Modo Claro/Padrão) --- */
    --bg-body: #f5f7fa;
    --bg-card: #ffffff;
    --bg-input: #ffffff;

    --text-main: #1a202c;
    --text-muted: #596d82;
    --text-on-accent: #ffffff;

    --border-color: #e4e7eb;

    /* Marca */
    --color-primary: #0073e6;
    --color-primary-hover: #005bb5;

    /* Dimensões */
    --content-width: 800px;
    --header-height: 80px;

    /* --- Mapeamento para FluentCommunity (Sincronia) --- */
    --fcom-primary-bg: var(--bg-card);
    --fcom-secondary-bg: var(--bg-body);
    --fcom-primary-text: var(--text-main);
    --fcom-secondary-text: var(--text-muted);
    --fcom-primary-border: var(--border-color);
    --fcom-menu-text: var(--text-muted);
    --fcom-menu-text-active: var(--color-primary);
    --fcom-active-bg: #ebf8ff;
    --fcom-primary-button: var(--color-primary);
    --fcom-primary-button-text: var(--text-on-accent);
}

/* --- Cores Modo Escuro (Ativado via html.dark) --- */
html.dark {
    --bg-body: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --bg-input: #0f172a;

    --text-main: #f1f5f9;
    /* Branco Gelo */
    --text-muted: #cbd5e1;
    /* Cinza Claro */

    --border-color: #334155;
    /* Cinza Azulado */

    --color-primary: #38bdf8;
    /* Azul Neon */
    --color-primary-hover: #0ea5e9;

    /* Ajustes FC Dark */
    --fcom-active-bg: rgba(56, 189, 248, 0.15);
}

/* ==========================================================================
   2. RESET GLOBAL E TIPOGRAFIA (Atualizado)
   ========================================================================== */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-size: 16px; /* Base para REM */
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    padding-top: var(--header-height);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- CORREÇÃO DO ERRO "H1UserAgentFontSizeInSection" --- */
/* Definimos tamanhos explícitos para que o navegador não use a lógica obsoleta */

h1, .h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 0.5em; font-weight: 800; }
h2, .h2 { font-size: 2rem;   line-height: 1.3; margin-bottom: 0.5em; font-weight: 700; }
h3, .h3 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 0.5em; font-weight: 600; }
h4, .h4 { font-size: 1.5rem;  line-height: 1.4; margin-bottom: 0.5em; font-weight: 600; }
h5, .h5 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 0.5em; font-weight: 600; }
h6, .h6 { font-size: 1rem;    line-height: 1.4; margin-bottom: 0.5em; font-weight: 600; }

/* Garante a cor correta */
h1, h2, h3, h4, h5, h6, p, li, span, label, legend {
    color: var(--text-main);
}

/* ==========================================================================
   3. FORMULÁRIOS E INPUTS (Estilo Unificado)
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"], 
input[type="date"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    padding: 10px 15px;
    width: 100%;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
}

::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

/* ==========================================================================
   4. CABEÇALHO
   ========================================================================== */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header.is-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.custom-logo-link img {
    max-height: 40px;
    width: auto;
}

/* Navegação Desktop */
.header-main-area {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

.desktop-navigation {
    margin-left: 40px;
}

.desktop-navigation ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-navigation a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.desktop-navigation a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   5. PERFIL DE USUÁRIO & BOTÕES (HEADER)
   ========================================================================== */
.header-user-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
    height: 40px;
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    background-color: var(--bg-body);
}

.guest-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-on-accent) !important;
    /* Força contraste */
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

/* ==========================================================================
   6. CONTROLES MOBILE E MENU (Responsividade)
   ========================================================================== */

/* Padrão Desktop: Esconde tudo mobile */
.mobile-controls,
.mobile-menu-panel {
    display: none;
}

/* Mobile Styles (< 900px) */
@media (max-width: 900px) {

    /* Esconde Desktop */
    .desktop-navigation,
    .header-user-actions.desktop-only {
        display: none !important;
    }

    /* Exibe Controles Mobile */
    .mobile-controls {
        display: flex !important;
        align-items: center;
        gap: 15px;
        margin-left: auto;
        z-index: 1002;
    }

    /* Botão Hambúrguer */
    .hamburger-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        padding: 0;
        gap: 5px;
        cursor: pointer;
    }

    .hamburger-bar {
        width: 24px;
        height: 2px;
        background-color: var(--text-main);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animação do X */
    .hamburger-button.is-active .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-button.is-active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-button.is-active .hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Painel do Menu (Overlay) */
    .mobile-menu-panel {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-card);
        color: var(--text-main);
        z-index: 9999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;

        /* Animação */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    .mobile-menu-panel.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu-close-button {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--text-main);
    }

    .mobile-navigation a {
        font-size: 1.5rem;
        color: var(--text-main);
        font-weight: 600;
        display: block;
        margin: 15px 0;
    }

    .btn-mobile-login {
        display: block;
        width: 100%;
        background-color: var(--color-primary);
        color: #fff;
        padding: 12px;
        border-radius: 8px;
        font-weight: bold;
        text-align: center;
        margin-top: 20px;
    }
}

/* ==========================================================================
   7. SELETOR DE TEMA (DIA/NOITE)
   ========================================================================== */
.theme-toggle {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--text-muted);
}

.theme-toggle svg {
    pointer-events: none;
    width: 22px;
    height: 22px;
}

/* Lógica de Exibição Nativa do FC */
.show_on_dark {
    display: none !important;
}

.show_on_light {
    display: block !important;
}

html.dark .show_on_dark {
    display: block !important;
    color: #fbbf24;
}

html.dark .show_on_light {
    display: none !important;
}


/* ==========================================================================
   8. LAYOUT DO BLOG (CARDS E GRID)
   ========================================================================== */
.archive-hero {
    background-color: var(--text-main);
    /* Inverte no light, mantém escuro no dark? Não, usa var */
    color: var(--bg-card);
    /* Texto invertido */
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

/* Exceção: Se quiser o Hero sempre escuro, use cores fixas */
.archive-hero {
    background-color: #1a202c;
    color: #fff;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--border-color);
    overflow: hidden;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title a {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ==========================================================================
   9. SINGLE POST (HERO E CONTEÚDO)
   ========================================================================== */
.entry-header-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background-color: #1a202c;
    /* Sempre escuro para contraste da imagem */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.entry-title-hero {
    color: #fff !important;
    /* Sempre branco no hero */
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.content-wrapper-grid {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.entry-content {
    max-width: 100%;
    font-size: 1.25rem;
    color: var(--text-main);
}

@media (max-width: 900px) {
    .content-wrapper-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   10. INTEGRAÇÃO FLUENTCOMMUNITY (LAYOUT FIX)
   ========================================================================== */
.fluent_com_wp_pages .fcom-content-area {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.fluent_com_wp_pages .site-main {
    flex: 1;
    min-width: 0;
}

.fluent_com_wp_pages .widget-area {
    width: 320px;
    flex-shrink: 0;
}

.fluent_com_wp_pages .widget-area:empty {
    display: none;
}

@media (max-width: 950px) {
    .fluent_com_wp_pages .fcom-content-area {
        flex-direction: column;
    }

    .fluent_com_wp_pages .widget-area {
        width: 100%;
    }
}

/* ==========================================================================
   11. PLUGIN DE PRESENTE (FORMULÁRIO CORRIGIDO)
   ========================================================================== */
.pin-form-wrapper,
.pin-payment-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pin-product-card {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.pin-product-card.selected {
    border-color: var(--color-primary);
    background-color: rgba(0, 115, 230, 0.05);
}

/* Força cores no modo escuro para o formulário */
html.dark .pin-product-card.selected {
    background-color: rgba(56, 189, 248, 0.1);
}

/* ==========================================================================
   RODAPÉ OTIMIZADO (UX E DESIGN)
   ========================================================================== */
.site-footer {
    background-color: var(--theme-text-primary); /* Fundo Escuro Profundo */
    color: #a0aec0; /* Texto cinza claro para leitura */
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Coluna 1 maior para a Marca */
    gap: 40px;
}

/* Títulos */
.footer-logo-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Descrições e Textos */
.footer-tagline, 
.copyright-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Links (Sem bolinhas!) */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px); /* Efeito sutil de movimento */
}

/* Ícones Sociais */
.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: var(--theme-accent-color);
    transform: translateY(-3px);
}

/* Créditos FluentCommunity */
.powered-by {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.fc-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* ==========================================================================
   CORREÇÃO DE POSICIONAMENTO (FLUTUANTES)
   ========================================================================== */

/* Botão WhatsApp (Fixo na Esquerda) */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 9990;
    /* Estilos visuais já definidos antes... */
}

/* Prova Social (Popup) - Mover para cima do WhatsApp */
.pin-social-toast {
    position: fixed;
    left: 20px;
    /* Cálculo: Altura do Whats (60px) + Margem (30px) + Espaço (15px) = ~105px */
    bottom: 105px; 
    z-index: 9980;
    /* Resto dos estilos mantidos... */
}

/* Botão Voltar ao Topo (Fixo na Direita) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9990;
}

/* Responsividade do Rodapé */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Uma coluna só */
        text-align: center;
        gap: 40px;
    }

    .footer-social-icons {
        justify-content: center;
    }
    
    /* Ajuste fino para mobile: Prova social sobe mais um pouco ou centraliza */
    .pin-social-toast {
        bottom: 100px; 
        left: 50%;
        transform: translateX(-50%) translateY(20px); /* Centraliza */
        width: 90%;
    }
    .pin-social-toast.visible {
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================================================
   CORREÇÃO FINAL: BIO DO AUTOR E NAVEGAÇÃO (DESIGN DE CARTÕES)
   ========================================================================== */

/* --- 1. BIO DO AUTOR (Cartão Unificado) --- */
.author-bio-card {
    display: flex;
    flex-direction: column;
    /* Empilha Avatar e Texto no Mobile */
    align-items: center;
    /* Centraliza horizontalmente */
    text-align: center;
    /* Centraliza o texto */

    background-color: var(--bg-card) !important;
    /* Garante fundo do cartão */
    border: 1px solid var(--theme-border-color);
    border-radius: 16px;
    /* Bordas mais arredondadas */
    padding: 30px;
    margin-top: 60px;
    /* Espaço do conteúdo */
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Avatar */
.author-bio-avatar,
.author-bio-avatar img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    margin-bottom: 15px;
    /* Espaço entre foto e texto */
    display: block;
}

/* Textos do Autor */
.bio-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.bio-name {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.bio-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--color-primary);
    border-bottom: 1px solid transparent;
}

.bio-link:hover {
    border-bottom-color: currentColor;
}


/* --- 2. SUGESTÕES DE POSTS (Cartões de Navegação) --- */

/* Container Flex para os links */
.editorial-post-navigation .nav-links {
    display: flex;
    flex-direction: column;
    /* Mobile: Um embaixo do outro */
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

/* Estilo de "Botão Gigante" para os links */
.editorial-post-navigation a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background-color: var(--bg-card) !important;
    /* Garante contraste */
    border: 1px solid var(--theme-border-color);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
    width: 100%;
}

.editorial-post-navigation a:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

/* Texto "Anterior / Próximo" */
.nav-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

/* Título do Post */
.nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    display: block;
}


/* --- 3. AJUSTES PARA DARK MODE (Cores Específicas) --- */
html.dark .author-bio-card,
html.dark .editorial-post-navigation a {
    background-color: #1e293b !important;
    /* Slate 800 (Mais claro que o fundo 900) */
    border-color: #334155 !important;
    box-shadow: none;
}

html.dark .bio-name,
html.dark .nav-title {
    color: #f1f5f9 !important;
    /* Branco Gelo */
}

html.dark .bio-label,
html.dark .nav-subtitle {
    color: #94a3b8 !important;
    /* Cinza Claro */
}


/* --- 4. LAYOUT DESKTOP (Lado a Lado) --- */
@media (min-width: 768px) {

    /* Autor na horizontal */
    .author-bio-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .author-bio-avatar {
        margin-right: 30px;
        margin-bottom: 0;
    }

    /* Navegação lado a lado */
    .editorial-post-navigation .nav-links {
        flex-direction: row;
    }
}

/* 3. CORREÇÃO DO RODAPÉ (Bolinhas e Alinhamento) */
.footer-links {
    list-style: none !important; /* Remove as bolinhas */
    padding-left: 0 !important;  /* Remove recuo da esquerda */
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
    display: block;
}

/* Centralização no Mobile */
@media (max-width: 768px) {
    .site-info, 
    .footer-links, 
    .footer-social {
        text-align: center;
        justify-content: center;
    }
    
    /* Ajuste do título "Presente Incrível" no rodapé */
    .footer-title {
        font-size: 1.5rem !important;
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   DESIGN PREMIUM: BARRA DE COMPARTILHAMENTO
   ========================================================================== */

/* 1. Container Principal (A Barra Lateral) */
.social-share-sidebar {
    position: sticky;
    top: 150px; /* Distância do topo ao rolar */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Espaço entre os ícones */
    z-index: 100;
}

/* 2. O Texto "Compartilhar" (Estilo Vertical) */
.share-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl; /* Texto em pé */
    transform: rotate(180deg); /* Leitura de baixo para cima */
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.7;
}

/* 3. Os Botões (Círculos Elegantes) */
.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;  /* Área de toque generosa */
    height: 44px;
    border-radius: 50%; /* Círculo Perfeito */
    
    /* Visual Padrão (Neutro) */
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted); /* Cinza */
    
    /* Animação */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.share-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor; /* Garante que o ícone use a cor do texto */
}

/* 4. Interação (Hover "UAU") */
.share-icon:hover {
    transform: translateY(-3px) scale(1.1); /* Flutua e cresce */
    color: #fff; /* Ícone fica branco */
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Cores das Marcas (Só aparecem no Hover) */
.share-icon.facebook:hover { background-color: #1877F2; box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3); }
.share-icon.twitter:hover  { background-color: #000000; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); } /* X é preto agora */
.share-icon.whatsapp:hover { background-color: #25D366; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); }
.share-icon.linkedin:hover { background-color: #0A66C2; box-shadow: 0 5px 15px rgba(10, 102, 194, 0.3); }


/* 5. AJUSTES PARA MODO ESCURO (DARK MODE) */
html.dark .share-icon {
    background-color: #1e293b; /* Slate 800 */
    border-color: #334155;
    color: #94a3b8;
}
html.dark .share-icon:hover {
    color: #fff; /* Mantém ícone branco no hover */
}


/* 6. RESPONSIVIDADE (MOBILE) */
@media (max-width: 900px) {
    .social-share-sidebar {
        position: static; /* Remove o sticky */
        flex-direction: row; /* Muda para horizontal */
        justify-content: center;
        margin: 2rem 0; /* Espaço acima e abaixo */
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .share-label {
        display: none; /* Esconde o texto "Compartilhar" no mobile para economizar espaço */
    }

    .share-icon {
        width: 48px; /* Ainda maior no mobile para facilitar o toque */
        height: 48px;
        font-size: 1.2rem;
        background-color: transparent; /* Mais limpo no mobile */
        border: none; /* Remove borda no mobile para parecer nativo */
    }
    
    /* No mobile, damos uma cor sutil ao ícone para não parecer desabilitado */
    .share-icon.facebook { color: #1877F2; background: rgba(24, 119, 242, 0.1); }
    .share-icon.twitter  { color: var(--text-main); background: rgba(0,0,0, 0.05); }
    .share-icon.whatsapp { color: #25D366; background: rgba(37, 211, 102, 0.1); }
    .share-icon.linkedin { color: #0A66C2; background: rgba(10, 102, 194, 0.1); }
}

/* ==========================================================================
   DECISÃO DE UX: FORMULÁRIO SEMPRE CLARO (Mesmo no Modo Escuro)
   ========================================================================== */

/* 1. Container Principal: Força Branco */
html.dark .pin-form-wrapper,
html.dark .pin-payment-wrapper {
    background-color: #ffffff !important;
    border: 1px solid #e4e7eb !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    color: #1a202c !important; /* Texto Preto */
}

/* 2. Força TODOS os textos dentro do formulário a serem escuros */
html.dark .pin-form-wrapper h2,
html.dark .pin-form-wrapper h3,
html.dark .pin-form-wrapper p,
html.dark .pin-form-wrapper label,
html.dark .pin-form-wrapper legend,
html.dark .pin-form-wrapper span,
html.dark .pin-product-title,
html.dark .pin-product-price {
    color: #1a202c !important;
}

/* 3. Cards de Produto (Estilo Light) */
html.dark .pin-product-card {
    background-color: #f5f7fa !important; /* Cinza bem clarinho */
    border: 1px solid #e2e8f0 !important;
    color: #1a202c !important;
}

/* Card Selecionado (Azul Claro Padrão) */
html.dark .pin-product-card.selected {
    background-color: rgba(0, 115, 230, 0.05) !important;
    border-color: var(--theme-accent-color) !important;
}

html.dark .pin-product-card.selected .pin-product-title {
    color: var(--theme-accent-color) !important;
}

/* 4. Inputs (Campos de Digitação) - Volta ao padrão branco */
html.dark .pin-form-wrapper input[type="text"],
html.dark .pin-form-wrapper input[type="email"],
html.dark .pin-form-wrapper input[type="tel"],
html.dark .pin-form-wrapper input[type="date"],
html.dark .pin-form-wrapper textarea,
html.dark .pin-form-wrapper select {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e0 !important;
    color: #1a202c !important;
}

html.dark .pin-form-wrapper input:focus {
    border-color: var(--theme-accent-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1) !important;
}

/* Garante que o placeholder (texto de ajuda) seja visível */
html.dark .pin-form-wrapper ::placeholder {
    color: #a0aec0 !important;
    opacity: 1;
}

/* 5. Botões de Rádio */
html.dark .pin-form-wrapper input[type="radio"] {
    accent-color: var(--theme-accent-color);
    border-color: #cbd5e0;
}

/* ==========================================================================
   BOTÃO WHATSAPP FLUTUANTE
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Fica na esquerda para não brigar com o 'Back to Top' na direita */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9990; /* Alto, mas abaixo de modais */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #128C7E;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* Tooltip (Balãozinho "Dúvidas?") */
.whatsapp-tooltip {
    position: absolute;
    left: 70px; /* Aparece à direita do botão */
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: #1a202c;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Setinha do Tooltip */
.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

/* Mostrar Tooltip no Hover */
.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    left: 75px; /* Pequeno movimento para direita */
}

/* Animação de Pulso Sutil */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-whatsapp {
    animation: pulse-green 2s infinite;
}

.floating-whatsapp:hover {
    animation: none; /* Para de pular quando passa o mouse */
}

/* Ajustes Mobile */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    .floating-whatsapp svg {
        width: 26px;
        height: 26px;
    }
    .whatsapp-tooltip {
        display: none; /* Esconde texto no mobile para não poluir */
    }
}

/* Modo Escuro */
html.dark .whatsapp-tooltip {
    background-color: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
}
html.dark .whatsapp-tooltip::before {
    border-color: transparent #334155 transparent transparent; /* Ajuste borda se tiver border */
}

/* ==========================================================================
   PROVA SOCIAL (NOTIFICAÇÕES DE VENDA)
   ========================================================================== */
.pin-social-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--bg-card); /* Usa nossas variáveis inteligentes */
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--color-primary); /* Detalhe colorido da marca */
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9900; /* Acima de tudo, exceto menu mobile */
    max-width: 320px;
    
    /* Animação de Entrada/Saída */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Efeito "Bounce" */
    visibility: hidden;
}

.pin-social-toast.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.pin-toast-icon {
    font-size: 24px;
}

.pin-toast-content {
    flex: 1;
}

.pin-toast-title {
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.pin-toast-title strong {
    color: var(--color-primary);
    font-weight: 700;
}

.pin-toast-time {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.pin-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0 0 10px;
    line-height: 1;
}

.pin-toast-close:hover {
    color: var(--color-primary);
}

/* Ajuste para não cobrir o botão de WhatsApp */
.floating-whatsapp {
    /* Garante que o WhatsApp fique um pouco acima ou ao lado se colidir */
    z-index: 9901; 
}

/* Mobile: Centralizar ou esconder se atrapalhar muito */
@media (max-width: 480px) {
    .pin-social-toast {
        left: 50%;
        transform: translateX(-50%) translateY(20px); /* Centralizado */
        bottom: 10px;
        width: 90%;
    }
    .pin-social-toast.visible {
        transform: translateX(-50%) translateY(0);
    }
}

/* Modo Escuro (Automático pelas variáveis) */
html.dark .pin-social-toast {
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
