/* ===== CSS/MyFavorites.css - עיצוב סופי מבוסס Main.css ===== */

/* עיצוב כותרת הדף ומרכוז הטקסט המלווה */
.favorites-header {
    text-align: center;
    padding: 3rem;
    margin-bottom: 1rem;
}

.favorites-header h2 {
    font-size: 2.2rem;
    color: var(--dark); /* משתמש בצבע מה-main */
    margin-bottom: 0.5rem;
}

.favorites-header p {
    font-size: 1.1rem;
    color: var(--text); /* משתמש בצבע מה-main */
    opacity: 0.8;
    margin-top: 2rem; /* זה הערך שמוריד את המשפט למטה - שנה אותו לפי הטעם */
    margin-bottom: 1rem; /* רווח קטן מהמשפט לקובייה/גריד שמתחתיו */
    display: block;
}

/* סידור הגריד המרכזי - שימוש במקסימום רוחב של ה-page-content */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
    justify-items: center;
    max-width: var(--max-width); /* מסתנכרן עם ה-main */
    margin: 0 auto;
}

/* עיצוב כרטיסיית המנה המועדפת - סגנון ה-card מה-main */
.meal-card.fav-item {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    position: relative;
    width: 100%;
    max-width: 360px;
    border: 1px solid var(--card-border); /* משתמש בגבול מה-main */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meal-card.fav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: var(--primary); /* משתמש בירוק מה-main */
}

/* כפתור הלב להסרה */
.remove-fav {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
}

.remove-fav:hover {
    transform: scale(1.15);
    background-color: #fffafa;
}

/* כותרות ופרטי המנה */
.meal-time-tag {
    color: #999;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.8rem;
}

.meal-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.meal-desc {
    color: var(--text);
    opacity: 0.8;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    min-height: 3em; 
}

/* כפתור "למדריך בישול" - שימוש בסטייל ה-btn-primary מה-main */
/* ===== העתקה מדויקת מ-HomePage עבור הקישור במועדפים ===== */

.fav-cooking-link {
    /* איפוס מאפייני כפתור */
    background: transparent;
    border: none;
    padding: 0;
    margin: 2rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;

    /* העתקה מ- .action-card a */
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.2s;
    
    /* מבטיח שהחץ והטקסט יהיו בשורה אחת */
    display: inline-block;
}

.fav-cooking-link:hover {
    /* העתקה מ- .action-card a:hover */
    color: var(--secondary);
    text-decoration: underline; /* מוסיף קו תחתי כמו קישור רגיל */
}

/* עיצוב מצב ריק (Empty State) */
.empty-state-card {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg); /* משתמש ברקע הקל מה-main */
    border: 2px dashed var(--card-border);
    border-radius: 20px;
    margin: 3rem auto;
    max-width: 550px;
}