/* Recipes List Page Styles */
body {
    background-color: #e6f0ff;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.search-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
    text-align: center;
}

.search-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

/* Search Box */
.search-box {
    display: flex;
    margin: 0 auto 2rem;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-button {
    padding: 0.75rem 1.5rem;
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #d35400;
}

/* Filters Section */
.filters-section {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filters-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #e67e22;
    color: white;
    border-color: #e67e22;
}

.filter-btn.active {
    background-color: #e67e22;
    color: white;
    border-color: #e67e22;
}


/* Results Section */
.results-section {
    margin-bottom: 3rem;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.recipe-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(180, 0, 0, 0.2);
    border: 1px solid rgba(180, 0, 0, 0.1);
}

.recipe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-content {
    padding: 1rem;
}

.recipe-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.875rem;
}

.recipe-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-icon {
    color: #b40000;
}

.recipe-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.recipe-card-difficulty {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.recipe-card-difficulty.easy {
    background-color: #27ae60;
}

.recipe-card-difficulty.medium {
    background-color: #f39c12;
}

.recipe-card-difficulty.hard {
    background-color: #e74c3c;
}

.recipe-card-content {
    padding: 1.25rem;
}

.recipe-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.recipe-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

.recipe-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.recipe-card-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.recipe-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.recipe-card-date {
    font-size: 0.8rem;
    color: #888;
}

.recipe-card-link {
    color: #e67e22;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.recipe-card-link:hover {
    color: #d35400;
    text-decoration: underline;
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.load-more-btn:hover {
    background-color: #d35400;
}

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

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.no-results p {
    color: #666;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #e67e22;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: none;
}

/* Add responsive breakpoints */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .recipes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .recipes-grid {
        grid-template-columns: 1fr;
    }
}