/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Recipe Single Styling */
.recipe-single {
    margin-bottom: 40px;
}

.recipe-featured-image {
    margin-bottom: 20px;
}

.recipe-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.recipe-parent-listicle {
    background: #f9f9f9;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
    font-size: 14px;
}

.recipe-details {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.recipe-details h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.recipe-preparation {
    margin-bottom: 25px;
}

.recipe-preparation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipe-preparation li {
    margin-bottom: 8px;
}

.recipe-ingredients {
    margin-bottom: 25px;
}

.recipe-ingredients ul {
    padding-left: 20px;
}

.recipe-ingredients li {
    margin-bottom: 8px;
}

.recipe-instructions {
    margin-bottom: 25px;
}

.recipe-instructions ol {
    padding-left: 20px;
}

.recipe-instructions li {
    margin-bottom: 12px;
}

.recipe-nutrition {
    margin-bottom: 25px;
}

.recipe-nutrition ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.recipe-nutrition li {
    flex: 1 0 33.333%;
    margin-bottom: 8px;
    min-width: 150px;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.recipe-categories,
.recipe-tags {
    margin-bottom: 10px;
}

.recipe-categories-label,
.recipe-tags-label {
    font-weight: bold;
    margin-right: 5px;
}

.recipe-listicle-navigation {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.recipe-listicle-navigation h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.recipe-listicle-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipe-listicle-items li {
    margin-bottom: 10px;
}

.recipe-listicle-items a {
    color: #0073aa;
    text-decoration: none;
}

.recipe-listicle-items a:hover {
    text-decoration: underline;
}

/* Listicle Single Styling */
.listicle-single {
    margin-bottom: 40px;
}

.listicle-featured-image {
    margin-bottom: 20px;
}

.listicle-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.listicle-recipes {
    margin-top: 40px;
}

.listicle-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.listicle-recipe-item {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.listicle-recipe-image {
    height: 200px;
    overflow: hidden;
}

.listicle-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listicle-recipe-item:hover .listicle-recipe-image img {
    transform: scale(1.05);
}

.listicle-recipe-content {
    padding: 20px;
}

.listicle-recipe-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.listicle-recipe-title a {
    color: #333;
    text-decoration: none;
}

.listicle-recipe-title a:hover {
    color: #0073aa;
}

.listicle-recipe-excerpt {
    color: #666;
    margin-bottom: 15px;
}

.listicle-recipe-link {
    text-align: right;
}

.listicle-recipe-button {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.listicle-recipe-button:hover {
    background: #005580;
    color: #fff;
}

.listicle-categories,
.listicle-tags {
    margin-bottom: 10px;
}

.listicle-categories-label,
.listicle-tags-label {
    font-weight: bold;
    margin-right: 5px;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .listicle-recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-nutrition li {
        flex: 1 0 50%;
    }
}
