/* --- Wrapper Scope (Adds High Specificity) --- */
/* هذا الـ ID هو "الحارس" الذي يحمي تنسيقاتك من القالب */

#z-collection-wrap .z-recipe-card {
    font-family: inherit;
    background-color: #fff;
    color: #111;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

#z-collection-wrap .z-recipe-card * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Element Styling --- */

/* Image */
#z-collection-wrap .z-recipe-img-wrap {
    width: 100%;
    height: 100%;
    display: block;
}




#z-collection-wrap .z-recipe-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none; /* لتجنب أي خطوط إضافية */
}

#z-collection-wrap .z-recipe-img-wrap {
    line-height: 0; /* يزيل أي تأثير خط النص */
}







#z-collection-wrap .z-recipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Nutrition Info */
#z-collection-wrap .z-recipe-nutrition {
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 600;
    color: #555;
    gap: 8px;
}

#z-collection-wrap .z-divider { color: #ccc; }

/* Texts */
#z-collection-wrap .z-recipe-title {
    text-transform: uppercase;
    line-height: 1.3;
    font-weight: 700;
    color: #000;
    margin: 0; /* Reset theme margins */
}

#z-collection-wrap .z-recipe-desc {
    font-style: italic;
    line-height: 1.6;
    color: #444;
}

/* Main Button */
#z-collection-wrap .z-recipe-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
#z-collection-wrap .z-recipe-btn:hover {
    background-color: #333;
}

/* --- Ghost Button Style for Navigation --- */
/* تم التعديل هنا لفرض اللون وعدم وجود خط */
 .z-nav-link {
    display: inline-block;
    font-size: 0.75rem;
    color: #111 !important; /* فرض اللون الأسود وتجاهل لون روابط القالب */
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 6px 14px;
    text-decoration: none !important; /* إجبار عدم وجود خط تحت النص */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    width: auto; 
}


.z-nav-link:hover {
    border-color: #000;
    background-color: #f9f9f9;
    color: #000 !important; /* ضمان بقاء اللون أسود عند التمرير */
    text-decoration: none !important; /* ضمان عدم ظهور خط عند التمرير */
}

/* =========================================
   MOBILE LAYOUT (Max-width: 768px)
   ========================================= */
@media screen and (max-width: 768px) {
    #z-collection-wrap .z-recipe-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-bottom: 20px;
    }
    
    /* 1. Jump Link */
  .z-link-top {
        align-self: center;
        margin-bottom: 15px;
        order: -5;
    }

    /* 2. Badge */
    #z-collection-wrap .z-recipe-badge {
        width: 100%;
        text-align: center;
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 25px;
        color: #000;
        background: transparent;
        position: static;
        order: -4;
    }

    /* 3. Title */
    #z-collection-wrap .z-recipe-title {
        text-align: center;
        font-size: 1.4rem;
        padding: 0 15px;
        margin-bottom: 15px;
        order: -3;
    }
     
    /* 4. Image */
    #z-collection-wrap .z-recipe-img-wrap {
        height: 250px;
        margin-bottom: 20px;
        order: -2; 
    }
     
    /* Description */
    #z-collection-wrap .z-recipe-desc {
        text-align: center;
        padding: 0 20px;
        margin-bottom: 20px;
        font-size: 1rem;
        display: block;
    }
     
    /* Nutrition */
    #z-collection-wrap .z-recipe-nutrition {
        width: 100%;
        justify-content: center;
        margin-bottom: 25px;
        padding: 0 10px;
        gap: 4px;
        font-size: clamp(9px, 3.2vw, 13px);
    }
     
    /* Button */
    #z-collection-wrap .z-recipe-btn {
        width: calc(100% - 40px);
        margin: 0 auto 20px auto;
        padding: 16px 0;
        font-size: 0.9rem;
    }

    /* Last: Back to Top Link */
  .z-link-bottom {
        align-self: center;
        margin-bottom: 10px;
        order: 10;
    }
}





/* =========================================
   DESKTOP LAYOUT (Min-width: 769px)
   ========================================= */
@media screen and (min-width: 769px) {

    #z-collection-wrap .z-recipe-title,
    #z-collection-wrap .z-recipe-desc,
    #z-collection-wrap .z-recipe-nutrition,
    #z-collection-wrap .z-recipe-btn{
        min-width: 0;
    }


   .z-nav-link {
        min-width: 0;
    }

    #z-collection-wrap .z-recipe-card {
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: auto auto auto auto auto auto; 
        gap: 0 40px;
        align-items: center;
        padding-right: 40px;
    }

    /* Image area */
    #z-collection-wrap .z-recipe-img-wrap {
        grid-column: 1 / 2;
        grid-row: 1 / 7;
        height: 100%;
        min-height: 450px;
        position: relative;
    }

    /* Badge */
    #z-collection-wrap .z-recipe-badge {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        z-index: 10;
        background-color: #000;
        color: #fff;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        font-weight: bold;
        justify-self: start;
        align-self: start;
        margin-top: -15px;
        margin-left: -15px;
    }

    /* Text Column Alignment */
    #z-collection-wrap .z-recipe-title,
    #z-collection-wrap .z-recipe-desc,
    #z-collection-wrap .z-recipe-nutrition,
    #z-collection-wrap .z-recipe-btn,
    #z-collection-wrap .z-recipe-time
   {
        grid-column: 2 / 3;
        text-align: left;
    }


      .z-nav-link {
        grid-column: 2 / 3;
        text-align: left;
    }

    /* Top Link Placement */
