/* assets/css/style.css */

/* Importação da Fonte */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
  font-family: "Font Awesome 6 Free";
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* Estilos Globais */
html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #f8fafc; 
    color: #1e293b; 
}

/* ========================================================================= */
/* ===== NOVOS AJUSTES DE AREJAMENTO E ESTILO DE CONTEÚDO (CHECKPOINT) ===== */
/* ========================================================================= */

/* 1. Mais Arejamento (Altura da Linha) */
.prose {
    --tw-prose-body: #334155; /* Cor do corpo do texto um pouco mais suave */
}
.prose p, .prose li {
    line-height: 1.75; /* Aumenta o espaçamento entre as linhas */
    margin-bottom: 1.25em;
}
.prose ul, .prose ol {
    margin-top: 1.25em;
}

/* 2. Estilização de Headings */
.prose h2 {
    font-size: 1.875rem; /* 30px */
    font-weight: 800;
    letter-spacing: -0.025em; /* Levemente mais condensado */
    padding-bottom: 0.75rem; /* Mais espaçamento abaixo */
    border-bottom: 2px solid #e2e8f0;
    margin-top: 3.5rem; /* Mais espaço acima do título */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.prose h2:first-child {
    margin-top: 0; /* Remove a margem do primeiro H2 */
}
.prose h2 i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    padding: 0.5rem;
    border-radius: 9999px; /* Círculo perfeito */
}

/* 3. Estilização de Listas de Prós e Contras (Refinando o card) */
.pros-cons-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem; /* Mais padding interno */
    border-radius: 1rem; /* Bordas mais arredondadas */
}
.pros-cons-card h4 {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.pros-cons-card h4 i {
    margin-right: 0.5rem;
}
.pros-cons-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem; /* Tamanho da fonte dos itens */
    line-height: 1.6;
}
.pros-cons-card ul li {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0; /* Espaçamento vertical entre os itens */
    border-bottom: 1px solid #f1f5f9; /* Separador sutil */
}
.pros-cons-card ul li:last-child {
    border-bottom: none; /* Remove a borda do último item */
}
.pros-cons-card ul li .icon {
    font-weight: 900;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}
