/* Recipe Container */
.recipe-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Recipe Header */
.recipe-header {
    margin-bottom: 30px;
    text-align: center;
}

.recipe-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.recipe-excerpt {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.recipe-featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Recipe Meta Information */
.recipe-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border-left: none;
}

.recipe-meta-item {
    text-align: left;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.recipe-meta-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9em;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 4px;
    display: block;
}

.recipe-meta-value {
    font-size: 1em;
    color: #333;
    font-weight: 400;
}

/* Recipe Sections */
.recipe-section {
    margin-bottom: 35px;
}

.recipe-section-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007cba;
    font-weight: 600;
}

/* Ingredients List */
.recipe-ingredients {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 30px;
}

.recipe-ingredients ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipe-ingredients li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    font-size: 1em;
    line-height: 1.4;
}

.recipe-ingredients li:last-child {
    border-bottom: none;
}

.recipe-ingredients li:before {
    content: none;
}

/* Instructions */
.recipe-instructions {
    background-color: #fff;
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 30px;
}

.recipe-instructions ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipe-instructions li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    position: relative;
    line-height: 1.6;
}

.recipe-instructions li:before {
    content: counter(step-counter);
    position: absolute;
    left: -12px;
    top: -5px;
    background-color: #007cba;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

/* Recipe Notes */
.recipe-notes {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.recipe-notes p {
    margin: 0;
    color: #856404;
    line-height: 1.6;
}

/* Recipe Source */
.recipe-source {
    background-color: transparent;
    border: none;
    border-left: none;
    padding: 0;
    border-radius: 0;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.recipe-source-label {
    font-weight: 500;
    color: #666;
    margin-right: 8px;
}

.recipe-source-value {
    color: #333;
    font-style: normal;
}

/* Recipe Type Tags */
.recipe-type-tags {
    text-align: center;
    margin-bottom: 20px;
}

.recipe-type-tag {
    display: inline-block;
    background-color: #007cba;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    margin: 0 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.recipe-type-tag:hover {
    background-color: #005a87;
    color: white;
    text-decoration: none;
}

/* Recipe Print Button */
.recipe-print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-print-button:hover {
    background-color: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.recipe-print-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-print-button .elementor-button-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.recipe-print-button .elementor-button-icon {
    display: flex;
    align-items: center;
    font-size: inherit;
}

.recipe-print-button .elementor-button-text {
    white-space: nowrap;
}

/* Print button alignment */
.elementor-align-left .recipe-print-button {
    margin-left: 0;
    margin-right: auto;
}

.elementor-align-center .recipe-print-button {
    margin-left: auto;
    margin-right: auto;
}

.elementor-align-right .recipe-print-button {
    margin-left: auto;
    margin-right: 0;
}

.elementor-align-justify .recipe-print-button {
    width: 100%;
}

/* Print Styles */
@media print {
    .recipe-container {
        box-shadow: none;
        max-width: none;
    }
    
    .recipe-featured-image {
        max-height: 200px;
    }
    
    .recipe-meta {
        background-color: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .recipe-instructions li:before {
        background-color: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipe-container {
        padding: 15px;
        margin: 10px;
    }
    
    .recipe-title {
        font-size: 2em;
    }
    
    .recipe-meta {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .recipe-section-title {
        font-size: 1.5em;
    }
    
    .recipe-ingredients,
    .recipe-instructions,
    .recipe-notes {
        padding: 15px;
    }
    
    .recipe-instructions li:before {
        left: -8px;
        width: 25px;
        height: 25px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .recipe-meta {
        grid-template-columns: 1fr;
    }
    
    .recipe-title {
        font-size: 1.8em;
    }
    
    .recipe-featured-image {
        height: 200px;
    }
}

/* Elementor Widget Specific Styles */
.elementor-recipe-meta {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 20px;
}

.elementor-recipe-meta > div {
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.elementor-recipe-meta > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.elementor-recipe-meta strong {
    color: #666;
    margin-right: 8px;
    font-weight: 500;
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recipe-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.recipe-ingredients li:hover {
    background-color: transparent;
    padding-left: 0;
    transition: none;
}

.recipe-instructions li:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}