/* Assistant Chat – complete stylesheet */

/* Container ראשי */
#ac-wrap.ac-modern {
    direction: rtl;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    box-sizing: border-box;
  }
  
  /* אזור גלילה לתוכן ההודעות */
  #ac-wrap .ac-scroll {
    height: 350px;
    overflow-y: auto;
    padding: 16px;
    background: #fafafa;
    box-sizing: border-box;
  }
  
  /* בועות טקסט */
  #ac-wrap .b {
    max-width: 80%;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 8px 0;
    background: #fff;
    line-height: 1.5;
    word-wrap: break-word;
  }
  #ac-wrap .u {
    margin-left: auto;
    background: #f1e6fc;
    border-color: #dabdf4;
  }
  #ac-wrap .a {
    margin-right: auto;
  }
  #ac-wrap .err {
    background: #fee;
    border-color: #f99;
  }
  
  /* כרטיסי מתכון */
  .ac-recipe-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
  }
  .ac-recipe-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
  }
  /* תמונת תצוגה לצד כרטיס */
  .ac-recipe-card .ac-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f3f3;
  }
  .ac-recipe-card .ac-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* תוכן הכרטיס */
  .ac-recipe-content {
    flex: 1;
  }
  .ac-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
  }
  .ac-link {
    color: var(--link-color);
    font-size: 14px;
    text-decoration: none;
  }
  .ac-link:hover {
    text-decoration: underline;
  }
  
  /* אזור קלט + כפתור שליחה בשורה אחת */
  #ac-f.ac-form {
    box-sizing: border-box;
    display: flex;
    flex-direction: row-reverse; /* כפתור קודם, אחר כך השדה */
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 20px;
    box-shadow: 0px 6px 25px rgba(0, 0, 0, 0.13);
  }
  
  /* שדה הטקסט */
  #ac-f .ac-input {
    flex: 1;               /* יתפוס את כל הרווח הפנוי */
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* כפתור שליחה (send) */
  #ac-f .ac-btn.send {
    all: unset;
    cursor: pointer;
    flex: 0 0 auto;        /* גודל קבוע */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #9848ff;
  }
  
  
  /* links should look clearly clickable */
  #ac-wrap .a a {
    color: var(--link-color);
    text-decoration: underline;      /* הדגשה מתחת לטקסט */
    font-weight: bold;               /* טקסט מודגש */
    cursor: pointer;                 /* סמן יד בעת ריחוף */
    transition: opacity .2s ease-in; /* אפקט קל של שקיפות */
  }
  #ac-wrap .a a:hover {
    opacity: 0.8;                    /* קישור משתחזר מעט בריחוף */
    text-decoration: none;           /* להסיר קו תחתון בהחזקת העכבר */
  }
  
  
  
  
  /* מאחד כל קישור לשורה נפרדת */
  #ac-wrap .a ul {
    list-style: none;    /* מסירים כדורים/חצים אם רוצים */
    padding: 0;
    margin: 0;
  }
  #ac-wrap .a li {
    display: block;      /* כל פריט ברשימה בשורה חדשה */
    margin: 6px 0;       /* מרווח בין הפריטים */
  }
  
  /* אם במקרה אתם מראים קישורים בלי <ul>/<li>, אפשר גם ככה */
  #ac-wrap .a a {
    display: block;      /* כל קישור בשורה חדשה */
    margin: 6px 0;
  }
  
  
  
  
  
  
  @keyframes yabalulu-pop {
    0%   { transform: scale(1) rotate(0deg); }
    25%  { transform: scale(1.07) rotate(2deg); }
    50%  { transform: scale(0.94) rotate(-2deg); }
    75%  { transform: scale(1.03) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
  }
  
  .ac-btn {
    background: linear-gradient(45deg, #9848ff, #dca8ff);
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(152, 72, 255, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .ac-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(152, 72, 255, 0.5);
    background: linear-gradient(45deg, #b66bff, #f1ccff);
  }
  
  .ac-btn:active {
    animation: yabalulu-pop 0.4s ease;
  }
  