/* Animals Grid Homepage Styles */

.animals-grid-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.animals-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.animal-grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animal-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.animal-grid-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.animal-thumbnail {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.animal-grid-item:hover .animal-thumbnail img {
    transform: scale(1.05);
}

.animal-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.animal-content {
    padding: 20px;
}

.animal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #333;
}

.animal-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Pagination Styles */
.animals-pagination {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.animals-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.animals-pagination .page-numbers:hover,
.animals-pagination .page-numbers.current {
    background: #667eea;
    color: white;
}

.no-animals-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .animals-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .animals-grid-homepage {
        padding: 20px 15px;
    }
    
    .animal-thumbnail {
        height: 180px;
    }
    
    .animal-content {
        padding: 15px;
    }
    
    .animal-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .animals-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
