/* Completely redesigned recipe CSS */
#recipe-page {
    background-color: #FFB200;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    margin-bottom: 50px;
    position: relative;
}

/* Recipe title styling */
#recipe-title {
    background-color: #640D5F;
    color: whitesmoke;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
}

#recipe-title h1 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Grid container for recipe content */
.recipe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 30px;
}

/* Article (introduction) styling */
article {
    background-color: #EB5B00;
    color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    grid-column: span 3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

article p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Ingredients section */
#instructions {
    background-color: #EB5B00;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    grid-column: span 1;
}

#instructions h3 {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid white;
    padding-bottom: 8px;
    font-size: 1.5rem;
}

/* Directions section */
#ingredients {
    background-color: #EB5B00;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    grid-column: span 1;
}

#ingredients h3 {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid white;
    padding-bottom: 8px;
    font-size: 1.5rem;
}

/* Recipe tips section */
#recipe-tips {
    background-color: #EB5B00;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    grid-column: span 1;
}

#recipe-tips h3 {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid white;
    padding-bottom: 8px;
    font-size: 1.5rem;
}

/* Recipe image and video section */
#recipe-image {
    background-color: #640D5F;
    padding: 20px;
    border-radius: 10px;
    color: antiquewhite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    grid-column: span 3;
    text-align: center;
}

#recipe-image h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid antiquewhite;
    padding-bottom: 8px;
    font-size: 1.5rem;
}

#recipe-image video, #recipe-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    margin: 10px auto;
}

#recipe-image video {
    max-width: 80%;
}

/* Footer styling */
#footer {
    background-color: #640D5F;
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    grid-column: span 3;
    text-align: center;
    margin-top: 20px;
}

#footer h3 {
    margin-bottom: 10px;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
    display: inline-block;
}

#footer a {
    color: #FFD700;
    text-decoration: none;
    transition: all 0.3s ease;
}

#footer a:hover {
    color: white;
    text-decoration: underline;
}

/* List styling */
.ingredient-item {
    color: white;
    list-style-type: circle;
    margin-bottom: 8px;
    padding-left: 5px;
}

.step {
    color: white;
    margin-bottom: 12px;
    padding-left: 5px;
}

/* Highlighted text */
span {
    background-color: yellow;
    color: black;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
}

/* Body background */
body {
    background-color: #FFB200;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

ul, ol {
    padding-left: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .recipe-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    article {
        grid-column: span 2;
    }
    
    #instructions {
        grid-column: span 1;
    }
    
    #ingredients {
        grid-column: span 1;
    }
    
    #recipe-tips {
        grid-column: span 2;
    }
    
    #recipe-image {
        grid-column: span 2;
    }
    
    #footer {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    article, #instructions, #ingredients, #recipe-tips, #recipe-image, #footer {
        grid-column: span 1;
    }
}

/* Animated elements */
#recipe-title, article, #instructions, #ingredients, #recipe-tips, #recipe-image, #footer {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#recipe-title:hover, article:hover, #instructions:hover, #ingredients:hover, #recipe-tips:hover, #recipe-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Special effects */
.ingredient-item::marker {
    color: #FFD700;
}

.step::marker {
    color: #FFD700;
}

/* Recipe tips list styling */
#recipe-tips ul {
    list-style-type: square;
}

#recipe-tips li {
    margin-bottom: 10px;
}