﻿.accessibility-btn { position: fixed; left: 28px; bottom: 28px; z-index: 999999; background: linear-gradient(135deg, #b44ea7 0%, #8f367f 100%); color: #fff; border: none; border-radius: 50%; box-shadow: 0 14px 30px rgba(180, 78, 167, 0.32); width: 56px; height: 56px; padding: 0; display: flex; align-items: center; justify-content: center; font-family: 'Work Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }

.accessibility-btn:after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: url('/Frontend/dist/images/enpara-en-loading.png') center center / contain no-repeat; opacity: 0; transform: scale(0.68); pointer-events: none; }

.accessibility-btn:before { content: ''; position: absolute; inset: 13px; background: url('/Frontend/dist/images/enpara-en-loading-text.png') center center / contain no-repeat; opacity: 0; transform: scale(0.68); pointer-events: none; z-index: 1; }

.accessibility-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(180, 78, 167, 0.42); }

.accessibility-btn:hover:before { animation: accessibilityLoadingLogoInOut 2s ease forwards; }

.accessibility-btn:hover:after { animation: accessibilityLoadingFrameSpinOut 2s ease forwards; }

.accessibility-btn:active { transform: translateY(-1px) scale(0.98); }

.accessibility-btn span:first-child { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: flex !important; align-items: center; justify-content: center; font-size: 20px !important; }

