/* Explain: Base reset and typography defaults, including RTL direction and accessibility styles. - */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    direction: rtl;
}

/* העלמת פס גלילה באזורים הנגללים לרוחב (למשל סרגל הסינון) */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* מודול נגישות - תוספות CSS */
body.a11y-large-text {
    font-size: 110%;
}
body.a11y-large-text h1, 
body.a11y-large-text h2, 
body.a11y-large-text h3, 
body.a11y-large-text h4, 
body.a11y-large-text h5, 
body.a11y-large-text h6 {
    font-size: 115%;
}

body.a11y-high-contrast {
    --background-color: #000000;
    --surface-color: #1a1a1a;
    --text-color: #ffffff;
    --primary-color: #ffff00;
    --primary-hover: #cccc00;
    --accent-color: #00ffff;
    --accent-hover: #00cccc;
    --text-muted: #e5e5e5;
    --border-color: #333333;
}

body.a11y-high-contrast img:not(.logo) {
    filter: contrast(120%);
}

body.a11y-highlight-links a {
    text-decoration: underline !important;
    text-decoration-color: var(--accent-color) !important;
    text-decoration-thickness: 2px !important;
    font-weight: 700 !important;
}

body.a11y-readable-font, 
body.a11y-readable-font h1, 
body.a11y-readable-font h2, 
body.a11y-readable-font h3, 
body.a11y-readable-font h4, 
body.a11y-readable-font h5, 
body.a11y-readable-font h6, 
body.a11y-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}