/* Accessibility Switcher Styles */
.accessibility-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.accessibility-toggle:hover,
.accessibility-toggle:focus {
    background: #222;
    transform: scale(1.1);
}

.accessibility-panel {
    position: absolute;
    top: 60px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.accessibility-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.accessibility-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.accessibility-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-options {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.accessibility-group {
    margin-bottom: 20px;
}

.accessibility-group:last-child {
    margin-bottom: 0;
}

.accessibility-group h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.accessibility-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.accessibility-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    color: #333;
}

.accessibility-btn:hover,
.accessibility-btn:focus {
    background: #f0f0f0;
    border-color: #0073aa;
}

.accessibility-btn.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.accessibility-reset {
    width: 100%;
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.accessibility-reset:hover {
    background: #c82333 !important;
}

.accessibility-toggles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accessibility-toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.accessibility-toggle-item input {
    margin: 0;
}

.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 Classes */
body.font-small { font-size: 14px !important; }
body.font-normal { font-size: 16px !important; }
body.font-large { font-size: 18px !important; }
body.font-xlarge { font-size: 22px !important; }

body.contrast-high {
    filter: contrast(150%) !important;
}

body.contrast-invert {
    filter: invert(1) hue-rotate(180deg) !important;
}

body.underline-links a {
    text-decoration: underline !important;
}

body.highlight-focus *:focus {
    outline: 3px solid #ff6b35 !important;
    outline-offset: 2px !important;
}

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

body.reading-guide {
    position: relative;
}

body.reading-guide:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6b35;
    z-index: 10000;
    pointer-events: none;
}

.contrast-high #menu-footer-menue li a, .contrast-high #menu-footer-menue li:first-child a {
    color: #fff !important;
}

@media (max-width: 768px) {
    .accessibility-switcher {
        top: 10px;
        right: 10px;
    }

    .accessibility-toggle {
        width: 45px;
        height: 45px;
    }

    .accessibility-panel {
        width: 280px;
        top: 55px;
    }
}
