.recipe-page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* =========================================
   חלק עליון (Hero & Meta)
   ========================================= */
.recipe-hero {
    margin-bottom: var(--spacing-sm);
}

.recipe-image-wrapper {
    position: relative;
    width: 100%;
    /* מכריח את המיכל לשמור על פרופורציה של 16:9 בכל מסך */
    aspect-ratio: 16 / 9; 
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.recipe-meta-content {
    text-align: right;
}

.recipe-hero .recipe-title {
    font-family: 'Rubik', sans-serif;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.badge {
    font-size: 1.3rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-inline-start: 8px;
}

.moms-badge {
    font-size: 1.1rem;
    background-color: #fdf5e6; 
    color: #8b5a2b; 
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #f5deb3;
    display: inline-block;
    vertical-align: middle;
    margin-inline-start: 12px;
    white-space: nowrap;
}

.recipe-image-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.recipe-rating {
    color: #f39c12;
    font-size: 1.0rem;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6); 
}

.photographer-credit {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; 
    align-items: center;
    font-size: 1.1rem;
    color: #555;
    margin-top: 1rem;
}

.creator-link {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

.creator-link:hover {
    text-decoration: underline;
}

.vegan-btn {
    display: inline-block;
    background-color: transparent;
    color: #2e7d32; 
    padding: 0;
    border: none;
    text-decoration: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.vegan-btn .link-text {
    text-decoration: underline;
}

.vegan-btn .no-underline {
    text-decoration: none;
    display: inline-block;
    margin-inline-start: 6px;
}

.vegan-btn:hover {
    background-color: transparent;
    border: none;
    opacity: 0.7;
}

/* =========================================
   גוף המתכון
   ========================================= */
.recipe-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #eee;
}

/* גריד שמתפצל לשתי עמודות במסכים גדולים */
.recipe-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .recipe-grid-layout {
        grid-template-columns: 1fr 2fr;
    }
}

.ingredients-section h2,
.instructions-section h2 {
    font-family: 'Rubik', sans-serif;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.ingredients-list {
    list-style-type: none;
    padding: 0;
}

.ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
}

.ingredients-list li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
}

.instructions-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

/* =========================================
   תחתית המתכון (קטגוריות ודומים)
   ========================================= */
.recipe-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid #eee;
}

.recipe-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: var(--spacing-xl);
}

.tag-link {
    background-color: #f5f5f5;
    color: #555;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.tag-link:hover {
    background-color: #e0e0e0;
}

.similar-recipes-section h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.hidden {
    display: none !important;
}

.recipe-image-wrapper {
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.recipe-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8faf9;
    padding: 5px 20px;
    border-radius: 0 0 12px 12px;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.info-bar-right {
    display: flex;
    gap: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.info-bar-left {
    display: flex;
    align-items: center;
}