/* Single Animal Page Styles */

/* Base Layout */
.header-spacer {
    height: 80px;
    /* Spacer for fixed header */
}

.detail-container {
    padding: 2rem 1rem 5rem 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #abde5b;
}

/* Two Column Layout */
.animal-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Image wider */
    gap: 4rem;
    align-items: start;
}

/* Gallery Section */
.animal-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.status-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #abde5b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumb {
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.thumb:hover {
    opacity: 1;
    border-color: #abde5b;
}

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

/* Info Section */
.animal-info {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.info-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.badge {
    background: #f8f9fa;
    color: #555;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #eee;
}

.badge i {
    color: #abde5b;
}

.badge-primary {
    background: rgba(171, 222, 91, 0.1);
    color: #333;
    border-color: #abde5b;
}

.info-section {
    margin-bottom: 2.5rem;
}

.info-section h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Compatibility Box */
.compatibility-box .compat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.compat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #eee;
}

.compat-item.positive {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.compat-item.negative {
    background-color: #fbe9e7;
    color: #c62828;
    border-color: #ffccbc;
}

.compat-item i {
    font-size: 1.2rem;
}

.fs-icon {
    font-size: 1.5rem;
}

/* Description */
.description-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* CTA */
.cta-section {
    background-color: #fcefd6;
    /* Light warn color */
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed #abde5b;
}

/* Updated Buttons Group */
.cta-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Space between buttons */
    margin-bottom: 1rem;
}

.cta-buttons-group .btn {
    width: 100%;
    margin: 0;
    font-size: 1.1rem;
    padding: 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.cta-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .animal-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .animal-gallery {
        position: static;
    }

    .main-image {
        height: 400px;
    }
}

@media screen and (max-width: 576px) {
    .main-image {
        height: 300px;
    }

    .thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .compat-grid {
        grid-template-columns: 1fr;
    }
}