/* Accessibility Widget Styles */

#accessibility-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

.accessibility-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.accessibility-toggle svg {
    width: 30px;
    height: 30px;
}

.accessibility-panel {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 350px;
    max-height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.accessibility-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.accessibility-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.accessibility-content {
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.accessibility-control {
    margin-bottom: 1.5rem;
}

.accessibility-control > label:first-child {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.control-buttons {
    display: flex;
    gap: 0.5rem;
}

.control-buttons button {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.control-buttons button:hover {
    border-color: #667eea;
    color: #667eea;
}

.accessibility-control label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.accessibility-control label:hover {
    background: #f8f9fa;
}

.accessibility-control input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.reset-all-btn {
    width: 100%;
    padding: 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.reset-all-btn:hover {
    background: #c82333;
}

/* Accessibility Features */

.contrast-high {
    filter: contrast(150%);
}

.contrast-dark {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

.contrast-dark * {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #444 !important;
}

.highlight-links a {
    background: yellow !important;
    color: black !important;
    text-decoration: underline !important;
}

.invert-colors {
    filter: invert(1) hue-rotate(180deg);
}

.invert-colors img,
.invert-colors video {
    filter: invert(1) hue-rotate(180deg);
}

.big-cursor,
.big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewport="0 0 48 48"><circle cx="24" cy="24" r="22" fill="black" fill-opacity="0.5"/><circle cx="24" cy="24" r="18" fill="white"/></svg>') 24 24, auto !important;
}

#reading-guide {
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(255, 255, 0, 0.3);
    pointer-events: none;
    z-index: 99998;
    border-top: 2px solid rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

/* Mobile */
@media (max-width: 768px) {
    .accessibility-panel {
        width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%);
    }
    
    #accessibility-widget {
        left: 50%;
        transform: translateX(-50%);
    }
}