/* Template Styles */

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-item {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.entry-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.entry-title a {
    color: var(--base-color-darker);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--base-color);
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-summary {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Single Post */
.single-post {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-post .entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .entry-meta {
    font-size: 1rem;
    color: #666;
}

.single-post .post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.single-post .entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin: 2rem 0 1rem;
    color: var(--base-color-darker);
}

/* Page Content */
.page-content {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-content .entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-content .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-content .page-thumbnail {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.page-content .entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Search Results */
.search-results {
    margin-bottom: 3rem;
}

.search-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-thumbnail {
    flex: 0 0 100px;
}

.search-thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.search-content {
    flex: 1;
}

.search-content .entry-title {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.search-content .entry-summary {
    margin-bottom: 1rem;
    color: #666;
}

.search-content .entry-meta {
    font-size: 0.9rem;
    color: #999;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-404 .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--base-color-darker);
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-actions {
    margin: 2rem 0;
}

.error-suggestions {
    margin-top: 2rem;
    text-align: left;
}

.error-suggestions h2 {
    margin-bottom: 1rem;
    color: var(--base-color-darker);
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
}

.error-suggestions li {
    margin-bottom: 0.5rem;
}

.error-suggestions a {
    color: var(--base-color);
    text-decoration: none;
}

.error-suggestions a:hover {
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results .page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--base-color-darker);
}

.search-form-container {
    margin: 2rem 0;
}

.search-suggestions {
    margin-top: 2rem;
    text-align: left;
}

.search-suggestions h2 {
    margin-bottom: 1rem;
    color: var(--base-color-darker);
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    margin-bottom: 0.5rem;
}

.search-suggestions a {
    color: var(--base-color);
    text-decoration: none;
}

.search-suggestions a:hover {
    text-decoration: underline;
}

/* Search Form */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
}

.search-field:focus {
    border-color: var(--base-color);
}

.search-submit {
    padding: 12px 16px;
    background-color: var(--base-color-darker);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: var(--base-color);
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--base-color-darker);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.comment-author {
    font-weight: bold;
    color: var(--base-color-darker);
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

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

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

.post-navigation a {
    color: var(--base-color);
    text-decoration: none;
    font-weight: 500;
}

.post-navigation a:hover {
    color: var(--base-color-darker);
}

/* Sidebar */
.widget-area {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--base-color-darker);
    border-bottom: 2px solid var(--base-color-light);
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--base-color-darker);
    text-decoration: none;
}

.widget a:hover {
    color: var(--base-color);
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .search-item {
        flex-direction: column;
    }
    
    .search-thumbnail {
        flex: none;
        text-align: center;
    }
    
    .single-post .entry-title,
    .page-content .entry-title {
        font-size: 2rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-next {
        text-align: left;
    }
}

/* ===== ESTILOS PARA ANIMAIS ===== */

/* Grid de Animais */
.animais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.animal-item {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.animal-item:hover {
    transform: translateY(-5px);
}

.animal-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.animal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}


.animal-content .entry-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.animal-content .entry-title a {
    color: var(--base-color-darker);
    text-decoration: none;
}

.animal-content .entry-title a:hover {
    color: var(--base-color);
}

/* Meta informações do animal na listagem */
.animal-meta {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.animal-meta span {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--base-color);
    color: var(--primary);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.animal-especie {
    background-color: var(--base-color) !important;
}

.animal-idade {
    background-color: #28a745 !important;
}

.animal-habitat {
    background-color: #17a2b8 !important;
}

.animal-content .entry-summary {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #666;
}

.animal-content .entry-footer {
    text-align: center;
}

.animal-content .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--base-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.animal-content .btn:hover {
    background-color: var(--base-color-darker);
}

/* Página Individual do Animal */
.animal-single {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.animal-single .animal-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.animal-single .animal-details {
    padding: 0;
}

.animal-single .entry-header {
    margin-bottom: var(--space-8);
}

.animal-single .entry-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-6);
    color: var(--gray-800);
}

/* Informações do Animal */
.animal-info {
    background-color: var(--gray-50);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
}

.animal-info p {
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
}

.animal-info p:last-child {
    margin-bottom: 0;
}

.animal-info strong {
    color: var(--gray-800);
    font-weight: 600;
}

.animal-info em {
    color: var(--gray-600);
    font-style: italic;
}

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

.animal-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);
}

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

.animal-section p {
    line-height: 1.6;
    color: var(--gray-600);
}

/* Navegação entre Animais */
.animal-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;
}

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

.back-to-animals {
    text-align: center;
    margin-top: var(--space-8);
}

.back-to-animals .btn {
    display: inline-block;
    padding: var(--space-4) var(--space-8);
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-2xl);
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.back-to-animals .btn:hover {
    background-color: var(--primary-dark);
}

/* Slider de Animais */
.animals-slider-section {
    padding: var(--space-8) 0 var(--space-16);
    margin-top: var(--space-8);
}

.animals-slider-section .section-title {
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--gray-800);
    font-size: var(--text-3xl);
}

.animals-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: 0 var(--space-4);
    box-sizing: border-box;
}

.slider-container {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    width: max-content;
}

.slider-item {
    flex: 0 0 400px;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    margin-right: var(--space-4);
    padding-bottom: var(--space-4);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.slider-item:last-child {
    margin-right: 0;
}

.slider-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: var(--text-xl);
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-btn:hover:not(:disabled) {
    background-color: var(--primary-dark);
}

.slider-btn:disabled {
    background-color: var(--gray-300);
    cursor: not-allowed;
}

/* Responsividade */
@media (max-width: 1200px) {
    .slider-item {
        flex: 0 0 350px;
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 1024px) {
    .slider-item {
        flex: 0 0 300px;
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .slider-item {
        flex: 0 0 250px;
        width: 250px;
        height: 250px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: var(--text-lg);
    }
}

@media (max-width: 480px) {
    .slider-item {
        flex: 0 0 200px;
        width: 200px;
        height: 200px;
    }
}

/* Responsividade para Animais */
@media (max-width: 768px) {
    .animais-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .animal-single .animal-content {
        padding: 1rem;
    }
    
    .animal-single .entry-title {
        font-size: 2rem;
    }
    
    .animal-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .animals-slider {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .slider-item {
        flex: 0 0 250px;
        min-width: 250px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .slider-item {
        flex: 0 0 200px;
        min-width: 200px;
    }
    
    .slider-image {
        min-height: 120px;
        max-height: 180px;
    }
} 