.z-link-top {
        margin-bottom: 10px;
        align-self: end;
    }

    #z-collection-wrap .z-recipe-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    #z-collection-wrap .z-recipe-desc {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    /* Nutrition Info */
    #z-collection-wrap .z-recipe-nutrition {
        display: flex;
        justify-content: flex-start;
        margin-bottom: 30px;
        white-space: nowrap;
        flex-wrap: nowrap;
        font-size: 11px;
        gap: 6px;
        width: 100%;
        color: #555;
    }

    #z-collection-wrap .z-recipe-btn {
        justify-self: start;
        padding: 14px 40px;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    /* Bottom Link Placement */
 .z-link-bottom {
        justify-self: start;
        margin-top: 5px;
    }
}



.recipetitlelink {
    text-decoration: none !important;     /* إزالة الخط بالقوة */
    color: inherit !important;            /* وراثة اللون بالقوة */
    box-shadow: none !important;          /* بعض القوالب تستخدم الظل كخط */
    border-bottom: none !important;       /* بعض القوالب تستخدم الحدود كخط */
}

.recipetitlelink:hover {
    text-decoration: underline !important; /* إعادة الخط عند التمرير */
    color: inherit !important;             /* الحفاظ على اللون عند التمرير */
    opacity: 0.8;
}



/* 1. تنسيق شكل الوقت (مشترك للموبايل والكمبيوتر) */
#z-collection-wrap .z-recipe-time {
    color: #d35400;          /* اللون البرتقالي المحروق الجذاب */
    font-weight: 800;        /* خط عريض */
    font-size: 1rem;         /* حجم خط واضح */
    margin-bottom: 10px;     /* مسافة تحته تفصله عن المعلومات الغذائية */
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 2. تنسيق خاص للموبايل (توسيط) */
@media screen and (max-width: 768px) {
    #z-collection-wrap .z-recipe-time {
        justify-content: center; /* توسيط الوقت في الموبايل */
        width: 100%;
    }
}










/* =========================================
   STYLE: HAND-DRAWN RECIPE BOOK
   تصميم "دفتر الوصفات" بخط اليد - دافئ وفني
   ========================================= */

/* 1. الحاوية العامة */
.z-features-list {
    list-style: none !important;
    padding: 0;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 25px; /* مسافات مريحة */
    max-width: 900px;
    font-family: 'Amiri', 'Traditional Arabic', serif; /* يفضل استخدام خط نسخ جميل */
}

/* 2. العنصر - شكل "مرسوم باليد" */
.z-features-list li {
    position: relative;
    background-color: #fff;
    color: #444;
    padding: 15px 25px;
    font-size: 1.1rem; /* تكبير الخط قليلاً للقراءة المريحة */
    line-height: 1.7;
     
    /* السحر هنا: حدود غير منتظمة لتبدو كأنها رُسمت بقلم */
    border: 2px solid #444; 
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
     
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
    background-image: linear-gradient(#fdfbf7, #fdfbf7); /* لون ورق قديم خفيف جداً */
}

/* 3. تأثير "قلم التحديد" على الكلمات المهمة (Bold) */
.z-features-list li strong {
    font-weight: 700;
    color: #000;
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 5px;
}

/* رسم خلفية صفراء "عشوائية" خلف الكلمات المهمة */
.z-features-list li strong::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 40%; /* تغطي نصف الكلمة السفلي */
    background-color: #ffd54f; /* لون أصفر خردلي دافئ */
    opacity: 0.6;
    z-index: -1;
    transform: rotate(-2deg); /* ميلان بسيط ليبدو يدوياً */
    border-radius: 4px;
}

/* 4. حركة الماوس - اهتزاز خفيف وتغيير الشكل */
.z-features-list li:hover {
    transform: rotate(1deg) scale(1.02); /* دوران خفيف جداً وتكبير */
    border-color: #d35400; /* تغيير لون الحدود للبرتقالي المحروق (لون شهي) */
    box-shadow: 2px 5px 15px rgba(0,0,0,0.08);
     
    /* تغيير شكل الحدود قليلاً عند التحويم لتبدو حية */
    border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

/* تنسيق الأيقونة/الإيموجي */
.z-features-list li span.icon,
.z-features-list li::first-letter {
    font-size: 1.5rem;
    margin-left: 15px;
    filter: sepia(0.5); /* فلتر لتهدئة ألوان الإيموجي لتناسب الستايل القديم */
}

/* =========================================
   DESKTOP LAYOUT (Min-width: 769px)
   ========================================= */
@media screen and (min-width: 769px) {
    .z-features-list {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .z-features-list li {
        flex: 1;
        flex-direction: column; /* الأيقونة فوق النص */
        text-align: center;
        justify-content: center;
        padding: 30px 20px;
    }

    /* تعديل الأيقونة للوضع العمودي */
    .z-features-list li span.icon,
    .z-features-list li::first-letter {
        margin-left: 0;
        margin-bottom: 15px;
        display: block;
        font-size: 2rem;
    }
}