.pros-cons-card .text-green-800 { color: #065f46; }
.pros-cons-card .bg-green-50 { background-color: #f0fdf4; }
.pros-cons-card .border-green-200 { border-color: #bbf7d0; }
.pros-cons-card .icon-green { color: #22c55e; }

.pros-cons-card .text-red-800 { color: #991b1b; }
.pros-cons-card .bg-red-50 { background-color: #fef2f2; }
.pros-cons-card .border-red-200 { border-color: #fecaca; }
.pros-cons-card .icon-red { color: #ef4444; }


/* ========================================================================= */
/* ===== ESTILOS ANTERIORES (MANTIDOS E COMPATÍVEIS) ===== */
/* ========================================================================= */

/* Estilos de Componentes da Home */
.gradient-bg { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.tab-active { border-bottom: 3px solid #4f46e5; color: #4f46e5; font-weight: 600; }
.cta-button:hover { transform: translateY(-3px) scale(1.02); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary .fa-chevron-down { transform: rotate(180deg); }

/* Navegação Flutuante */
.floating-nav { position: fixed; top: 120px; left: 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 16px; z-index: 40; max-height: calc(100vh - 140px); overflow-y: auto; }
.floating-nav-link { display: block; padding: 8px 12px; margin-bottom: 4px; border-radius: 8px; color: #475569; font-size: 14px; transition: all 0.2s ease; border-left: 3px solid transparent; }
.floating-nav-link:hover { background-color: #f1f5f9; color: #1e293b; }
.floating-nav-link.active { background-color: #eef2ff; color: #4f46e5; font-weight: 600; border-left: 3px solid #4f46e5; }
.floating-nav-title { font-weight: 700; color: #1e293b; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid #e2e8f0; }

/* Estilos do Modal */
.modal.active { display: flex; opacity: 1; }
.modal.active .modal-content { transform: scale(1); }
.modal-tab-btn.active { color: #4f46e5; border-color: #4f46e5; }

/* Responsividade de Componentes */
@media (max-width: 1280px) { .floating-nav { display: none; } }
@media (max-width: 640px) {
    .modal { padding: 0; align-items: flex-end; }
    .modal-content { height: 95vh; max-height: 95vh; width: 100vw; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
    .modal.active .modal-content { transform: translateY(0); }
    .modal .modal-tabs { padding-left: 1rem; padding-right: 1rem; }
    .modal .p-6, .modal .p-8 { padding: 1.5rem 1rem; }
}

/* Responsividade de Tabelas com Scroll e Sombra */
.overflow-x-auto { position: relative; }
.overflow-x-auto::before, .overflow-x-auto::after { content: ''; position: absolute; top: 0; bottom: 0; width: 20px; pointer-events: none; z-index: 1; transition: opacity 0.2s; opacity: var(--shadow-opacity, 0); }
.overflow-x-auto::before { left: 0; background: linear-gradient(to right, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0)); opacity: var(--before-opacity, 0); }
.overflow-x-auto::after { right: 0; background: linear-gradient(to left, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0)); opacity: var(--after-opacity, 1); }

/* Estilização da Barra de Rolagem do Modal */
.modal-content .overflow-y-auto::-webkit-scrollbar { width: 8px; }
.modal-content .overflow-y-auto::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.modal-content .overflow-y-auto::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; border: 2px solid #f1f5f9; }
.modal-content .overflow-y-auto::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }
.modal-content .overflow-y-auto { scroll-behavior: smooth; scrollbar-gutter: stable; }

/* Adicione esta classe ao seu assets/css/style.css */




.dropdown-menu {
    visibility: hidden; /* Use visibility para esconder sem afetar o layout */
}
.header-dropdown:hover .dropdown-menu, .dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

#main-header.header-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0; /* Garante que o header ocupe 100% da largura */
    z-index: 50;
    background-color: rgba(22, 29, 47, 0.9); /* slate-900 com opacidade */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    animation: slideDown 0.3s ease-out;
}

#main-header.header-scrolled .text-white,
#main-header.header-scrolled .text-yellow-300,
#main-header.header-scrolled .fa-credit-card,
#main-header.header-scrolled #open-mobile-menu-btn {
    color: white !important; /* Força a cor branca */
}

#main-header.header-scrolled .text-white:hover {
    color: #facc15 !important; /* Amarelo no hover */
}

#mobile-menu-panel {
    z-index: 250; /* Z-index MAIOR que o do header */
}
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

#main-header.header-scrolled .text-slate-800 {
    color: #ffffff; /* Torna o texto do logo branco */
}

#main-header.header-scrolled .text-slate-600 {
    color: #d1d5db; /* Torna o texto dos menus um cinza claro */
}

#main-header.header-scrolled .text-slate-600:hover {
    color: #facc15; /* Cor de hover amarela para destaque */
}



/* Esconde o overlay por padrão */
#search-overlay.hidden {
    display: none;
}

/* DENTRO DE assets/css/style.css */

#search-overlay.active {
    display: flex;
    /* Alinha o conteúdo (o div com max-w-2xl) no centro verticalmente */
    align-items: flex-start; /* Alinha no topo para começar */
    justify-content: center; /* Centraliza horizontalmente */
    padding-top: 15vh; /* Empurra o conteúdo para baixo, para uma posição mais central */
}

/* Garante que em telas pequenas ele continue no topo */
@media (max-width: 640px) {
    #search-overlay.active {
        padding-top: 4vh;
        align-items: flex-start;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilo para cada item de resultado da busca */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05); /* Fundo sutil */
    border-radius: 0.75rem; /* 12px */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(2px);
}

.search-result-item:hover {
    transform: translateY(-3px) scale(1.01);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

#results-container {
    /* Estilização da barra de rolagem para os resultados */
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 #1e293b;
}

#results-container::-webkit-scrollbar {
    width: 8px;
}

#results-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#results-container::-webkit-scrollbar-thumb {
    background-color: #4f46e5;
    border-radius: 10px;
}

@media (min-width: 980px) {
    .xl\:block {
        
        z-index: 100;
    }
}

section#destaques {
    max-width: 1280px;
    margin: 0 auto;
}

img.h-40.device-img {
    width: 90%;
    height: auto;
    padding: 10px;
    border-radius: 5px;
}

img.h-48.mx-auto.mb-4 {
    height: 100%;
}

a.mt-8.inline-block.brand-bg.text-white.font-bold.py-4.px-10.rounded-xl.cta-button.text-lg.pulse-cta {
    border: 1px solid;
}

a.mt-8.inline-block.brand-bg.text-white.font-bold.py-4.px-10.rounded-xl.cta-button.text-lg.pulse-cta:hover {
    border: 2px solid;
}

.border-b.border-slate-200.bg-white.sticky.top-\[88px\].sm\:top-\[104px\].z-10{
        top: 0;
}

@keyframes floating-random {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  20%  { transform: translate(-2px, -4px) rotate(-0.3deg); }
  40%  { transform: translate(3px, -1px) rotate(0.3deg); }
  60%  { transform: translate(-1px, 2px) rotate(-0.2deg); }
  80%  { transform: translate(2px, 3px) rotate(0.2deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

img.max-w-xs.mx-auto.md\:max-w-sm.drop-shadow-2xl{
  animation: floating-random 6s ease-in-out infinite;
}

@media(max-width:768px){
a.mt-8.inline-block.bg-yellow-400.text-slate-900.font-bold.py-4.px-10.rounded-xl.cta-button.text-lg.pulse-cta, a.mt-8.inline-block.brand-bg.text-white.font-bold.py-4.px-10.rounded-xl.cta-button.text-lg.pulse-cta {
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
}
}
section#hero {
    z-index: 30 !important;
    background: #f6f8fa;
    position: relative;
}

.relative.max-w-xs.w-full.h-full.bg-slate-800.shadow-xl.py-4.flex.flex-col {
    height: auto;
}

div#search-overlay {
    z-index: 999;
}   

.dropdown-menu.absolute.right-0.mt-2.w-56.rounded-md.shadow-lg.bg-white.ring-1.ring-black.ring-opacity-5.transition-all.duration-200.transform.invisible.opacity-0.-translate-y-2 {
z-index: 200;
}

.relative.header-dropdown {
    position: relative;
    z-index: 1000;
}

#mobile_menu_itens{
    color: #f4f5f7;
}

#mobile_menu_itens:hover{
    color: #000000;
}

footer.bg-slate-900.text-slate-300 {
    margin-top: 30px;
}