* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    margin-bottom: 1rem;
}

.search-container {
    max-width: 400px;
    margin: 0 auto;
}

#search {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

main {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

a {
	text-decoration: none;
}

h3 {
	font-size: 1.6rem;
	color: #2c3e50;
    margin-top: 1rem;
}

/* Список рецептов */
.recipes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recipe-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-card-content {
    padding: 1rem;
}

.recipe-card h3 {
    color: #2c3e50;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.views {
	color: #7f8c8d;
    font-size: 0.9rem;
}

.recipe-meta-detail {
	display: flex;
	justify-content: space-between;
    color: #7f8c8d;
    font-size: 0.9rem;
}


/* Детальная страница */
.recipe-detail {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.back-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.recipe-detail h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.star {
    color: #ffd700;
    font-size: 1.5rem;
}

.gallery {
    margin: 1.5rem 0;
}

.gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
}

#recipeIngredients {
    list-style-type: none;
    margin: 1rem 0;
}

#recipeIngredients li {
    padding: 0.5rem;
    background: #f8f9fa;
    border-left: 3px solid #3498db;
    margin-bottom: 0.5rem;
}

.instructions {
    white-space: pre-line;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .recipes-list {
        grid-template-columns: 1fr;
    }
    
    .recipe-meta {
        flex-direction: column;
    }
}


.no-results {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
    background: white; /* как у recipe-card */
    border: 1px solid #e0e0e0; /* как у recipe-card */
    border-radius: 8px; /* как у recipe-card */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
