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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-gray-dark-5);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
}

/* Width constraints */
header, main {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Color swatches */
:root {
    --color-gray-light-1: #F5F5F5;
    --color-gray-dark-1: #DDD;
    --color-gray-dark-2: #AAA;
    --color-gray-dark-3: #999;
    --color-gray-dark-4: #555;
    --color-gray-dark-5: #333;

    --color-green-1: #008000;
    --color-green-2: #6B8E23;

    --color-yellow: #FFD700;

    --color-red-1: #FF4500;
    --color-red-2: #B22222;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: black;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    width: 40px;
    height: auto;
}
.logo h1 {
    margin-left: 10px;
    font-weight: 600;
}

nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-right: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
    
}
nav ul li:hover {
    transform: scale(1.3);
    color: yellow;
}   
nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: 400;
}

/* Breadcrumb section styling */
.breadcrumb {
    background-color: var(--color-green-1);
    color: white;
    padding: 15px;
    text-align:center;
    font-weight: 400;
}

/* Recipe Hero */
/* Recipe Hero */
.recipe-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    gap: 30px;
}

.hero-text {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

.recipe-hero h2 {
    color: var(--color-gray-dark-5);
    font-weight: 600;
    margin-bottom: 15px;
}

.author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-direction: column;
}

.recipe-hero .author img {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    margin-right: 10px;
    align-items: center;
    
}

.recipe-details {
    list-style-type: none;
    margin-bottom: 20px;
    padding: 0;
}

.recipe-details li {
    margin-bottom: 5px;
}

.recipe-description {
    font-weight: 300;
    margin-bottom: 20px;
}

.recipe-hero img {
    width: 55%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}



/* Ingredients & Instructions */
.ingredients-instructions {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px; 
    margin-top: 30px;
}

.ingredients .instructions {
    width: 48%; 
    display: flex;
    flex-direction: column;
}

.ingredients ul {
    list-style: none; 
    padding-left: 20px;
    flex-grow: 1;
    font-size: 0.9rem;
}

.ingredients ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.instructions ol {
    padding-left: 20px; 
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.9rem;
}

.instructions ol li {
    margin-bottom: 8px;
}

h2{
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Recipe Rating */
.recipe-rating-container {
    background-color: red; /* Red container */
    padding: 0px;
    color: white;
}
.recipe-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 10px;
}

.recipe-rating .tags ul {
    list-style-type: none;
    display: flex;
    gap: 10px;
}

.recipe-rating .rating {
    display: flex;
    gap: 5px;
    align-items: center;
}

.rating .stars {
    color: var(--color-yellow);
}

/* Recommendations */
.recommendations {
    margin-top: 50px;
    text-align: center;
    font-size: 1.1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.recommendations-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    gap: 20px; /* Add gap between items */
}

.recommendation {
    width: 30%;
    text-align: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.recommendation img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.recommendation h4 {
    font-size: 1.1rem;
    margin: 10px 0;
}

.recommendation p {
    font-size: 0.9rem;
    margin: 10px;
    color: #666;
}

.user-rating {
    display: inline-block;
    background-color: #8BC34A;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
}
.recommendation .user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.recommendation .user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.recommendation p:last-of-type {
    margin-bottom: 15px;
}
/* Footer */
.main-footer {
    background-color: var(--color-gray-dark-3);
    color: white;
    display: flex;
    flex-direction: column;
    max-width: 1920px;
    padding-top: 10px;
    margin: 0 auto;
    
}
.footer-content {
    display: flex;
    align-items: center;
    margin: 0 auto;
    justify-content: flex-start;
    align-content: center;
    padding-top: 10px, 0px;
    margin-left: 25px;
}
.footer-logo {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-right: 100px;
}

.footer-logo h2 {
    margin-left: 100px;
    font-weight: 600;
}

.footer-logo-img {
    width: 100px; 
    height: auto;
    margin-left: 150px;
}

footer ul {
    list-style-type: none;
}

footer ul li {
    margin-bottom: 5px;
}
.footer-details {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-right: 100px;
}
.social-media ul {
    align-content: end;
    gap: 15px;
    justify-content: flex-end;
    margin-top:100px;
    display: flex;
    margin-right: 200px;
}

.social-media ul li {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-media ul li:hover {
    transform: scale(1.2);
    color: white;
}
/* Footer bottom section for copyright */
.footer-bottom {
    background-color: var(--color-gray-dark-5);
    display: flex;
    width: 100%;
    text-align: center;
    padding: 5px;
    align-items: center;
    font-size: 12px;
}

.copyright-left,
.copyright-right {
    flex: 5;
}

.copyright-left {
    text-align: left;
    margin-left: 150px;
}

.copyright-right {
    text-align: right;
    margin-right: 80px;
}