/**
 * Public Styles
 * Frontend styles for animal taxonomy pages
 */

/* ============================================
   Breadcrumbs
   ============================================ */

.ats-breadcrumbs {
    margin: 20px 0;
    padding: 10px 0;
    font-size: 14px;
}

.ats-breadcrumbs .breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.ats-breadcrumbs .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ats-breadcrumbs .breadcrumb-item a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s;
}

.ats-breadcrumbs .breadcrumb-item a:hover {
    color: #005177;
    text-decoration: underline;
}

.ats-breadcrumbs .breadcrumb-current {
    color: #555;
    font-weight: 500;
}

.ats-breadcrumbs .breadcrumb-separator {
    color: #999;
    margin: 0 2px;
}

/* ============================================
   Archive Header
   ============================================ */

.ats-archive-header {
    margin: 30px 0;
    padding: 20px 0;
    border-bottom: 2px solid #e5e5e5;
}

.ats-archive-title {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
}

.ats-archive-description {
    margin: 15px 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.ats-archive-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
    font-size: 0.95em;
}

.ats-taxonomy-label {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 3px;
    font-weight: 500;
    color: #333;
}

.ats-animal-count {
    color: #666;
}

/* ============================================
   Child Taxonomies Grid
   ============================================ */

.ats-child-taxonomies {
    margin: 40px 0;
}

.ats-child-taxonomies h2 {
    margin: 0 0 20px 0;
    font-size: 1.8em;
    font-weight: 600;
}

.ats-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ats-taxonomy-card {
    display: block;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ats-taxonomy-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ats-taxonomy-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #0073aa;
}

.ats-taxonomy-card:hover h3 {
    color: #005177;
}

.ats-taxonomy-scientific {
    font-style: italic;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.ats-taxonomy-count {
    font-size: 0.9em;
    color: #999;
}

/* ============================================
   Animals Section
   ============================================ */

.ats-animals-section {
    margin: 40px 0;
}

.ats-animals-section h2 {
    margin: 0 0 25px 0;
    font-size: 1.8em;
    font-weight: 600;
}

.ats-animals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.ats-animal-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ats-animal-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.ats-animal-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.ats-animal-card:hover .ats-animal-thumbnail img {
    transform: scale(1.05);
}

.ats-animal-content {
    padding: 20px;
}

.ats-animal-title {
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
}

.ats-animal-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.ats-animal-title a:hover {
    color: #0073aa;
}

.ats-animal-scientific {
    font-style: italic;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 10px;
}

.ats-animal-excerpt {
    margin: 12px 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
}

.ats-animal-link {
    display: inline-block;
    margin-top: 10px;
    color: #0073aa;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.ats-animal-link:hover {
    color: #005177;
    text-decoration: underline;
}

/* ============================================
   Pagination
   ============================================ */

.ats-pagination {
    margin: 40px 0;
    text-align: center;
}

.ats-pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ats-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.ats-pagination .page-numbers:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ats-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ats-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ============================================
   No Results
   ============================================ */

.ats-no-animals {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 30px 0;
}

.ats-no-animals p {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .ats-archive-title {
        font-size: 2em;
    }
    
    .ats-taxonomy-grid,
    .ats-animals-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .ats-breadcrumbs {
        font-size: 13px;
    }
    
    .ats-archive-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .ats-taxonomy-grid,
    .ats-animals-grid {
        grid-template-columns: 1fr;
    }
    
    .ats-archive-title {
        font-size: 1.6em;
    }
}
