/* WCAG Accessibility Menu Styles */

.wcag-menu {
    position: fixed;
    top: 50%;
    right: -350px;
    transform: translateY(-50%);
    width: 350px;
    background: #fff;
    border-radius: 15px 0 0 15px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    z-index: 999999;
    transition: right 0.3s ease;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.wcag-menu.active {
    right: 0;
}

.wcag-menu-header {
    background: #1885FF;
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px 0 0 0;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcag-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcag-menu-content {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.wcag-section {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.wcag-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.wcag-section-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wcag-option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wcag-option:hover {
    background-color: #f5f5f5;
}

.wcag-option.active {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
}

.wcag-option i {
    width: 20px;
    text-align: center;
    color: #666;
}

.wcag-option.active i {
    color: #2196f3;
}

.wcag-option input[type="radio"] {
    margin: 0;
}

.wcag-option label {
    cursor: pointer;
    flex-grow: 1;
    margin: 0;
    font-weight: normal;
}

.wcag-reset {
    width: 100%;
    padding: 12px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wcag-reset:hover {
    background: #c82333;
}

body.wcag-contrast-mode {
    background: #000 !important;
    color: #fff !important;
}

body.wcag-contrast-mode *:not(.wcag-menu):not(.wcag-menu *) {
    background-image: none !important;
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.wcag-inverted-colors > *:not(.wcag-menu) {
    filter: invert(1) hue-rotate(180deg);
}

body.wcag-inverted-colors img,
body.wcag-inverted-colors video {
    filter: invert(1) hue-rotate(180deg);
}

body.wcag-grayscale > *:not(.wcag-menu) {
    filter: grayscale(100%);
}

body.wcag-contrast-mode .wcag-menu {
    background: #000 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
}

body.wcag-contrast-mode .wcag-menu-header {
    background: #fff !important;
    color: #000 !important;
}

body.wcag-contrast-mode .wcag-menu-close {
    color: #000 !important;
}

body.wcag-contrast-mode .wcag-menu-content {
    background: #000 !important;
    color: #fff !important;
}

body.wcag-contrast-mode .wcag-section-title {
    color: #fff !important;
}

body.wcag-contrast-mode .wcag-option {
    background: transparent !important;
    color: #fff !important;
}

body.wcag-contrast-mode .wcag-option:hover {
    background: #333 !important;
}

body.wcag-contrast-mode .wcag-option.active {
    background: #333 !important;
    border: 1px solid #fff !important;
}

body.wcag-contrast-mode .wcag-option label {
    color: #fff !important;
}

body.wcag-contrast-mode .wcag-option i {
    color: #fff !important;
}

body.wcag-contrast-mode .wcag-option.active i {
    color: #fff !important;
}

body.wcag-contrast-mode .wcag-reset {
    background: #dc3545 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
}

body.wcag-contrast-mode .wcag-reset:hover {
    background: #c82333 !important;
}

body.wcag-inverted-colors .wcag-menu {
    filter: invert(1) hue-rotate(180deg);
}

body.wcag-text-spacing * {
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}

body.wcag-line-height * {
    line-height: 2 !important;
}

body.wcag-link-highlight a {
    text-decoration: underline !important;
    border-bottom: 2px solid currentColor !important;
}

body.wcag-font-larger {
    font-size: 150% !important;
}

body.wcag-font-large {
    font-size: 200% !important;
}

body.wcag-font-readable {
    font-family: Arial, Verdana, Geneva, Tahoma, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

@media (max-width: 768px) {
    .wcag-menu {
        width: 100%;
        right: -100%;
        top: 0;
        transform: none;
        height: 100vh;
        border-radius: 0;
    }
    
    .wcag-menu-content {
        max-height: calc(100vh - 80px);
    }
}