.accessibility-btn-icon svg { width: 21px; height: 21px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.accessibility-btn-icon { transition: opacity 0.2s ease, transform 0.28s ease; }

.accessibility-btn:hover .accessibility-btn-icon { animation: accessibilityIconAfterLoading 2s ease forwards; }

@keyframes accessibilityLoadingLogoInOut {
    0% { opacity: 0; transform: scale(0.68); }

    12% { opacity: 1; transform: scale(1); }

    82% { opacity: 1; transform: scale(1); }

    100% { opacity: 0; transform: scale(0.68); }
}

@keyframes accessibilityLoadingFrameSpinOut {
    0% { opacity: 0; transform: scale(0.68) rotate(0deg); }

    12% { opacity: 1; transform: scale(1) rotate(90deg); }

    82% { opacity: 1; transform: scale(1) rotate(720deg); }

    100% { opacity: 0; transform: scale(0.68) rotate(820deg); }
}

@keyframes accessibilityIconAfterLoading {
    0% { opacity: 0; transform: scale(0.55) rotate(14deg); }

    82% { opacity: 0; transform: scale(0.55) rotate(14deg); }

    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.accessibility-panel { position: fixed; left: 28px; bottom: 88px; width: 420px; max-width: 95vw; max-height: calc(100vh - 112px); background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(180, 78, 167, 0.14); border-radius: 24px; box-shadow: 0 24px 70px rgba(60, 63, 72, 0.18), 0 8px 30px rgba(180, 78, 167, 0.18); z-index: 99999999; display: none; flex-direction: column; font-family: 'Work Sans', sans-serif; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: accessibilityPanelIn 0.34s cubic-bezier(.16, 1, .3, 1); overflow: hidden; }

.accessibility-panel-inner { padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.accessibility-panel-inner::-webkit-scrollbar { width: 8px; }

.accessibility-panel-inner::-webkit-scrollbar-track { background: transparent; }

.accessibility-panel-inner::-webkit-scrollbar-thumb { background: rgb(208 208 208); border-radius: 999px; }

.accessibility-panel.active { display: flex; }

@keyframes accessibilityPanelIn {
    from { transform: translate3d(-22px, 16px, 0) scale(0.96); opacity: 0; }

    to { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

.accessibility-panel-header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; margin: 0; border-radius: 0; background: linear-gradient(135deg, #b44ea7 0%, #8f367f 100%); color: #fff; box-shadow: 0 8px 20px rgba(180, 78, 167, 0.18); cursor: grab; user-select: none; z-index: 12; }

.accessibility-panel.is-dragging .accessibility-panel-header { cursor: grabbing; }

.accessibility-panel-title { flex: 1; font-size: 12px; line-height: 1.25; font-weight: 700; color: #fff !important; /* letter-spacing: -0.2px; */ }

.accessibility-panel-actions { display: flex; align-items: center; gap: 6px; margin-left: 10px; }

.accessibility-language { position: relative; }

.accessibility-language-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 100%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 16px; cursor: pointer; padding: 0; transition: background 0.2s ease, transform 0.2s ease; }

.accessibility-language-btn:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }

.accessibility-flag { width: 24px; height: 24px; display: inline-block; flex: 0 0 24px; border-radius: 100%; border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(60, 63, 72, 0.24), 0 4px 10px rgba(60, 63, 72, 0.18); overflow: hidden; object-fit: cover; }

.accessibility-language-btn .accessibility-flag { width: 26px; height: 26px; flex-basis: 26px; }

.accessibility-flag-tr { background: radial-gradient(circle at 60% 50%, #fff 0 8%, transparent 8.5%), radial-gradient(circle at 47% 50%, transparent 0 16%, #fff 16.5% 25%, transparent 25.5%), radial-gradient(circle at 41% 50%, #e30a17 0 20%, transparent 20.5%), #e30a17; }

.accessibility-flag-gb { background: linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%), linear-gradient(0deg, transparent 40%, #fff 40% 60%, transparent 60%), linear-gradient(90deg, transparent 47%, #c8102e 47% 53%, transparent 53%), linear-gradient(0deg, transparent 46%, #c8102e 46% 54%, transparent 54%), linear-gradient(35deg, transparent 40%, #fff 40% 49%, #c8102e 49% 54%, #fff 54% 63%, transparent 63%), linear-gradient(-35deg, transparent 40%, #fff 40% 49%, #c8102e 49% 54%, #fff 54% 63%, transparent 63%), #012169; }

.accessibility-flag-sa { background: linear-gradient(#006c35, #006c35); position: relative; }

.accessibility-flag-sa:after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 5px; height: 2px; background: #fff; }

.accessibility-flag-az { background: linear-gradient(#00a3e0 0 33.33%, #ef3340 33.33% 66.66%, #509e2f 66.66%); }

.accessibility-flag-bg { background: linear-gradient(#fff 0 33.33%, #00966e 33.33% 66.66%, #d62612 66.66%); }

.accessibility-flag-nl { background: linear-gradient(#ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66%); }

.accessibility-flag-fr { background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66%); }

.accessibility-flag-de { background: linear-gradient(#000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%); }

.accessibility-flag-it { background: linear-gradient(90deg, #009246 0 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66%); }

.accessibility-flag-ru { background: linear-gradient(#fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66%); }

.accessibility-flag-es { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }

.accessibility-language-list { display: none; position: absolute; right: 0; top: 36px; min-width: 180px; max-height: 260px; overflow-y: auto; padding: 6px; margin: 0; list-style: none; background: #fff; border: 1px solid rgba(180, 78, 167, 0.18); border-radius: 14px; box-shadow: 0 18px 42px rgba(60, 63, 72, 0.18); z-index: 100000; }

.accessibility-language.active .accessibility-language-list { display: block; }

.accessibility-language-option { width: 100%; display: flex; align-items: center; gap: 10px; border: none; border-radius: 10px; background: transparent; color: #3c3f48; font-family: 'Work Sans', sans-serif; font-size: 12px; font-weight: 600; text-align: left; padding: 9px 10px; cursor: pointer; }

.accessibility-language-option:hover, .accessibility-language-option.is-selected { background: rgba(180, 78, 167, 0.10); color: #b44ea7; }

.accessibility-panel-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.16); border: none; color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; padding: 0; border-radius: 50%; transition: background 0.2s ease, transform 0.2s ease; }

.accessibility-panel-close:hover { background: rgba(255, 255, 255, 0.28); transform: rotate(90deg); }

.accessibility-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0px 10px; }

.accessibility-panel-footer { position: sticky; bottom: 0; margin-top: 18px; padding: 14px 18px; margin-left: 0; margin-right: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(180, 78, 167, 0.12); z-index: 10; }

.accessibility-reset-btn { width: 100%; min-height: 46px; border: none; border-radius: 12px; background: #fdf5fb; color: #b44ea7; font-family: 'Work Sans', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.25s ease; box-shadow: 0 4px 12px rgba(180, 78, 167, 0.06); display: flex; align-items: center; justify-content: center; gap: 8px; }

.accessibility-reset-btn:before { content: "⟳"; font-size: 17px; font-weight: 500; }

.accessibility-reset-btn:hover { background: #f7e6f3; color: #8f367f; box-shadow: 0 6px 16px rgba(180, 78, 167, 0.14); transform: translateY(-2px); }

.accessibility-reset-btn:active { transform: translateY(0) scale(0.98); }

.accessibility-feature { position: relative; overflow: hidden; background: #fff; border-radius: 18px; padding: 14px 8px 12px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease; min-height: 98px; box-shadow: 0 8px 24px rgba(60, 63, 72, 0.06); border: 1px solid rgba(180, 78, 167, 0.12); }

.accessibility-feature:before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(180, 78, 167, 0.10), rgba(255, 255, 255, 0)); opacity: 0; transition: opacity 0.22s ease; }

.accessibility-feature:after { content: ''; position: absolute; top: -45%; left: -75%; width: 55%; height: 190%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); opacity: 0; transform: rotate(22deg) translateX(0); pointer-events: none; }

.accessibility-feature:hover { background: rgba(180, 78, 167, 0.08); border-color: rgba(180, 78, 167, 0.42); box-shadow: 0 14px 30px rgba(180, 78, 167, 0.16); }

.accessibility-feature:hover:before { opacity: 1; }

.accessibility-feature:hover:after { animation: accessibilityFeatureShine 0.7s ease forwards; }

.accessibility-feature.is-active { background: linear-gradient(135deg, #b44ea7 0%, #9d3d91 100%); border-color: #b44ea7; box-shadow: 0 14px 34px rgba(180, 78, 167, 0.28); }

.accessibility-feature.is-active .accessibility-feature-icon { background: rgba(255, 255, 255, 0.18); color: #fff; }

.accessibility-feature.is-active .accessibility-feature-label { color: #fff; }

.accessibility-feature-icon { position: relative; z-index: 1; margin-bottom: 9px; color: #b44ea7; width: 42px; height: 42px; border-radius: 14px; background: rgba(180, 78, 167, 0.09); display: flex; align-items: center; justify-content: center; transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease; }

.accessibility-feature-icon svg { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.accessibility-feature:hover .accessibility-feature-icon { background: rgba(180, 78, 167, 0.16); color: #8f367f; }

.accessibility-feature:hover .accessibility-feature-label { animation: accessibilityFeatureLabelIn 0.42s cubic-bezier(.16, 1, .3, 1); }

.accessibility-feature-label { position: relative; z-index: 1; font-size: 12px; line-height: 1.25; color: #3c3f48; text-align: center; font-weight: 600; user-select: none; }


#blueLightOverlay {
    display: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999997;
    background: transparent;
}

body.blue-light-filter-1 #blueLightOverlay {
    display: block;
    background: rgba(255, 196, 64, 0.10);
}

body.blue-light-filter-2 #blueLightOverlay {
    display: block;
    background: rgba(255, 166, 0, 0.18);
}

@keyframes accessibilityFeatureShine {
    0% { opacity: 0; transform: rotate(22deg) translateX(0); }

    25% { opacity: 1; }

    100% { opacity: 0; transform: rotate(22deg) translateX(360%); }
}

@keyframes accessibilityFeatureLabelIn {
    0% { transform: translateY(3px); opacity: 0.72; }

    100% { transform: translateY(0); opacity: 1; }
}

.accessibility-profiles-wrap { width: 100%; margin: 0 0 0 0; background: #fff; border: 1px solid rgba(180, 78, 167, 0.12); overflow: visible; }

.accessibility-profiles-toggle { display: flex; align-items: center; width: 100%; padding: 7px 14px; background: #fff; border: none; cursor: pointer; font-family: inherit; text-align: left; transition: background 0.2s ease; }

.accessibility-profiles-toggle:hover { background: rgba(180, 78, 167, 0.08); }

.accessibility-profiles-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(180, 78, 167, 0.15); color: #b44ea7; margin-right: 12px; }

.accessibility-profiles-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.accessibility-profiles-title { flex: 1; font-size: 14px; font-weight: 700; line-height: 1.4; color: #3c3f48 !important; }

.accessibility-profiles-chevron { width: 12px; height: 12px; border-right: 2px solid #b44ea7; border-bottom: 2px solid #b44ea7; transform: rotate(45deg); transition: transform 0.3s ease; margin-right: 4px; }

.accessibility-profiles-toggle[aria-expanded="true"] .accessibility-profiles-chevron { transform: rotate(-135deg); margin-top: 4px; }

.accessibility-profiles-list { display: none; flex-direction: column; padding: 10px 10px 10px 10px; background: #fff; gap: 5px; border-top: 1px solid rgba(180, 78, 167, 0.08); }

.accessibility-profiles-wrap.active .accessibility-profiles-list { display: flex; }

.accessibility-profile-item { display: flex; align-items: center; width: 100%; padding: 10px 12px; background: #fff; border: 1px solid rgba(180, 78, 167, 0.12); border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: #3c3f48; transition: all 0.2s ease; text-align: left; }

.accessibility-profile-name { flex: 1; }

.accessibility-profile-switch { width: 36px; height: 20px; border-radius: 10px; background: #e9edef; position: relative; transition: background 0.2s ease; flex-shrink: 0; }

.accessibility-profile-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }

.accessibility-profile-item.is-active .accessibility-profile-switch { background: #b44ea7; }

.accessibility-profile-item.is-active .accessibility-profile-switch::after { transform: translateX(16px); }

.accessibility-profile-item svg { width: 20px; height: 20px; margin-right: 10px; fill: none; stroke: #b44ea7; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: color 0.2s ease; }

.accessibility-profile-item:hover, .accessibility-profile-item.is-active { background: #fdf5fb; border-color: #b44ea7; color: #b44ea7; }

.accessibility-profile-item.is-active svg { stroke: #b44ea7; }

@media (max-width: 600px) {
    .accessibility-panel { left: 10px; right: 10px; bottom: 78px; width: auto; max-width: none; max-height: calc(100vh - 92px); border-radius: 22px; }

    .accessibility-panel-inner { padding: 12px; padding-top: 0; padding-left: 0; padding-right: 0; overflow-x: hidden; }

    .accessibility-btn { left: 10px; bottom: 10px; width: 52px; height: 52px; padding: 0; }

    .accessibility-panel-header { padding: 10px 12px; }

    .accessibility-panel-title { font-size: 12px; }

    .accessibility-panel-actions { justify-content: space-between; }

    .accessibility-panel-actions { justify-content: space-between; }

    .accessibility-features { gap: 9px; }

    .accessibility-feature { min-height: 86px; padding: 11px 4px 9px 4px; border-radius: 15px; }

    .accessibility-feature-icon { width: 36px; height: 36px; margin-bottom: 7px; }

    .accessibility-feature-icon svg { width: 21px; height: 21px; }

    .accessibility-feature-label { font-size: 11px; }

    .accessibility-panel-footer { bottom: -12px; margin-left: -12px; margin-right: -12px; padding: 10px 12px; margin-top: 12px; }

    .accessibility-reset-btn { min-height: 42px; font-size: 13px; border-radius: 10px; }
}

html.contrast-warm { filter: invert() !important; }

html.contrast-warm .enpara-footer, html.contrast-warm section#content { background: #fff !important; }

#readingMaskOverlay { display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; z-index: 99998; pointer-events: none; }

body.reading-mask-1 #readingMaskOverlay, body.reading-mask-2 #readingMaskOverlay { display: block; }

#readingMaskOverlay .reading-mask-area { position: absolute; left: 0; width: 100%; background: rgba(0, 0, 0, 0.42); transition: top 0.08s ease, height 0.08s ease, background 0.2s ease; }

#readingMaskOverlay .reading-mask-window { position: absolute; left: 0; width: 100%; border-top: 1px solid rgba(255, 214, 0, 0.48); border-bottom: 1px solid rgba(255, 214, 0, 0.48); box-shadow: 0 0 18px rgba(255, 214, 0, 0.10) inset; transition: top 0.08s ease, height 0.08s ease, border-color 0.2s ease; }

body.reading-mask-2 #readingMaskOverlay .reading-mask-area { background: rgba(0, 0, 0, 0.62); }

body.reading-mask-2 #readingMaskOverlay .reading-mask-window { border-top-color: rgba(255, 214, 0, 0.72); border-bottom-color: rgba(255, 214, 0, 0.72); }

.content-magnifier-target { position: relative !important; z-index: 99997 !important; transform-origin: center center !important; transition: transform 0.16s ease, box-shadow 0.16s ease, outline-color 0.16s ease !important; }

body.content-magnifier-1 .content-magnifier-target { transform: scale(1.14) !important; outline: 2px solid rgba(255, 214, 0, 0.55) !important; outline-offset: 4px !important; box-shadow: 0 10px 28px rgba(60, 63, 72, 0.18) !important; }

body.content-magnifier-2 .content-magnifier-target { transform: scale(1.28) !important; outline: 2px solid rgba(255, 214, 0, 0.78) !important; outline-offset: 5px !important; box-shadow: 0 14px 36px rgba(60, 63, 72, 0.24) !important; }

#readingGuideOverlay { display: none; position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 99998; pointer-events: none; }

body.reading-guide-1 #readingGuideOverlay, body.reading-guide-2 #readingGuideOverlay, body.reading-guide-3 #readingGuideOverlay { display: block; }

#readingGuideOverlay .reading-guide-line { position: absolute; left: 0; width: 100%; transform: translateY(-50%); transition: top 0.08s ease, height 0.16s ease, background 0.16s ease, box-shadow 0.16s ease; }

body.reading-guide-1 #readingGuideOverlay .reading-guide-line { height: 3px; background: #FFD600; box-shadow: 0 0 8px rgba(255, 214, 0, 0.45); }

body.reading-guide-2 #readingGuideOverlay .reading-guide-line { height: 9px; background: rgba(255, 214, 0, 0.82); box-shadow: 0 0 14px rgba(255, 214, 0, 0.50); }

body.reading-guide-3 #readingGuideOverlay .reading-guide-line { height: 18px; background: rgba(255, 214, 0, 0.34); border-top: 2px solid #FFD600; border-bottom: 2px solid #FFD600; box-shadow: 0 0 18px rgba(255, 214, 0, 0.45); }

body.slow-cursor-active :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { cursor: none !important; }

#slowCursorFollower { display: none; position: fixed; left: 0; top: 0; width: 56px; height: 56px; z-index: 99998; pointer-events: none; transform: translate3d(-100px, -100px, 0); }

body.slow-cursor-active #slowCursorFollower { display: block; }

#slowCursorFollower:before { content: ''; position: absolute; left: 7px; top: 4px; width: 0; height: 0; border-left: 0 solid transparent; border-right: 21px solid transparent; border-bottom: 34px solid #FFD600; filter: drop-shadow(0 10px 16px rgba(60, 63, 72, 0.30)); transform: rotate(-24deg); }

#slowCursorFollower:after { content: ''; position: absolute; left: 14px; top: 19px; width: 13px; height: 13px; border-radius: 50%; background: #b44ea7; box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.26); }

body.cursor-white-active :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M9 5 L43 30 L28 34 L36 50 L28 54 L20 38 L9 48 Z' fill='white' stroke='%23000' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 9 5, auto !important; }

body.cursor-black-active :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M9 5 L43 30 L28 34 L36 50 L28 54 L20 38 L9 48 Z' fill='%23000' stroke='white' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 9 5, auto !important; }

body.hide-images img:not(.accessibility-panel img):not(.accessibility-btn img), body.hide-images picture:not(.accessibility-panel picture):not(.accessibility-btn picture), body.hide-images svg:not(.accessibility-icon-sprite):not(.accessibility-panel svg):not(.accessibility-btn svg) { visibility: hidden !important; }

body.hide-images *:not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { background-image: none !important; }

body.screen-reader-1 :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { cursor: context-menu !important; }

.screen-reader-reading { outline: 3px solid #b44ea7 !important; outline-offset: 4px !important; background-color: rgba(180, 78, 167, 0.15) !important; border-radius: 4px !important; }

body.text-align-left :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { text-align: left !important; }

body.text-align-right :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { text-align: right !important; }

body.text-align-center :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { text-align: center !important; }

body.text-align-justify :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { text-align: justify !important; }

.accessibility-btn { font-size: 15px !important; }

.accessibility-panel-title { font-size: 13px !important; padding-left: 10px; }

.accessibility-panel-close { font-size: 20px !important; }

.accessibility-feature-label { font-size: 12px !important; }

body.line-height-1 :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { line-height: 1.5 !important; }

body.line-height-2 :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { line-height: 1.75 !important; }

body.line-height-3 :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { line-height: 2 !important; }

body.letter-spacing-1 :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { letter-spacing: 0.12em !important; word-spacing: 0.16em !important; }

body.letter-spacing-2 :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { letter-spacing: 0.16em !important; word-spacing: 0.20em !important; }

body.letter-spacing-3 :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { letter-spacing: 0.20em !important; word-spacing: 0.25em !important; }

#accessibilityAltTextOverlay { display: none; position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 99998; pointer-events: none; }

body.alt-text-active #accessibilityAltTextOverlay { display: block; }

.accessibility-alt-tooltip { position: absolute !important; background: #000 !important; color: #FFD600 !important; padding: 2px 6px !important; font-size: 11px !important; line-height: 1.2 !important; border-radius: 4px !important; box-shadow: 0 2px 5px rgba(0,0,0,0.5) !important; white-space: nowrap !important; max-width: 250px !important; overflow: hidden !important; text-overflow: ellipsis !important; pointer-events: none !important; }

body.alt-text-active img:not(.accessibility-panel *):not(.accessibility-btn *):not(.accessibility-flag), body.alt-text-active svg:not(.accessibility-panel *):not(.accessibility-btn *) { outline: 2px dashed #b44ea7 !important; outline-offset: 2px !important; }

body.dyslexia-1 :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *), body.dyslexia-2 :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { font-family: 'OpenDyslexic', 'Comic Sans MS', Arial, Verdana, sans-serif !important; text-rendering: optimizeLegibility !important; }

body.dyslexia-1 p:not(.accessibility-panel *), body.dyslexia-1 li:not(.accessibility-panel *), body.dyslexia-1 a:not(.accessibility-panel *), body.dyslexia-1 span:not(.accessibility-panel *), body.dyslexia-1 label:not(.accessibility-panel *), body.dyslexia-1 td:not(.accessibility-panel *), body.dyslexia-1 th:not(.accessibility-panel *) { line-height: 1.65 !important; letter-spacing: 0.025em !important; word-spacing: 0.08em !important; }

body.dyslexia-2 p:not(.accessibility-panel *), body.dyslexia-2 li:not(.accessibility-panel *), body.dyslexia-2 a:not(.accessibility-panel *), body.dyslexia-2 span:not(.accessibility-panel *), body.dyslexia-2 label:not(.accessibility-panel *), body.dyslexia-2 td:not(.accessibility-panel *), body.dyslexia-2 th:not(.accessibility-panel *) { line-height: 1.8 !important; letter-spacing: 0.045em !important; word-spacing: 0.14em !important; }

body.dyslexia-2 :not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { font-weight: 500 !important; }

body.link-selection-active a:not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *) { outline: 3px solid #FFD600 !important; outline-offset: 2px !important; text-decoration: underline !important; text-decoration-thickness: 3px !important; text-decoration-color: #FFD600 !important; background-color: rgba(255, 214, 0, 0.15) !important; color: #000 !important; }

body.pause-animation-active *:not(.accessibility-panel):not(.accessibility-panel *):not(.accessibility-btn):not(.accessibility-btn *), body.pause-animation-active *:before, body.pause-animation-active *:after { animation-play-state: paused !important; animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }

body.headings-active h1:not(.accessibility-panel *), body.headings-active h2:not(.accessibility-panel *), body.headings-active h3:not(.accessibility-panel *), body.headings-active h4:not(.accessibility-panel *), body.headings-active h5:not(.accessibility-panel *), body.headings-active h6:not(.accessibility-panel *) { outline: 2px dashed #b44ea7 !important; outline-offset: 4px !important; position: relative !important; }

body.headings-active h1:not(.accessibility-panel *)::before { content: "H1" !important; }

body.headings-active h2:not(.accessibility-panel *)::before { content: "H2" !important; }

body.headings-active h3:not(.accessibility-panel *)::before { content: "H3" !important; }

body.headings-active h4:not(.accessibility-panel *)::before { content: "H4" !important; }

body.headings-active h5:not(.accessibility-panel *)::before { content: "H5" !important; }

body.headings-active h6:not(.accessibility-panel *)::before { content: "H6" !important; }

body.headings-active h1:not(.accessibility-panel *)::before, body.headings-active h2:not(.accessibility-panel *)::before, body.headings-active h3:not(.accessibility-panel *)::before, body.headings-active h4:not(.accessibility-panel *)::before, body.headings-active h5:not(.accessibility-panel *)::before, body.headings-active h6:not(.accessibility-panel *)::before { position: absolute !important; top: -14px !important; left: -14px !important; background: #000 !important; color: #FFD600 !important; font-size: 11px !important; font-weight: 700 !important; line-height: 1 !important; padding: 3px 6px !important; border-radius: 4px !important; z-index: 99997 !important; pointer-events: none !important; box-shadow: 0 2px 4px rgba(0,0,0,0.5) !important; }

.accessibility-structure-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 100000; }

.accessibility-structure-overlay.is-active { display: block; animation: accessibilityOverlayFadeIn 0.3s ease; }

@keyframes accessibilityOverlayFadeIn {
    from { opacity: 0; }

    to { opacity: 1; }
}

.accessibility-structure-popup { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; max-width: 90vw; max-height: 75vh; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); z-index: 100001; flex-direction: column; font-family: 'Work Sans', sans-serif; }

.accessibility-structure-popup.is-active { display: flex; animation: accessibilityPopupScaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15); }

@keyframes accessibilityPopupScaleIn {
    from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }

    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.accessibility-structure-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: linear-gradient(135deg, #b44ea7 0%, #8f367f 100%); color: #fff; border-top-left-radius: 16px; border-top-right-radius: 16px; }

.accessibility-structure-title { font-weight: 700; font-size: 15px; margin: 0; }

.accessibility-structure-close { background: rgba(255, 255, 255, 0.15); border: none; border-radius: 50%; color: #fff; font-size: 20px; line-height: 1; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; }

.accessibility-structure-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }

.accessibility-structure-tabs { display: flex; border-bottom: 1px solid #e9edef; padding: 0 10px; background: #fcfcfc; }

.accessibility-structure-tab-btn { flex: 1; background: transparent; border: none; border-bottom: 2px solid transparent; padding: 16px 10px; margin: 0 5px; font-family: 'Work Sans', sans-serif; font-size: 14px; font-weight: 600; color: #7b8091; cursor: pointer; transition: all 0.2s ease; }

.accessibility-structure-tab-btn.is-active { border-bottom-color: #b44ea7; color: #b44ea7; }

.accessibility-structure-tab-btn:hover:not(.is-active) { color: #3c3f48; }

.accessibility-structure-content { padding: 10px 24px 24px 24px; overflow-y: auto; }

.accessibility-structure-content::-webkit-scrollbar { width: 8px; }

.accessibility-structure-content::-webkit-scrollbar-track { background: transparent; }

.accessibility-structure-content::-webkit-scrollbar-thumb { background: rgba(180, 78, 167, 0.3); border-radius: 4px; }

.accessibility-structure-empty { padding: 40px 0; text-align: center; color: #7b8091; font-weight: 500; font-size: 14px; }

.accessibility-structure-item-h1 { font-weight: 700; font-size: 16px; color: #b44ea7; margin: 20px 0 8px 0; border-bottom: 1px solid #f0f0f0; padding-bottom: 6px; }

.accessibility-structure-item-h2 { font-weight: 600; font-size: 15px; color: #b44ea7; margin: 14px 0 6px 15px; }

.accessibility-structure-item-h3 { font-weight: 600; font-size: 14px; color: #555864; margin: 12px 0 6px 30px; }

.accessibility-structure-item-h4 { font-weight: 500; font-size: 13px; color: #555864; margin: 10px 0 6px 45px; }

.accessibility-structure-item-h5 { font-weight: 500; font-size: 12px; color: #555864; margin: 8px 0 6px 60px; }

.accessibility-structure-item-h6 { font-weight: 500; font-size: 12px; color: #555864; margin: 8px 0 6px 75px; }

.accessibility-structure-item-a { display: block; font-size: 13px; margin: 8px 0 8px 30px; padding-left: 22px; position: relative; }

.accessibility-structure-item-a::before { content: "🔗"; position: absolute; left: 0; font-size: 12px; top: 0px; opacity: 0.5; filter: grayscale(1); }

.accessibility-structure-item-a a { color: #3c3f48; text-decoration: none; font-weight: 500; }

.accessibility-structure-item-a a:hover { color: #b44ea7; text-decoration: underline; }


/* ========== KOYU KONTRAST + OKUMA ARAÇLARI (GÜÇLÜ DÜZELTME) ========== */

/* Okuma Maskesi ve Okuma Ayracı overlay'lerini Koyu Kontrast kurallarından kurtar */
body.contrast-dark #readingMaskOverlay,
body.contrast-dark #readingGuideOverlay,
body.contrast-high #readingMaskOverlay,
body.contrast-high #readingGuideOverlay { background: transparent !important; color: inherit !important; }

/* Okuma Maskesi içindeki alanlar */
body.contrast-dark #readingMaskOverlay .reading-mask-area,
body.contrast-high #readingMaskOverlay .reading-mask-area { background: rgba(0, 0, 0, 0.82) !important; }

body.contrast-dark #readingMaskOverlay .reading-mask-window,
body.contrast-high #readingMaskOverlay .reading-mask-window { background: transparent !important; border-color: #FFD600 !important; box-shadow: 0 0 25px rgba(255, 214, 0, 0.2) inset !important; }

/* Okuma Ayracı çizgisi */
body.contrast-dark #readingGuideOverlay .reading-guide-line,
body.contrast-high #readingGuideOverlay .reading-guide-line { background: #FFD600 !important; box-shadow: 0 0 15px rgba(255, 214, 0, 0.7) !important; border-color: #FFD600 !important; }

/* Overlay'lerin ve çocuklarının görünürlüğünü garanti et */
body.contrast-dark #readingMaskOverlay *,
body.contrast-dark #readingGuideOverlay *,
body.contrast-high #readingMaskOverlay *,
body.contrast-high #readingGuideOverlay * { color: inherit !important; }

/* Z-index ve display sorunlarını çöz */
body.contrast-dark #readingMaskOverlay,
body.contrast-dark #readingGuideOverlay,
body.contrast-high #readingMaskOverlay,
body.contrast-high #readingGuideOverlay { display: block !important; z-index: 99998 !important; }


/* ========== Okuma Maskesi Overlay Kapanma Düzeltmesi ========== */

/* Overlay display:none olduğunda içindeki tüm elementleri de gizle */
#readingMaskOverlay[style*="display: none"],
#readingMaskOverlay[style*="display:none"] { display: none !important; }

#readingMaskOverlay[style*="display: none"] .reading-mask-area,
#readingMaskOverlay[style*="display: none"] .reading-mask-window,
#readingMaskOverlay[style*="display: none"] .reading-mask-top,
#readingMaskOverlay[style*="display: none"] .reading-mask-bottom { display: none !important; }

/* Ekstra güvenlik için */
body:not(.reading-mask-1):not(.reading-mask-2) #readingMaskOverlay { display: none !important; }

body:not(.reading-mask-1):not(.reading-mask-2) #readingMaskOverlay .reading-mask-area,
body:not(.reading-mask-1):not(.reading-mask-2) #readingMaskOverlay .reading-mask-window { display: none !important; }



/* ========== KOYU KONTRAST + ALTERNATİF METİN ÇAKIŞMA DÜZELTMESİ ========== */

/* Alternatif Metin overlay'ini Koyu Kontrast modunda düzelt */
body.contrast-dark.alt-text-active #accessibilityAltTextOverlay,
body.contrast-high.alt-text-active #accessibilityAltTextOverlay { background: transparent !important; z-index: 99998 !important; }

/* Tooltip'leri (Alternatif Metin baloncukları) Koyu Kontrast'ta okunabilir yap */
body.contrast-dark .accessibility-alt-tooltip,
body.contrast-high .accessibility-alt-tooltip { background: #1f2937 !important; color: #ffffff !important; border: 1px solid #FFD600 !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important; }

/* Alternatif Metin aktifken görsellerin outline'ını Koyu Kontrast'ta düzelt */
body.contrast-dark.alt-text-active img:not(.accessibility-panel img):not(.accessibility-btn img),
body.contrast-high.alt-text-active img:not(.accessibility-panel img):not(.accessibility-btn img) { outline-color: #FFD600 !important; }

/* Genel güvenlik - Overlay ve tooltip'lerin görünürlüğünü koru */
body.contrast-dark.alt-text-active #accessibilityAltTextOverlay,
body.contrast-high.alt-text-active #accessibilityAltTextOverlay { display: block !important; }






/* ========== MAVİ IŞIK + KARANLIK MOD ÇAKIŞMA DÜZELTMESİ ========== */

/* Karanlık Mod + Mavi Işık Overlay düzeltmesi */
body.dark-mode #blueLightOverlay { display: block !important; z-index: 99997 !important; pointer-events: none; }

/* Mavi Işık seviyelerine göre overlay rengini ayarla (Karanlık Mod'da) */
body.dark-mode.blue-light-filter-1 #blueLightOverlay { background: rgba(255, 196, 64, 0.15) !important; }

body.dark-mode.blue-light-filter-2 #blueLightOverlay { background: rgba(255, 166, 0, 0.25) !important; }

/* Karanlık Mod'da metinlerin okunabilirliğini koru */
body.dark-mode.blue-light-filter-1,
body.dark-mode.blue-light-filter-2 { color: #f5f5f5 !important; }

/* Linkleri de okunabilir yap */
body.dark-mode.blue-light-filter-1 a:not(.accessibility-panel *):not(.accessibility-btn *),
body.dark-mode.blue-light-filter-2 a:not(.accessibility-panel *):not(.accessibility-btn *) { color: #9fd3ff !important; }

/* Ek güvenlik - Overlay'in görünürlüğünü garanti et */
body.dark-mode #blueLightOverlay { opacity: 1 !important; }



/* ========== MAVİ IŞIK + TEK RENKLİ KONTRAST (Monochrome) ÇAKIŞMA DÜZELTMESİ ========== */

/* Tek Renkli Kontrast + Mavi Işık Overlay düzeltmesi */
body.contrast-monochrome #blueLightOverlay { display: block !important; z-index: 99997 !important; pointer-events: none; }

/* Mavi Işık seviyelerine göre overlay rengini ayarla (Tek Renkli modda) */
body.contrast-monochrome.blue-light-filter-1 #blueLightOverlay { background: rgba(200, 180, 120, 0.18) !important; /* Daha yumuşak sarımsı ton */ }

body.contrast-monochrome.blue-light-filter-2 #blueLightOverlay { background: rgba(180, 150, 80, 0.28) !important; }

/* Tek Renkli modda metin ve içerik görünürlüğünü koru */
body.contrast-monochrome.blue-light-filter-1,
body.contrast-monochrome.blue-light-filter-2 { color: #111111 !important; }

/* Linkleri de görünür yap */
body.contrast-monochrome.blue-light-filter-1 a:not(.accessibility-panel *):not(.accessibility-btn *),
body.contrast-monochrome.blue-light-filter-2 a:not(.accessibility-panel *):not(.accessibility-btn *) { color: #000000 !important; text-decoration: underline !important; }

/* Buton ve önemli elementleri belirginleştir */
body.contrast-monochrome.blue-light-filter-1 button:not(.accessibility-panel button):not(.accessibility-btn),
body.contrast-monochrome.blue-light-filter-2 button:not(.accessibility-panel button):not(.accessibility-btn) { background-color: #f0f0f0 !important; color: #000000 !important; border: 2px solid #000000 !important; }



/* ========== WIDGET KORUMA (En Üstte) ========== */
/*.accessibility-btn,
.accessibility-panel,
.accessibility-panel * { all: revert !important; }
*/
/* ========== KARANLIK MOD (#000) ========== */

body.dark-mode { background-color: #000 !important; color: #e5e5e5 !important; }

/* Header, Footer, Section, Article vb. */
body.dark-mode header,
body.dark-mode footer,
body.dark-mode nav,
body.dark-mode main,
body.dark-mode section,
body.dark-mode article,
body.dark-mode aside,
body.dark-mode navigation,
body.dark-mode footer div { background-color: #000 !important; color: #e5e5e5 !important; }

/* Genel içerik elementleri */
body.dark-mode p,
body.dark-mode span,
body.dark-mode li,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 { color: #e5e5e5 !important; }

/* Linkler */
body.dark-mode a:not(.accessibility-panel *):not(.accessibility-btn *) { color: #60a5fa !important; }

/* Butonlar */
body.dark-mode button:not(.accessibility-panel button):not(.accessibility-btn) { background-color: #1f2937 !important; color: #e5e5e5 !important; border: 1px solid #475569 !important; }









/* ========== KARANLIK MOD + KONTRAST MOD ÇAKIŞMA (GÜÇLÜ) ========== */

/* Koyu Kontrast + Karanlık Mod */
body.contrast-dark.dark-mode,
body.contrast-high.dark-mode { background-color: #111111 !important; color: #e5e5e5 !important; }

/* Yapısal elementler */
body.contrast-dark.dark-mode header,
body.contrast-dark.dark-mode footer,
body.contrast-dark.dark-mode nav,
body.contrast-dark.dark-mode main,
body.contrast-dark.dark-mode section,
body.contrast-dark.dark-mode article,
body.contrast-high.dark-mode header,
body.contrast-high.dark-mode footer,
body.contrast-high.dark-mode nav,
body.contrast-high.dark-mode main,
body.contrast-high.dark-mode section,
body.contrast-high.dark-mode article { background-color: #111111 !important; color: #e5e5e5 !important; }

/* Metin rengi */
body.contrast-dark.dark-mode p,
body.contrast-dark.dark-mode span,
body.contrast-dark.dark-mode li,
body.contrast-dark.dark-mode h1,
body.contrast-dark.dark-mode h2,
body.contrast-dark.dark-mode h3,
body.contrast-high.dark-mode p,
body.contrast-high.dark-mode span,
body.contrast-high.dark-mode li,
body.contrast-high.dark-mode h1,
body.contrast-high.dark-mode h2,
body.contrast-high.dark-mode h3 { color: #e5e5e5 !important; }

/* Linkler */
body.contrast-dark.dark-mode a:not(.accessibility-panel *):not(.accessibility-btn *),
body.contrast-high.dark-mode a:not(.accessibility-panel *):not(.accessibility-btn *) { color: #60a5fa !important; }

/* Butonlar */
body.contrast-dark.dark-mode button:not(.accessibility-panel button):not(.accessibility-btn),
body.contrast-high.dark-mode button:not(.accessibility-panel button):not(.accessibility-btn) { background-color: #1f2937 !important; color: #e5e5e5 !important; border: 1px solid #475569 !important; }






/* ========== YENİ DENGELİ KOYU / YÜKSEK KONTRAST ========== */


/* ========== KOYU / YÜKSEK KONTRAST + KARANLIK MOD (Düzeltilmiş) ========== */

body.contrast-dark.dark-mode,
body.contrast-high.dark-mode { background-color: #111111 !important; color: #e5e5e5 !important; }

/* Tüm elementlere açık renk ver */
body.contrast-dark.dark-mode *,
body.contrast-high.dark-mode * { color: #e5e5e5 !important; }

/* Linkler */
body.contrast-dark.dark-mode a:not(.accessibility-panel *):not(.accessibility-btn *) { color: #60a5fa !important; }

/* Butonlar */
body.contrast-dark.dark-mode button:not(.accessibility-panel button):not(.accessibility-btn),
body.contrast-high.dark-mode button:not(.accessibility-panel button):not(.accessibility-btn) { background-color: #1f2937 !important; color: #e5e5e5 !important; border: 1px solid #475569 !important; }



body.contrast-dark a:not(.accessibility-panel *):not(.accessibility-btn *),
body.contrast-high a:not(.accessibility-panel *):not(.accessibility-btn *) { color: #60a5fa !important; }

body.contrast-dark button:not(.accessibility-panel button):not(.accessibility-btn),
body.contrast-high button:not(.accessibility-panel button):not(.accessibility-btn) { background-color: #1f2937 !important; color: #e5e5e5 !important; border: 1px solid #475569 !important; }













/* ========== SLOW CURSOR + NORMAL CURSOR ÇAKIŞMA DÜZELTMESİ ========== */

/* Slow Cursor aktifken normal imleci gizle */
body.slow-cursor-active {
    cursor: none !important;
}

body.slow-cursor-active.cursor-white-active,
body.slow-cursor-active.cursor-black-active {
    cursor: none !important;
}


/* ========== TEK RENKLİ KONTRAST (Monochrome) - SİYAH BEYAZ ========== */

body.contrast-monochrome { background-color: #f5f5f5 !important; color: #111111 !important; }

/* Filter'ı sadece ana içerik elementlerine uygula, body'ye değil */
/*body.contrast-monochrome :not(.accessibility-panel):not(.accessibility-panel *),*/
body.contrast-monochrome #content,
body.contrast-monochrome header,
body.contrast-monochrome .main-content,
body.contrast-monochrome section,
body.contrast-monochrome footer,
body.contrast-monochrome article { filter: grayscale(1) !important; }

body.contrast-monochrome .accessibility-panel,
body.contrast-monochrome .accessibility-panel *,
body.contrast-monochrome .accessibility-btn { filter: grayscale(1) !important; }


/* ========== SADECE KOYU / YÜKSEK KONTRAST (Arka Plan Siyah) ========== */

body.contrast-dark:not(.dark-mode),
body.contrast-high:not(.dark-mode) { background-color: #000000 !important; color: #e5e5e5 !important; }

/* Yapısal elementler */
body.contrast-dark:not(.dark-mode) header,
body.contrast-dark:not(.dark-mode) footer,
body.contrast-dark:not(.dark-mode) nav,
body.contrast-dark:not(.dark-mode) main,
body.contrast-dark:not(.dark-mode) section,
body.contrast-dark:not(.dark-mode) article,
body.contrast-dark:not(.dark-mode) navigation,
body.contrast-dark:not(.dark-mode) footer div,
body.contrast-high:not(.dark-mode) header,
body.contrast-high:not(.dark-mode) footer,
body.contrast-high:not(.dark-mode) navigation,
body.contrast-high:not(.dark-mode) footer div,
body.contrast-high:not(.dark-mode) nav,
body.contrast-high:not(.dark-mode) main,
body.contrast-high:not(.dark-mode) section,
body.contrast-high:not(.dark-mode) article { background-color: #000000 !important; color: #e5e5e5 !important; }

/* Metinler */
body.contrast-dark:not(.dark-mode) p,
body.contrast-dark:not(.dark-mode) span,
body.contrast-dark:not(.dark-mode) li,
body.contrast-dark:not(.dark-mode) h1,
body.contrast-dark:not(.dark-mode) h2,
body.contrast-dark:not(.dark-mode) h3,
body.contrast-high:not(.dark-mode) p,
body.contrast-high:not(.dark-mode) span,
body.contrast-high:not(.dark-mode) li,
body.contrast-high:not(.dark-mode) h1,
body.contrast-high:not(.dark-mode) h2,
body.contrast-high:not(.dark-mode) h3 { color: #e5e5e5 !important; }

/* Linkler */
body.contrast-dark:not(.dark-mode) a:not(.accessibility-panel *):not(.accessibility-btn *),
body.contrast-high:not(.dark-mode) a:not(.accessibility-panel *):not(.accessibility-btn *) { color: #60a5fa !important; }

/* Butonlar */
body.contrast-dark:not(.dark-mode) button:not(.accessibility-panel button):not(.accessibility-btn),
body.contrast-high:not(.dark-mode) button:not(.accessibility-panel button):not(.accessibility-btn) { background-color: #1f2937 !important; color: #e5e5e5 !important; border: 1px solid #475569 !important; }












/* ========== IŞIK KONTRAST MODU (Element Bazlı - Filter'sız Body) ========== */

body.contrast-light { background-color: #f8f9fa !important; color: #1a1a1a !important; }

/* Ana container'lar */
body.contrast-light header,
body.contrast-light footer,
/*body.contrast-light main,*/
body.contrast-light section,
body.contrast-light article,
body.contrast-light aside,
body.contrast-light nav,
body.contrast-light div { filter: contrast(4) !important; }

/* İçerik elementleri */
body.contrast-light p,
body.contrast-light span,
body.contrast-light li,
body.contrast-light h1,
body.contrast-light h2,
body.contrast-light h3,
body.contrast-light h4,
body.contrast-light h5,
body.contrast-light h6,
body.contrast-light a,
body.contrast-light label,
body.contrast-light strong,
body.contrast-light em { filter: contrast(4) !important; }

/* Form elementleri */
body.contrast-light button,
body.contrast-light input,
body.contrast-light select,
body.contrast-light textarea { filter: contrast(4) !important; }

/* ==================== WIDGET KORUMA ==================== */
body.contrast-light .accessibility-btn,
body.contrast-light .accessibility-panel,
body.contrast-light .accessibility-panel * { filter: none !important; -webkit-filter: none !important; }

/* Buton ve panel içindeki aktif öğeleri koru */
body.contrast-light .accessibility-btn { background: linear-gradient(135deg, #b44ea7 0%, #8f367f 100%) !important; color: #fff !important; }

body.contrast-light .accessibility-feature.is-active { background: linear-gradient(135deg, #b44ea7 0%, #9d3d91 100%) !important; color: #fff !important; }

body.contrast-light .accessibility-panel-header { background: linear-gradient(135deg, #b44ea7 0%, #8f367f 100%) !important; }






/* ========== SAYFA BAŞLIKLARI (Page Headings) ========== */

body.page-headings-active h1,
body.page-headings-active h2,
body.page-headings-active h3,
body.page-headings-active h4,
body.page-headings-active h5,
body.page-headings-active h6 { outline: 3px solid #b44ea7 !important; outline-offset: 4px !important; position: relative !important; }

body.page-headings-active h1::before { content: "H1"; }
body.page-headings-active h2::before { content: "H2"; }
body.page-headings-active h3::before { content: "H3"; }
body.page-headings-active h4::before { content: "H4"; }
body.page-headings-active h5::before { content: "H5"; }
body.page-headings-active h6::before { content: "H6"; }

body.page-headings-active h1::before,
body.page-headings-active h2::before,
body.page-headings-active h3::before,
body.page-headings-active h4::before,
body.page-headings-active h5::before,
body.page-headings-active h6::before { position: absolute !important; top: -14px !important; left: -14px !important; background: #b44ea7 !important; color: #fff !important; font-size: 11px !important; font-weight: 700 !important; padding: 2px 6px !important; border-radius: 4px !important; z-index: 99997 !important; pointer-events: none !important; }






/* ============================================= */
/* WIDGET KORUMA - Accessibility Panel */
/* Bu blok en altta olmalı ve silinmemeli */
/* ============================================= */
html body .accessibility-panel,
html body .accessibility-panel *,
html body .accessibility-panel span,
html body .accessibility-panel .accessibility-feature span,
html body .accessibility-panel .accessibility-feature *,
html body .accessibility-panel .accessibility-profiles-wrap .accessibility-profiles-toggle span { color: #3c3f48 !important; box-shadow: revert !important; }
html body .accessibility-panel { box-shadow: 0 24px 70px rgba(60, 63, 72, 0.18), 0 8px 30px rgba(180, 78, 167, 0.18) !important; }
html body .accessibility-panel .accessibility-feature { box-shadow: 0 8px 24px rgba(60, 63, 72, 0.06) !important; }
html body .accessibility-panel .accessibility-feature.is-active *,
html body .accessibility-panel .accessibility-panel-title,
html body .accessibility-panel .accessibility-panel-title,
html body .accessibility-panel .accessibility-panel-close,
html body .accessibility-panel .accessibility-feature.is-active span *,
html body .accessibility-btn { color: #fff !important; }
html body .accessibility-panel .accessibility-feature .accessibility-feature-icon,
html body .accessibility-panel .accessibility-feature .accessibility-feature-icon * { color: #b44ea7 !important; }
html body .accessibility-panel .accessibility-reset-btn { color: #b44ea7 !important; }
html body .accessibility-panel .accessibility-feature-label { color: #fff !important; }