:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark: #2C3E50; /*text */
    --light: #f7f7f7; /* background */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.4;
}

header {
    background-color: var(--secondary-color);
    padding: 60px 40px;
    color: white;
    margin: 0 auto;
    max-width: 1300px;
    text-align: center;
    margin-bottom: 60px;
}

header h1 { 
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

header p {
    margin: 10px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.recipe-card {
    position: relative;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

.recipe-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.recipe-content {
    padding: 20px;
}

.recipe-content h2 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-top: 5px;
}

.recipe-content p {
    color: #5a6c7d;
    margin-bottom: 5px;
    overflow-wrap: wrap;
}

.rating {
    text-align: center;
    font-size: 1.2rem;
    margin: 15px 0;
    letter-spacing: 2px;
}

.view-recipe {
    background-color: var(--accent-color);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.view-recipe:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
    cursor: pointer;
}

footer {
    background-color: var(--secondary-color);
    padding: 40px 20px;
    color: white;
    margin: 0 auto;
    max-width: 1300px;
    text-align: center;
}

@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 40px 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
}