/* ===== ESTILOS COMUNS PARA TODOS OS POST TYPES ===== */

/* Hero Section Comum */
.animais-hero,
.cursos-hero,
.palestras-hero,
.oficinas-hero,
.pedagogicas-hero {
    color: var(--white);
    padding: var(--space-16) 0;
}

.animais-hero .hero-content,
.cursos-hero .hero-content,
.palestras-hero .hero-content,
.oficinas-hero .hero-content,
.pedagogicas-hero .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.animais-hero .hero-text,
.cursos-hero .hero-text,
.palestras-hero .hero-text,
.oficinas-hero .hero-text,
.pedagogicas-hero .hero-text {
    flex: 1;
    background-color: var(--primary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    color: var(--white);
    max-width: 800px;
}

.animais-hero .hero-text h1,
.cursos-hero .hero-text h1,
.palestras-hero .hero-text h1,
.oficinas-hero .hero-text h1,
.pedagogicas-hero .hero-text h1 {
    font-family: var(--font-title);
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
    color: var(--white);
}

.animais-hero .hero-description,
.cursos-hero .hero-description,
.palestras-hero .hero-description,
.oficinas-hero .hero-description,
.pedagogicas-hero .hero-description {
    font-size: var(--text-lg);
    color: var(--white);
    line-height: 1.7;
}

.animais-hero .hero-description p,
.cursos-hero .hero-description p,
.palestras-hero .hero-description p,
.oficinas-hero .hero-description p,
.pedagogicas-hero .hero-description p {
    color: var(--white);
    margin-bottom: 0;
    max-width: 100%;
}

/* Seções de Listagem */
.posts-section {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.post-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.post-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.placeholder-image {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.post-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--gray-800);
    font-weight: 600;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
}

/* Páginas Single Comuns */
.animal-single,
.curso-single,
.palestra-single,
.oficina-single,
.pedagogica-single {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.animal-content,
.curso-content,
.palestra-content,
.oficina-content,
.pedagogica-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.animal-details,
.curso-details,
.palestra-details,
.oficina-details,
.pedagogica-details {
    padding: 0;
}

.post-description {
    font-size: var(--text-lg);
    color: var(--gray-700);
    margin-bottom: var(--space-6);
}

/* Seções de Detalhes */
.post-details-sections {
    margin-top: var(--space-8);
}

.post-section {
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.post-section h3 {
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
}

.post-content-text {
    line-height: 1.6;
    color: var(--gray-600);
}

.post-content-text p {
    margin-bottom: 15px;
}

/* Investimento específico para cursos */
.post-investimento-detail {
    text-align: center;
    padding: var(--space-6);
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border-radius: var(--radius-lg);
    margin-top: var(--space-4);
}

.investimento-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* Slider de Galeria Comum */
.animals-slider-section,
.courses-slider-section,
.palestras-slider-section,
.oficinas-slider-section,
.pedagogicas-slider-section {
    margin: 3rem 0;
}

.animals-slider-section .section-title,
.courses-slider-section .section-title,
.palestras-slider-section .section-title,
.oficinas-slider-section .section-title,
.pedagogicas-slider-section .section-title {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-6);
    text-align: center;
}

.animals-slider,
.courses-slider,
.palestras-slider,
.oficinas-slider,
.pedagogicas-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.slider-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-container {
    overflow: hidden;
    flex: 1;
}

.slider-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(.4,1,.4,1);
    gap: var(--space-4, 16px);
}

.slider-item {
    min-width: 320px;
    max-width: 400px;
    flex: 0 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}

.slider-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navegação */
.animal-navigation,
.curso-navigation,
.palestra-navigation,
.oficina-navigation,
.pedagogica-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: var(--primary-dark);
}

.back-to-animais,
.back-to-cursos,
.back-to-palestras,
.back-to-oficinas,
.back-to-pedagogicas {
    text-align: center;
    margin-top: var(--space-8);
}

.back-to-animais .btn,
.back-to-cursos .btn,
.back-to-palestras .btn,
.back-to-oficinas .btn,
.back-to-pedagogicas .btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: background 0.3s ease;
}

.back-to-animais .btn:hover,
.back-to-cursos .btn:hover,
.back-to-palestras .btn:hover,
.back-to-oficinas .btn:hover,
.back-to-pedagogicas .btn:hover {
    background: var(--primary-dark);
}

/* Paginação */
.pagination {
    text-align: center;
    margin-top: var(--space-12);
}

.pagination .page-numbers {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    margin: 0 var(--space-1);
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Estado vazio */
.no-posts {
    text-align: center;
    padding: var(--space-16) 0;
    color: var(--gray-600);
}

.no-posts h2 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
}

.no-posts p {
    font-size: var(--text-lg);
    line-height: 1.6;
}

/* Responsividade */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .animais-hero .hero-text h1,
    .cursos-hero .hero-text h1,
    .palestras-hero .hero-text h1,
    .oficinas-hero .hero-text h1,
    .pedagogicas-hero .hero-text h1 {
        font-size: var(--text-3xl);
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .animal-navigation,
    .curso-navigation,
    .palestra-navigation,
    .oficina-navigation,
    .pedagogica-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
    }
    
    .slider-item {
        min-width: 220px;
        max-width: 90vw;
    }
}
