/* Accessibility Widget (Peona) Styles */

.accessibility-widget {
    position: relative;
    font-family: 'Nunito', sans-serif;
    margin-right: 15px;
}

.accessibility-btn {
    width: 48px;
    height: 48px;
    background: var(--accent, #ff9f1c);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.4);
    animation: a11y-pulse 2.5s infinite;
}

.accessibility-btn:hover {
    background-color: #e68a00;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.6);
}

.dark-mode .accessibility-btn:hover {
    background-color: #e68a00;
}

.accessibility-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    opacity: 1;
}

@keyframes a11y-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 159, 28, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 159, 28, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 159, 28, 0);
    }
}

.accessibility-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 260px;
    background-color: var(--bg-main, #ffffff);
    color: var(--text-main, #333333);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 15px;
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--border-color, #eaeaea);
    z-index: 9999;
}

.accessibility-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.accessibility-menu h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color, #eaeaea);
    padding-bottom: 8px;
    color: var(--text-main, #333);
}

.accessibility-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.accessibility-option label {
    cursor: pointer;
}

/* Toggle Switch Styles */
.a11y-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.a11y-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.a11y-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.a11y-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .a11y-slider {
    background-color: var(--accent, #ff9f1c);
}

input:checked + .a11y-slider:before {
    transform: translateX(20px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* GLOBAL DYSLEXIC FONT (Default for entire page) */
body, body * {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif !important;
}

/* HIGH CONTRAST MODE */
body.high-contrast,
body.high-contrast * {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.high-contrast a,
body.high-contrast a * {
    color: #00ffff !important;
    text-decoration: underline !important;
}

body.high-contrast .btn, 
body.high-contrast button,
body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}
