/* ============================================
   Reset CSS - איפוס בסיסי
   תוכנית שידרוג עיצוב Enterprise מקיף
   ============================================
   
   קובץ מאוחד - איפוס סגנונות ברירת מחדל של הדפדפן
   
   תאריך יצירה: 2025-01-27
   גרסה: 2.0.0 (מאוחד)
   ============================================ */

@layer resets {
  /* ===== איפוס margin/padding בסיסי ===== */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* ===== HTML & Body ===== */
  /* ===== HTML & Body - שלד בסיסי לעולם לא מעבר ל-100% ===== */
  html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* ⚠️ הוסר overflow-x: hidden - פתרון קסם גלובלי אסור לפי חוקי זהב #9 */
    /* טיפול בגלישות נעשה ברמת הרכיב/מודול הספציפי */
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl; /* RTL support */
  }

  body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* ⚠️ הוסר overflow-x: hidden - פתרון קסם גלובלי אסור לפי חוקי זהב #9 */
    /* טיפול בגלישות נעשה ברמת הרכיב/מודול הספציפי */
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    direction: rtl; /* RTL support */
  }
  
  /* ===== תמונות / וידאו / iframes – תמיד נשארים בתוך המסך ===== */
  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* ===== טקסט ארוך / קישורים / קוד – לא שוברים את העיצוב ===== */
  .body-text,
  .card,
  .table,
  pre,
  code {
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  /* ===== טבלאות ===== */
  table {
    border-collapse: collapse;
    border-spacing: 0;
  }

  /* ===== תמונות ===== */
  img,
  picture,
  video,
  canvas,
  svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  /* ===== טפסים ===== */
  input,
  button,
  textarea,
  select {
    font: inherit;
    color: inherit;
  }

  button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }

  /* ===== לינקים ===== */
  a {
    text-decoration: none;
    color: inherit;
  }

  /* ===== רשימות ===== */
  ul,
  ol {
    list-style: none;
  }

  /* ===== כותרות ===== */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  /* ===== פסקאות ===== */
  p {
    margin: 0;
  }

  /* ===== קוד ===== */
  code,
  kbd,
  samp,
  pre {
    font-family: monospace;
    font-size: 1em;
  }

  /* ===== מניעת outline על click (לא על keyboard) ===== */
  *:focus:not(:focus-visible) {
    outline: none;
  }
}

