/* 
 * Accessibility Features - תכונות נגישות
 * WCAG 2.1 AA Compliant
 */

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus Indicators */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* Accessibility Toolbar */
.accessibility-toolbar {
    position: fixed;
    top: 80px;
    left: 20px;
    background: white;
    border: 2px solid #2563eb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    min-width: 200px;
}

.accessibility-toolbar.active {
    display: block;
}

.accessibility-toolbar h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1e293b;
}

.accessibility-toolbar button {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 16px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    text-align: right;
    font-size: 14px;
    transition: all 0.2s;
}

.accessibility-toolbar button:hover {
    background: #e2e8f0;
}

.accessibility-toolbar button.active {
    background: #2563eb;
    color: white;
}

/* Accessibility Toggle Button */
.accessibility-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9998;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-toggle:hover {
    background: #1e40af;
    transform: scale(1.05);
}

/* Font Size Adjustments */
body.font-size-large {
    font-size: 18px;
}

body.font-size-xlarge {
    font-size: 20px;
}

/* High Contrast Mode */
body.high-contrast {
    background: white !important;
    color: black !important;
}

body.high-contrast .card {
    background: white !important;
    border: 2px solid black !important;
    color: black !important;
}

body.high-contrast .btn-primary {
    background: black !important;
    color: yellow !important;
    border: 2px solid yellow !important;
}

body.high-contrast a {
    color: blue !important;
    text-decoration: underline !important;
}

body.high-contrast .header {
    background: black !important;
    color: yellow !important;
}

/* Underline Links */
body.underline-links a {
    text-decoration: underline !important;
}

/* Readable Font */
body.readable-font * {
    font-family: Arial, sans-serif !important;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
