
/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
    font-weight: bold;
}

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

.accessibility-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-toggle:hover {
    background: #34495e;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.accessibility-toggle:focus {
    outline: 3px solid #f39c12;
    outline-offset: 2px;
}

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

.accessibility-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    z-index: 10000;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    overflow-y: auto;
    font-family: 'Assistant', Arial, sans-serif;
}

.accessibility-menu.active {
    right: 0;
}

.accessibility-menu[aria-hidden="false"] {
    right: 0;
}

.accessibility-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.accessibility-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
}

.accessibility-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.accessibility-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.accessibility-close:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.accessibility-body {
    flex: 1;
    overflow-y: auto;
}

.accessibility-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.accessibility-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.accessibility-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.accessibility-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accessibility-btn {
    background: #ecf0f1;
    border: 2px solid transparent;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.2s ease;
    text-align: right;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accessibility-btn:hover {
    background: #d5dbdb;
    border-color: #bdc3c7;
}

.accessibility-btn:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.accessibility-btn.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.accessibility-btn i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.accessibility-reset {
    background: #e74c3c;
    color: white;
}

.accessibility-reset:hover {
    background: #c0392b;
}

.accessibility-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
}

.accessibility-footer a {
    color: #3498db;
    text-decoration: underline;
}

.accessibility-footer a:hover {
    color: #2980b9;
}

.accessibility-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.accessibility-overlay.active {
    opacity: 1;
    visibility: visible;
}


body.font-size-large {
    font-size: 120%;
}

body.font-size-larger {
    font-size: 140%;
}

body.font-size-largest {
    font-size: 160%;
}

body.high-contrast {
    background: #fff !important;
    color: #000 !important;
}

body.high-contrast * {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

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

body.high-contrast button {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;
}

body.negative-contrast {
    background: #000 !important;
    color: #fff !important;
    filter: invert(1) hue-rotate(180deg);
}

/* הדגשת קישורים */
body.highlight-links a {
    background: #ffff00 !important;
    color: #000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
}

body.highlight-titles h1,
body.highlight-titles h2,
body.highlight-titles h3,
body.highlight-titles h4,
body.highlight-titles h5,
body.highlight-titles h6 {
    background: #000080 !important;
    color: #fff !important;
    padding: 5px !important;
    border-radius: 3px !important;
}

body.readable-font * {
    font-family: 'Courier New', monospace !important;
    letter-spacing: 1px !important;
    line-height: 1.8 !important;
}

body.pause-animations *,
body.pause-animations *:before,
body.pause-animations *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

@media (max-width: 768px) {
    .accessibility-menu {
        width: 100%;
        right: -100%;
    }
    
    .accessibility-toggle {
        top: 92%;
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .accessibility-content {
        padding: 15px;
    }
    
    .accessibility-header h2 {
        font-size: 20px;
    }
}

.accessibility-menu:focus-within {
    right: 0;
}

*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

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