@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

.recipe-header {
    width: 100%;
    height: 60vh;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/top-view-vegetable-soup-with-meat-inside-plate-grey.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.recipe-header .header-content p {
    margin-top: 1rem;
    font-size: 1.2rem;
    max-width: 600px;
}


.featured-recipe {
    width: 90%;
    max-width: 1200px;
    margin: 4rem auto;
}

.featured-content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.featured-image {
    flex: 1;
    min-height: 400px;
}

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

.featured-details {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-details h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-details p {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.recipe-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.recipe-meta i {
    color: #e94560;
}

.recipe-categories {
    background-color: #f9f9f9;
    padding: 4rem 2rem;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
}

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

.category-card h3 {
    padding: 1rem;
    text-align: center;
    margin-bottom: 0;
}

.category-card p {
    text-align: center;
    padding: 0 1rem 1rem;
    color: #666;
    font-size: 0.9rem;
}


.recipe-list {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.recipe-card {
    display: flex;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.recipe-image {
    flex: 1;
    min-width: 200px;
}

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

.recipe-content {
    flex: 2;
    padding: 2rem;
}

.recipe-content h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.recipe-content p {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.ingredients, .instructions, .recipe-tips, .share-recipe {
    margin-top: 2rem;
}

.ingredients h3, .instructions h3, .recipe-tips h3, .share-recipe h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #333;
}

.ingredients ul {
    list-style: disc;
    padding-left: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.instructions ol {
    padding-left: 1.5rem;
    counter-reset: item;
}

.instructions li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.instructions ol li {
    counter-increment: item;
    display: block;
}

.instructions ol li:before {
    content: counter(item) ". ";
    font-weight: bold;
    color: #e94560;
}

.recipe-tips p {
    font-style: italic;
    background-color: #f9f9f9;
    padding: 1rem;
    border-left: 4px solid #e94560;
}

.share-recipe .social-icons {
    display: flex;
    gap: 1rem;
}

.share-recipe .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.share-recipe .social-icons a:hover {
    background-color: #e94560;
    color: white;
}


.newsletter {
    background-color: #333;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.subscribe-form button {
    padding: 0.8rem 1.5rem;
    border: none;
    background-color: #e94560;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #d43851;
}


@media screen and (max-width: 1024px) {
    .featured-content {
        flex-direction: column;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .recipe-card {
        flex-direction: column;
    }
    
    .recipe-image {
        min-height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .recipe-header {
        height: 50vh;
    }
    
    .recipe-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .ingredients ul {
        grid-template-columns: 1fr;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
        border-radius: 5px;
    }
}

@media screen and (max-width: 480px) {
    .recipe-header .header-content h1 {
        font-size: 2rem;
    }
    
    .recipe-header .header-content h2 {
        font-size: 1.2rem;
    }
    
    .featured-details h2,
    .recipe-content h2 {
        font-size: 1.5rem;
    }
    
    .category-card img {
        height: 150px;
    }
    
    .recipe-content {
        padding: 1.5rem;
    }
}