/* Estilos base e importações de fontes já estão no HTML principal através do Tailwind CDN e Google Fonts.
   Este ficheiro conteria apenas os estilos personalizados. */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc; /* cinza claro */
    color: #374151; /* text-gray-700 - Cor de texto base */
    scroll-behavior: smooth; /* Scroll suave para links internos */
}
.hero-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://placehold.co/1200x600/1E40AF/FFFFFF?text=FinanSim.com.br');
    background-size: cover;
    background-position: center;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px -4px rgba(0, 0, 0, 0.1), 0 5px 8px -3px rgba(0, 0, 0, 0.06);
}
.category-card-link:hover h3 {
    color: #2563eb; /* text-blue-600 */
}
.category-card-link div[class*="bg-"] { /* Target icon background divs */
    transition: transform 0.3s ease-in-out;
}
.category-card-link:hover div[class*="bg-"] {
    transform: scale(1.1);
}

.newsletter-bg { /* Usado na sidebar das páginas de categoria/artigo */
    background-color: #1e3a8a; 
}
.footer-bg {
    background-color: #0f172a; 
}

/* Estilos para o modal (usado para políticas, etc.) */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.65); 
    padding-top: 40px; 
    padding-bottom: 40px;
}
.modal-content {
    background-color: #ffffff;
    margin: 2% auto; 
    padding: 28px; 
    border-radius: 10px; 
    width: 90%;
    max-width: 700px; 
    text-align: left;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; 
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}
.modal-title {
     font-size: 1.5rem; 
     font-weight: 700; 
     color: #111827; 
}
.modal-body {
    margin-bottom: 24px;
    max-height: 75vh; 
    overflow-y: auto;
    line-height: 1.65; 
}
.modal-body p { 
    margin-bottom: 1rem;
}
.modal-body p:last-child {
    margin-bottom: 0;
}
.modal-body ul {
    margin-bottom: 1rem;
}
.modal-body h2 { /* Estilo para títulos dentro do modal, se houver */
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}


.modal-close-button {
    background-color: #2563eb; 
    color: white;
    padding: 12px 22px; 
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 16px;
    float: right;
    transition: background-color 0.2s ease-in-out;
}
.modal-close-button:hover {
    background-color: #1d4ed8; 
}

/* Estilos para o banner de cookies - AJUSTADO */
.cookie-consent-banner {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #111827; 
    color: #e5e7eb; 
    padding: 1.25rem; 
    text-align: center;
    z-index: 1100; 
    border-top: 1px solid #374151;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}
.cookie-consent-banner p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.cookie-consent-banner button {
    background-color: #2563eb; 
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
}
.cookie-consent-banner button:hover {
    background-color: #1d4ed8;
}
.cookie-consent-banner a {
    color: #60a5fa; 
    text-decoration: underline;
}
.cookie-consent-banner a:hover {
    color: #93c5fd; 
}

/* Melhorias gerais de UI/UX */
h1, h2, h3, h4 {
    color: #1f2937; /* Ajuste fino na cor dos títulos para consistência */
    letter-spacing: -0.025em; /* Leve ajuste no espaçamento entre letras para títulos */
}

/* Estilo dos botões "Leia Mais" nos cards */
.read-article-button { 
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.read-article-button:hover {
    transform: translateY(-2px) scale(1.02); /* Adicionar leve scale */
    box-shadow: 0 6px 12px rgba(0,0,0,0.1); /* Sombra mais dinâmica */
}

/* Ajustes na barra lateral para melhor espaçamento */
aside.lg\:w-1\/3 > div.bg-white {
    padding: 1.75rem; /* Mais padding interno nos widgets da sidebar */
}

/* Linha divisória sob o título da seção de artigos principal e de categoria */
#artigos > h2, 
main .lg\:w-2\/3 > .mb-12 > h1 { /* Título da página de categoria */
    position: relative;
    padding-bottom: 0.85rem; 
}
#artigos > h2::after,
main .lg\:w-2\/3 > .mb-12 > h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px; /* Largura da linha */
    height: 3.5px;  /* Espessura da linha */
    background-color: #2563eb; /* Cor da linha (azul) */
    border-radius: 2px;
}

/* Melhorar contraste e apelo visual dos links nas categorias da sidebar */
aside .space-y-3 a {
    padding: 0.6rem 0.4rem; /* Pequeno padding para melhor área de clique */
    border-radius: 0.375rem; /* rounded-md */
    display: flex; /* Para melhor alinhamento */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
aside .space-y-3 a:hover {
    background-color: #eff6ff; /* bg-blue-50 */
    color: #1d4ed8; /* Azul mais escuro no texto do link */
}
aside .space-y-3 a:hover span:last-child { /* Badge da contagem */
    background-color: #3b82f6 !important; /* Azul mais forte para o badge no hover do link */
    color: white !important;
}

/* Estilos para a página de artigo individual */
.prose { /* Tailwind prose para formatar conteúdo de markdown/texto longo */
    color: #374151; /* text-gray-700 */
}
.prose h2 {
    font-size: 1.75rem; /* text-2xl */
    font-weight: 600;
    color: #1f2937; /* text-slate-800 */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
}
.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75; /* Maior espaçamento entre linhas para leitura */
}
.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.prose ul li {
    margin-bottom: 0.5rem;
}
.prose strong {
    font-weight: 600;
    color: #111827;
}
.prose a {
    color: #2563eb;
    text-decoration: underline;
}
.prose a:hover {
    color: #1d4ed8;
}

/* Animação suave para o menu mobile */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobile-menu:not(.hidden) {
    max-height: 500px; /* Altura suficiente para o conteúdo */
    opacity: 1;
}
