/* Estilos Globais para AngoBolsas */

/* 1. ESTILOS GERAIS E TIPOGRAFIA */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    scroll-behavior: smooth;
}

/* 2. COMPONENTES REUTILIZÁVEIS */
.section-title { font-size: 2.25rem; font-weight: 800; margin-bottom: 2rem; color: #1e293b; text-align: center; }
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.tag { display: inline-block; background-color: #e0f2fe; color: #0c4a6e; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; margin-right: 0.5rem; margin-bottom: 0.5rem; }
.tag-article { background-color: #dcfce7; color: #166534; }
.tag-mestrado { background-color: #fef9c3; color: #854d0e; }
.tag-doutoramento { background-color: #f3e8ff; color: #7e22ce; }
.tag-pais {background-color: #e2e8f0; /* slate-200 */ color: #475569; /* slate-600 */}
.tag-outras { background-color: #f1f5f9; color: #334155; }

/* 3. SECÇÕES ESPECÍFICAS DA PÁGINA */
/* Hero Background com efeito Zoom Suave */
.hero-bg {
    background-image: url('../images/vecteezy_banner.jpeg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05); /* Pequeno zoom inicial */
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Melhoria nos botões */
.hero-btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-primary:active {
    transform: scale(0.95);
}

/* Tipografia Inter com pesos variados */
h1 {
    letter-spacing: -0.02em;
}

.parallax-section { background-image: linear-gradient(rgba(0, 20, 80, 0.7), rgba(0, 20, 80, 0.7)), url('../images/lax.png'); min-height: 400px; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; }

/* NOVO: Estilos para os E-book Cards (inspirado na imagem) */
.ebook-card .rating-stars {color: #f59e0b; /* amber-500 */}
.ebook-card .buy-button {
    background-color: #f59e0b; /* amber-500 */
    color: #1e293b;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    width: 100%;
}
.ebook-card .buy-button:hover {
    background-color: #d97706; /* amber-600 */
}


/* A lista de resultados inteira */
#search-results ul {
    border-top: 1px solid #e5e7eb; /* Adiciona uma linha a separar do input */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Cada item individual na lista de resultados */
#search-results li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem; /* Mais espaçamento interno */
    transition: background-color 0.2s ease-in-out;
    width: 100%;
    border-bottom: 1px solid #f3f4f6; /* Linha subtil entre os resultados */
}

#search-results li:last-child a {
    border-bottom: none; /* Remove a linha do último item */
}

#search-results li a:hover {
    background-color: #f8fafc; /* Fundo suave ao passar o rato */
}

/* O contentor do ícone à esquerda */
#search-results .result-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 1rem;
}

/* 4. ESTILOS DOS MODAIS */
.modal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding-top: 10vh; }
.modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(17, 24, 39, 0.8); backdrop-filter: blur(4px); }
.modal-content { position: relative; background-color: white; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); width: 90%; max-width: 600px; animation: slide-down 0.3s ease-out; }
@keyframes slide-down { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* 5. CORES DOS ÍCONES SOCIAIS */
.social-icon { transition: color 0.3s ease-in-out; }
.social-icon.facebook:hover { color: #1877F2; }
.social-icon.instagram:hover { color: #E4405F; }
.social-icon.youtube:hover { color: #FF0000; }
.social-icon.whatsapp:hover { color: #25D366; }

/* 6. ESTILOS PARA CONTEÚDO DE POSTS (NOVO E MELHORADO) */
.prose h2 { font-size: 1.875rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #1e293b; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem; }
.prose h3 { font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #1e293b; }
.prose p { line-height: 1.75; margin-bottom: 1.25rem; color: #334155; }
.prose ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; color: #334155; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: #2563eb; text-decoration: underline; font-weight: 500; }
.prose a:hover { color: #1d4ed8; }
.prose blockquote { border-left: 4px solid #93c5fd; padding-left: 1rem; font-style: italic; color: #475569; margin: 1.5rem 0; }
.prose strong { color: #1e293b; font-weight: 600; }

/* 7. ESTILOS PARA COMENTÁRIOS SIMULADOS DO FACEBOOK (NOVO) */
.fb-comments-mockup { border: 1px solid #e5e7eb; border-radius: 8px; background-color: #f9fafb; padding: 1rem; }

/* ================================================= */
/* NOVOS ESTILOS PARA A PÁGINA DE BOLSAS             */
/* ================================================= */

/* Checkbox Personalizado */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    height: 1rem; /* 16px - Reduzido de 1.25rem */
    width: 1rem; /* 16px - Reduzido de 1.25rem */
    border: 2px solid #cbd5e1;
    border-radius: 0.25rem;
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.custom-checkbox:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.custom-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem; /* Reduzido de 0.8rem para caber melhor */
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Tag de Filtro Ativo */
.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e0f2fe; /* sky-100 */
    color: #0c4a6e; /* sky-900 */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-tag:hover {
    background-color: #bae6fd; /* sky-200 */
}

.filter-tag .remove-tag {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
}


/* Melhora a aparência da barra de rolagem na barra de filtros */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9; /* slate-100 */
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}

/* NOVO: Classe para texto extra-pequeno apenas em mobile */
@media (max-width: 500px) {
    .text-mobile-xxs {
        font-size: 0.65rem; /* ~10.4px */
        line-height: 1rem;     
    }
    .icon-mobile-xxs {
        font-size: 0.6rem; /* Tamanho do ícone de seta */
    }
    .categorias{
        font-size: 10px !important; 
    }
}



