/* ================================================= */
/* 1. משתני יסוד ועיצוב הרכיב (Accessibility UI)    */
/* ================================================= */
:root {
    --acc-gold: #d4af37;
    --acc-dark: #111111;
    --acc-panel-bg: #ffffff;
    --acc-shadow: 10px 0 50px rgba(0,0,0,0.2);
}


/* כפתור נגישות ייעודי למובייל */
.mobile-acc-btn {
    background: #f8f8f8;
    border: 1px solid #eee;
    color: var(--acc-dark, #111);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.mobile-acc-btn i {
    color: var(--acc-gold, #d4af37);
}

.mobile-acc-btn:active {
    background: var(--acc-gold);
    color: #fff;
}

/* התאמת הכפתור בדסקטופ שייראה כמו שאר פריטי התפריט */
.light-nav-acc-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    font-weight: 600;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* הסתרת כפתור הטריגר הישן אם קיים */
.acc-trigger {
    display: none !important;
}

/* פאנל התפריט - מצב בסיסי (מוסתר) */
.acc-panel {
    position: fixed;
    top: 0;
    left: -400px; /* מוסתר משמאל */
    width: 350px;
    height: 100vh;
    background: var(--acc-panel-bg);
    box-shadow: var(--acc-shadow);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 2px solid var(--acc-gold);
    direction: rtl;
    visibility: hidden;
    opacity: 0;
}

/* פאנל התפריט - מצב פעיל */
.acc-panel.active {
    left: 0;
    visibility: visible;
    opacity: 1;
}

/* התאמה למובייל - מניעת חצי מסך */
@media (max-width: 991px) {
    .acc-panel {
        width: 85%; 
        left: -100%; /* מוודא הסתרה מלאה לפי אחוזים */
    }
    
    .acc-panel.active {
        left: 0;
        box-shadow: 0 0 0 100vw rgba(0,0,0,0.5); /* החשכת האתר */
    }
}

/* ראש התפריט */
.acc-header-premium {
    background: var(--acc-dark);
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.acc-title-box .light-label {
    color: var(--acc-gold);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.acc-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 0.5;
    transition: 0.2s;
}
.acc-close:hover { color: var(--acc-gold); }

/* גוף התפריט עם גלילה */
.acc-grid {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.acc-group h6 {
    font-size: 0.8rem;
    font-weight: 800;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.acc-group button {
    width: 100%;
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    color: #1a1a1a;
    cursor: pointer;
    text-align: right;
}

.acc-group button i {
    color: var(--acc-gold);
    font-size: 1.1rem;
}

.acc-group button:hover {
    background: #fff;
    border-color: var(--acc-gold);
}

.acc-group button.active {
    background: var(--acc-gold);
    color: var(--acc-dark);
    border-color: var(--acc-gold);
    font-weight: 700;
}
.acc-group button.active i { color: var(--acc-dark); }

/* תחתית התפריט */
.acc-footer-actions {
    padding: 15px 20px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.acc-reset {
    background: #f0f0f0;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}
.acc-reset:hover { background: #e0e0e0; }
.acc-statement { font-size: 0.8rem; color: #999; text-decoration: none; }

/* ================================================= */
/* 2. חוקי הנגישות (השפעה על האתר)                  */
/* ================================================= */

body[data-acc-contrast="true"] *:not(.acc-panel, .acc-panel *) {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffffff !important;
}

body[data-acc-grayscale="true"] { filter: grayscale(100%) !important; }
body[data-acc-negative="true"] { filter: invert(1) hue-rotate(180deg) !important; }
body[data-acc-big-text="true"] { font-size: 1.2rem !important; }
body[data-acc-readable="true"] * { font-family: Arial, sans-serif !important; }

body[data-acc-links="true"] a:not(.acc-panel *) {
    text-decoration: underline !important;
    font-weight: 800 !important;
    background: #ffff00 !important;
    color: #000 !important;
}

body[data-acc-spacing="true"] * {
    letter-spacing: 0.1em !important;
    word-spacing: 0.15em !important;
    line-height: 1.8 !important;
}

body[data-acc-cursor="true"] { cursor: crosshair !important; }

body[data-acc-stop-anim="true"] * {
    animation: none !important;
    transition: none !important;
}

.reading-guide-line {
    position: fixed;
    height: 4px;
    background: var(--acc-gold);
    width: 100%;
    z-index: 1000000;
    display: none;
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    border: 0;
}

/* מניעת גלילה רוחבית באתר */
html, body { overflow-x: hidden; }