/* ========================================
   Web Accessibility Styles
   ======================================== */

/* Accessibility Widget */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Outfit', sans-serif;
}

.accessibility-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #F6862B;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(246, 134, 43, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.accessibility-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(246, 134, 43, 0.6);
}

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

.accessibility-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 15px;
    min-width: 300px;
    max-width: 350px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    display: none;
    border: 2px solid #F6862B;
}

.accessibility-panel.active {
    display: block;
    animation: slideUp 0.3s ease;
}

/* Custom Scrollbar for Accessibility Panel */
.accessibility-panel::-webkit-scrollbar {
    width: 6px;
}

.accessibility-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.accessibility-panel::-webkit-scrollbar-thumb {
    background: #F6862B;
    border-radius: 10px;
}

.accessibility-panel::-webkit-scrollbar-thumb:hover {
    background: #d56a15;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accessibility-panel h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #121518;
    display: flex;
    align-items: center;
    gap: 6px;
}

.accessibility-panel h3 i {
    color: #F6862B;
}

.accessibility-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.accessibility-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.accessibility-option:hover {
    background: #e9ecef;
}

.accessibility-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.accessibility-option label i {
    font-size: 1.1rem;
    color: #F6862B;
    min-width: 20px;
}

.accessibility-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #F6862B;
    flex-shrink: 0;
}

.accessibility-divider {
    height: 1px;
    background: #dee2e6;
    margin: 10px 0;
}

.accessibility-reset {
    width: 100%;
    padding: 8px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.accessibility-reset:hover {
    background: #5a6268;
}

.accessibility-reset:focus {
    outline: 2px solid #F6862B;
    outline-offset: 2px;
}

/* Accessibility Features */

/* High Contrast Mode */
body.high-contrast {
    filter: contrast(1.5);
}

body.high-contrast * {
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Larger Text */
body.larger-text {
    font-size: 120% !important;
}

body.larger-text h1 {
    font-size: 3.5rem !important;
}

body.larger-text h2 {
    font-size: 2.8rem !important;
}

body.larger-text h3 {
    font-size: 2.2rem !important;
}

body.larger-text h4 {
    font-size: 1.8rem !important;
}

body.larger-text h5 {
    font-size: 1.5rem !important;
}

body.larger-text .button,
body.larger-text .btn {
    font-size: 1.1rem !important;
    padding: 14px 28px !important;
}

/* Readable Font */
body.readable-font,
body.readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Highlight Links */
body.highlight-links a {
    background: rgba(246, 134, 43, 0.2) !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    text-decoration: underline !important;
}

body.highlight-links a:hover {
    background: rgba(246, 134, 43, 0.4) !important;
}

/* Grayscale Mode */
body.grayscale {
    filter: grayscale(100%);
}

/* Negative Contrast */
body.negative-contrast {
    filter: invert(1) hue-rotate(180deg);
}

body.negative-contrast img,
body.negative-contrast video {
    filter: invert(1) hue-rotate(180deg);
}

/* Light Background */
body.light-background {
    background: #fff !important;
}

body.light-background .section,
body.light-background .bg-dark,
body.light-background .bg-dark-footer,
body.light-background footer {
    background: #f8f9fa !important;
    color: #212529 !important;
}

body.light-background .section *,
body.light-background footer * {
    color: #212529 !important;
}

/* Underline Links */
body.underline-links a {
    text-decoration: underline !important;
}

/* Big Cursor */
body.big-cursor,
body.big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24"><path fill="white" stroke="black" stroke-width="1" d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/></svg>') 12 12, auto !important;
}

/* Reading Guide */
.reading-guide {
    position: fixed;
    left: 0;
    width: 100%;
    height: 3px;
    background: #F6862B;
    pointer-events: none;
    z-index: 9998;
    display: none;
    box-shadow: 0 0 10px rgba(246, 134, 43, 0.5);
}

body.reading-guide-active .reading-guide {
    display: block;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 20px;
    background: #F6862B;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 20px;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Focus Visible Enhancement */
*:focus-visible {
    outline: 3px solid #F6862B !important;
    outline-offset: 2px !important;
}

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .accessibility-widget {
        bottom: 15px;
        right: 15px;
    }

    .accessibility-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .accessibility-panel {
        min-width: 260px;
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 100px);
        right: -10px;
        padding: 12px;
    }

    .accessibility-option {
        padding: 6px 8px;
    }

    .accessibility-option label {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {

    .accessibility-widget,
    .lang-floater,
    .header-toggle,
    .scrolltotop {
        display: none !important;
    }
}