/* ─── Reset & Variáveis Base (Herdadas da plataforma) ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #f5f5f7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

:root {
    --purple-dark: #4a1a8a;
    --purple: #6b2fa0;
    --purple-mid: #8b3fc0;
    --pink: #c0306a;
    --orange: #f7931e;
    --orange-light: #ffb347;
    --blue: #1565c0;
    --blue-mid: #1e88e5;
    --blue-light: #42a5f5;
    --teal: #00897b;
    --teal-light: #26a69a;
    /* Cores calmantes para autismo */
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* ─── Header ─── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #444;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.2s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: width 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--purple);
    font-weight: 600;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-img-link {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.nav-icon {
    height: 20px;
    width: auto;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.nav-img-link:hover .nav-icon {
    transform: scale(1.1);
}

.nav-img-link.active .nav-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 5px rgba(107, 47, 160, 0.5));
}

.nav-img-link::after {
    display: none !important;
}

.btn-entrar {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 16px rgba(107, 47, 160, 0.35);
}

.btn-entrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 47, 160, 0.5) !important;
}

.btn-entrar::after {
    display: none !important;
}

/* ─── Hero Inclusão (Cores mais suaves e acolhedoras) ─── */
.hero-internal {
    background: linear-gradient(135deg, var(--blue-mid), var(--teal));
    min-height: 300px;
    padding: 120px 5% 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-internal::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #f5f5f7;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.hero-internal h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.hero-internal p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto;
}

/* ─── Conteúdo e Filtros ─── */
.activities-content {
    max-width: 1200px;
    margin: 50px auto 100px;
    padding: 0 5%;
}

.filter-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--teal), var(--blue-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
}

/* ─── Search Bar ────────────────────────────────────────── */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 47, 160, 0.1);
}

/* ─── Grid de Recursos ─── */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 600px) {
    .card {
        flex-direction: column;
        align-items: stretch;
    }
    .card-icon { margin-bottom: 8px; }
}

.activity-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.activity-header {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.activity-header.tipo-dinamica {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
}

.activity-header.tipo-plano {
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
}

.activity-header.tipo-recurso {
    background: linear-gradient(135deg, var(--purple-mid), var(--pink));
}

.activity-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    fill: none;
}

.activity-body {
    padding: 25px 20px;
}

.activity-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.activity-card.tipo-dinamica .activity-badge {
    background: rgba(247, 147, 30, 0.15);
    color: var(--orange);
}

.activity-card.tipo-plano .activity-badge {
    background: rgba(21, 101, 192, 0.15);
    color: var(--blue);
}

.activity-card.tipo-recurso .activity-badge {
    background: rgba(192, 48, 106, 0.15);
    color: var(--pink);
}

.activity-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.activity-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

/* ─── Card Actions (Botões de Link e PDF) ──────────────── */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-action {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.btn-video {
    background-color: rgba(247, 147, 30, 0.1);
    color: var(--orange);
    border-color: var(--orange);
}

.btn-video:hover {
    background-color: var(--orange);
    color: #fff;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.btn-pdf {
    background-color: rgba(107, 47, 160, 0.1);
    color: var(--purple);
    border-color: var(--purple);
}

.btn-pdf:hover {
    background-color: var(--purple);
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 47, 160, 0.3);
}

/* ─── Footer ─── */
footer {
    background: linear-gradient(135deg, var(--purple-dark), #2d0a5a);
    padding: 32px 5%;
    text-align: center;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

footer p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 15px;
}

@media (max-width: 768px) {
    .hero-internal h1 {
        font-size: 2.2rem;
    }

    nav {
        display: none;
        /* Para mobile, adicione o menu hamburguer igual ao seu original */
    }
}

/* Estilo do Ícone no Card */
.card-icon {
    font-size: 2rem;
    background: #f0f0f5;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Cores Personalizadas para os Filtros */
.filter-btn.btn-inclusão-geral:hover, 
.filter-btn.btn-inclusão-geral.active {
    background: #4caf50; /* Verde */
    border-color: #4caf50;
}

.filter-btn.btn-autismo:hover, 
.filter-btn.btn-autismo.active {
    background: #2196f3; /* Azul */
    border-color: #2196f3;
}

.filter-btn.btn-outros:hover, 
.filter-btn.btn-outros.active {
    background: #ff9800; /* Laranja */
    border-color: #ff9800;
}

/* Badge de categoria dentro do card */
.badge {
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #666;
}