/* ============================================================
   ACCESSIBILITY WIDGET — a11y panel (Israeli law compliant)
   ============================================================ */

.a11y-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.a11y-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    border: 2px solid #fff;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px -8px rgba(0, 102, 204, 0.5);
    transition: all var(--dur-fast) var(--ease);
    font-size: 1.4rem;
}

.a11y-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px -10px rgba(0, 102, 204, 0.6);
}

.a11y-toggle svg {
    width: 28px;
    height: 28px;
}

/* Panel */
.a11y-panel {
    position: absolute;
    bottom: 72px;
    left: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.25);
    border: 1px solid #e0e0e0;
    max-width: 320px;
    overflow: hidden;
    transform-origin: bottom left;
    transform: scale(0.95) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur-fast) var(--ease);
    z-index: -1;
}

.a11y-panel.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    z-index: 1001;
}

.a11y-panel-header {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: #fff;
    padding: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.a11y-panel-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
}
.a11y-panel-close:hover { opacity: 0.8; }

.a11y-content {
    padding: 20px 16px;
    font-size: 0.9rem;
}

.a11y-group {
    margin-bottom: 20px;
}
.a11y-group:last-child { margin-bottom: 0; }

.a11y-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.a11y-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.a11y-button {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    transition: all var(--dur-fast) var(--ease);
}

.a11y-button:hover {
    background: #e0e0e0;
    border-color: #999;
}

.a11y-button.active {
    background: #0066cc;
    color: #fff;
    border-color: #0052a3;
}

.a11y-reset {
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 12px;
}
.a11y-reset:hover { opacity: 0.9; }

.a11y-footer {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.8rem;
    text-align: center;
    color: #666;
}
.a11y-footer a {
    color: #0066cc;
    text-decoration: underline;
}
.a11y-footer a:hover { color: #0052a3; }

/* Applied styles */
.a11y-large {
    font-size: 112% !important;
}

.a11y-largest {
    font-size: 125% !important;
}

.a11y-high-contrast {
    background: #000 !important;
    color: #ffff00 !important;
}
.a11y-high-contrast * {
    background: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}
.a11y-high-contrast a {
    color: #00ffff !important;
    text-decoration: underline;
}
.a11y-high-contrast button,
.a11y-high-contrast .btn {
    color: #000 !important;
    background: #ffff00 !important;
}

.a11y-grayscale {
    filter: grayscale(100%) !important;
}

.a11y-readable {
    font-family: "Arial", sans-serif !important;
    letter-spacing: 0.05em;
    line-height: 1.9 !important;
}

.a11y-big-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><circle cx="24" cy="24" r="22" fill="%230066cc" stroke="%23fff" stroke-width="2"/></svg>') 24 24, auto !important;
}

.a11y-no-animation * {
    animation: none !important;
    transition: none !important;
}

.a11y-links-highlight a {
    background: #ffff00 !important;
    text-decoration: underline !important;
    padding: 2px 4px !important;
}
