/* Adoption List Page Styles */

.adoptlist-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

/* Sidebar Filters */
.filter-sidebar {
    width: 280px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-sidebar h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #001f3f;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.filter-option:hover {
    background: #f5f5f5;
}

.filter-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.filter-option span {
    font-size: 15px;
    color: #333;
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #001f3f;
}

.search-btn,
.clear-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.search-btn {
    background: #001f3f;
    color: white;
}

.search-btn:hover {
    background: #003366;
}

.clear-btn {
    background: #e0e0e0;
    color: #333;
}

.clear-btn:hover {
    background: #d0d0d0;
}

/* Main Content Area */
.pets-content {
    flex: 1;
}

.pets-header {
    margin-bottom: 30px;
}

.pets-header h1 {
    font-size: 36px;
    color: #001f3f;
    margin-bottom: 10px;
}

.pets-count {
    font-size: 16px;
    color: #666;
}

/* Loading, Error, No Results */
.loading,
.error-message,
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.loading i,
.error-message i,
.no-results i {
    font-size: 48px;
    color: #001f3f;
    margin-bottom: 20px;
}

.loading p,
.error-message p,
.no-results p {
    font-size: 18px;
    color: #666;
}

.loading i {
    color: #001f3f;
}

.error-message i {
    color: #d32f2f;
}

/* Pets Grid */
.pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Pet Card */
.pet-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.pet-image-link {
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

.pet-card:hover .pet-image {
    transform: scale(1.05);
}

.pet-info {
    padding: 20px;
}

.pet-name {
    font-size: 22px;
    margin-bottom: 8px;
    color: #001f3f;
}

.pet-name a {
    text-decoration: none;
    color: #001f3f;
    transition: color 0.2s;
}

.pet-name a:hover {
    color: #003366;
}

.pet-breed {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.pet-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.pet-details span {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.pet-details i {
    margin-right: 8px;
    color: #001f3f;
    width: 16px;
}

.pet-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-foster {
    background: #fff3e0;
    color: #f57c00;
}

.status-medical-hold {
    background: #ffebee;
    color: #c62828;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .adoptlist-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .filter-sidebar {
        width: 100%;
        position: static;
    }

    .pets-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .adoptlist-container {
        padding: 20px 15px;
        gap: 25px;
    }

    .filter-sidebar {
        padding: 20px;
    }

    .filter-sidebar h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .pets-header h1 {
        font-size: 28px;
    }

    .pets-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .pet-card {
        font-size: 14px;
    }

    .pet-image-link {
        height: 220px;
    }

    .pet-info {
        padding: 15px;
    }

    .pet-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .adoptlist-container {
        padding: 15px 10px;
    }

    .filter-sidebar {
        padding: 15px;
    }

    .pets-header h1 {
        font-size: 24px;
    }

    .pets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pet-image-link {
        height: 250px;
    }
}
