@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

#a11y-sidebar {
    position: fixed;
    top: 0;
    left: -400px; 
    width: 380px;
    height: 100vh;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

#a11y-sidebar.is-open { left: 0; }
#a11y-sidebar * { box-sizing: border-box; }

.a11y-header {
    background: #3e3e5e; 
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.a11y-header h3 { margin: 0; font-size: 18px; font-weight: 600; }
#a11y-close { background: none; border: none; color: #fff; cursor: pointer; }

.a11y-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
}

.a11y-footer {
    padding: 15px;
    background: #002776 !important;
    text-align: center;
}
#btn-reset-all {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.a11y-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.a11y-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.a11y-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.mt-20 { margin-top: 20px; }

.a11y-card-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    height: 100px;
}
.a11y-card-btn span { font-size: 12px; margin-top: 8px; font-weight: 600; line-height: 1.2; }
.a11y-card-btn:hover { border-color: #3e3e5e; background: #f9f9f9; }
.a11y-card-btn.active { background: #3e3e5e; color: #fff; border-color: #3e3e5e; }

.a11y-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}
.a11y-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.a11y-card-text p { margin: 0; font-size: 12px; color: #666; margin-top: 3px; }

.a11y-card-actions { display: flex; gap: 10px; }
.a11y-pill-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid #aaa;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.a11y-pill-btn:hover { background: #f0f0f0; }

.a11y-tabs { display: flex; gap: 5px; margin-bottom: 15px; }
.a11y-tabs button {
    flex: 1;
    font-size: 11px;
    padding: 8px 2px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.a11y-tabs button.active { background: #555; color: #fff; border-color: #555; }

.a11y-slider-container { display: flex; align-items: center; gap: 10px; }
.slider-btn-minus, .slider-btn-plus {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid #333; background: #fff; cursor: pointer;
    font-size: 18px; line-height: 1;
}

#font-range {
    flex: 1;
    accent-color: #3e3e5e;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 20px;
}

#font-range::-webkit-slider-runnable-track {
    background: #d0d0d0;
    border: 1px solid #555;
    border-radius: 4px;
    height: 6px;
}

#font-range::-moz-range-track {
    background: #d0d0d0;
    border: 1px solid #555;
    border-radius: 4px;
    height: 6px;
}

#font-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #3e3e5e;
    border: 2px solid #222;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -7px;
}

#font-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #3e3e5e;
    border: 2px solid #222;
    border-radius: 50%;
    cursor: pointer;
    box-sizing: border-box;
}

#a11y-trigger {
    position: fixed; bottom: 30px; left: 30px;
    width: 60px; height: 60px; border-radius: 50%;
    background-color: #f3fdff; 
    color: white;
    border: 1px solid #004288;
     z-index: 9998;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); cursor: pointer;
}

#a11y-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 9990; display: none;
}
#a11y-overlay.is-visible { display: block; }

body.a11y-hide-images img { opacity: 0 !important; }

body.a11y-hide-images .item-picture {
    background-image: none !important;
}

body.a11y-hide-images .basari-hikayeleri {
    background-image: none !important; 
}

body.a11y-hide-images div:not(#a11y-sidebar):not(.a11y-card-btn):not(.slider-btn-minus):not(.slider-btn-plus) {
    background-image: none !important;
}

body.a11y-magnifier {
    cursor: zoom-in; 
}

body.a11y-magnifier :is(h1, h2, h3, h4, h5, h6, p, li, span, a):not(.a11y-btn):not(#a11y-sidebar *):not(.header-bottom *):hover {
    display: inline-block; 
    transform: scale(1.1); 
    transform-origin: left center; 
    transition: transform 0.2s ease-out;
    
    background-color: rgba(255, 255, 0, 0.1);
    text-shadow: 0 0 1px rgba(0,0,0,0.2);
    position: relative; 
    z-index: 10; 
    
    text-decoration: none;
}

body.a11y-magnifier a:hover {
    text-decoration: none;
}

#a11y-sidebar *, 
#a11y-trigger *,
.slider-btn-minus, 
.slider-btn-plus {
    transform: none !important;
    background-color: transparent !important;
}

:root { --a11y-font-scale: 1; }
html { font-size: calc(100% * var(--a11y-font-scale)) !important; }

body.cursor-white * { cursor: url('data:image/svg+xml;utf8,<svg ...>...') 0 0, auto !important; } 
body.cursor-black * { cursor: url('data:image/svg+xml;utf8,<svg ...>...') 0 0, auto !important; }

body.a11y-contrast {
    filter: none !important; 
}

body.a11y-contrast::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;      
    height: 100vh;     
    backdrop-filter: grayscale(100%) !important;
    -webkit-backdrop-filter: grayscale(100%) !important; 
    pointer-events: none;
    z-index: 9900; 
}

#a11y-sidebar, #a11y-sidebar * {
    color: #333 !important; 
}
#a11y-sidebar .a11y-header { color: #fff !important; background-color: #002776 !important; }

#a11y-sidebar .a11y-header h3 { 
    color: #fff !important;
}

body.cursor-black, 
body.cursor-black a, 
body.cursor-black button {
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L8 24L12 14L22 14L0 0Z" fill="black" stroke="white" stroke-width="2"/></svg>'), auto !important;
}

body.cursor-white, 
body.cursor-white a, 
body.cursor-white button {
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L8 24L12 14L22 14L0 0Z" fill="white" stroke="black" stroke-width="2"/></svg>'), auto !important;
}

.a11y-pill-btn.active {
    background-color: #3e3e5e;
    color: #fff;
    border-color: #3e3e5e;
}


body.a11y-img-desc img {
    outline: 4px solid #007bff !important; 
    cursor: help !important;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    transition: all 0.2s;
}

body.a11y-img-desc img:hover {
    opacity: 0.9;
}

#a11y-alt-tooltip {
    position: fixed; 
    display: none;  
    z-index: 10000;  
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-family: sans-serif;
    font-size: 14px;
    border-radius: 4px;
    pointer-events: none; 
    white-space: nowrap;  
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

body.a11y-img-desc #a11y-sidebar img,
body.a11y-img-desc #a11y-trigger img {
    outline: none !important;
    cursor: default !important;
    box-shadow: none !important;
}

/* Disleksi Font */
body.a11y-dyslexia * {
    font-family: "Lexend", sans-serif;
    line-height: 1.6 !important;
    word-spacing: 0.1em !important;
}
body.a11y-dyslexia .material-icons, 
body.a11y-dyslexia i, 
body.a11y-dyslexia svg * {
    font-family: inherit !important; 
}

body.a11y-stop-anim *,
body.a11y-stop-anim *::before,
body.a11y-stop-anim *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important; 
}


#a11y-reading-mask-el {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 2147483647; 
    display: none;
    
    box-sizing: content-box;
    border-color: rgba(0, 0, 0, 0.7); 
    border-style: solid;
    border-width: 0 0; 
}
body.a11y-reading-mask #a11y-reading-mask-el {
    display: block;
}

body.a11y-read-mode :is(h1, h2, h3, h4, h5, h6, li, blockquote):not(.a11y-btn):not(#a11y-sidebar *):not(header *):not(.header *):not(.header-bottom *):not(.menu-container *),
body.a11y-read-mode p:not(.paragraph--type--prg-grid *):not(.paragraph--type--text-link *):not(#block-customblock2 *):not(.block-block-content *):not(.card *):not(#a11y-sidebar *):not(header *):not(.header *):not(.header-bottom *):not(.menu-container *) {
    position: relative;
    padding-left: 35px; 
    transition: background-color 0.2s;
    cursor: pointer;
}

body.a11y-read-mode :is(h1, h2, h3, h4, h5, h6, li, blockquote):not(.a11y-btn):not(#a11y-sidebar *):not(header *):not(.header *):not(.header-bottom *):not(.menu-container *)::before,
body.a11y-read-mode p:not(.paragraph--type--prg-grid *):not(.paragraph--type--text-link *):not(#block-customblock2 *):not(.block-block-content *):not(.card *):not(#a11y-sidebar *):not(header *):not(.header *):not(.header-bottom *):not(.menu-container *)::before {
    content: ""; 
    position: absolute;
    left: 0;
    top: 5px;
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 16"><path fill-rule="evenodd" d="M14 8A7 7 0 1 1 0 8a7 7 0 0 1 14 0zm-8.223 3.482l4.599-3.066a.5.5 0 0 0 0-.832L5.777 4.518A.5.5 0 0 0 5 4.934v6.132a.5.5 0 0 0 .777.416z" fill="%2328a745"/></svg>');
    background-repeat: no-repeat;
    background-size: 20px;
    opacity: 0.7;
    z-index: 10;
}

body.a11y-read-mode .paragraph--type--prg-grid,
body.a11y-read-mode .paragraph--type--text-link,
body.a11y-read-mode #block-customblock2,
body.a11y-read-mode .block-block-content,
body.a11y-read-mode .card { 
    position: relative !important; 
    padding-left: 40px !important;
    cursor: pointer;
    display: block; 
    transition: background-color 0.2s;
}

body.a11y-read-mode .paragraph--type--prg-grid:hover,
body.a11y-read-mode .card:hover {
    background-color: rgba(0,0,0,0.02);
}

body.a11y-read-mode .paragraph--type--prg-grid::before,
body.a11y-read-mode .paragraph--type--text-link::before,
body.a11y-read-mode #block-customblock2::before,
body.a11y-read-mode .block-block-content::before,
body.a11y-read-mode .card::before { 
    content: ""; 
    position: absolute;
    left: 8px; 
    top: 8px; 
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 16"><path fill-rule="evenodd" d="M14 8A7 7 0 1 1 0 8a7 7 0 0 1 14 0zm-8.223 3.482l4.599-3.066a.5.5 0 0 0 0-.832L5.777 4.518A.5.5 0 0 0 5 4.934v6.132a.5.5 0 0 0 .777.416z" fill="%2328a745"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.9; 
    z-index: 100;
    pointer-events: none; 
}


/* body.a11y-read-mode .paragraph--type--prg-grid :is(p, span, li, h3, div),
body.a11y-read-mode .paragraph--type--text-link :is(p, span, li, h3, div),
{
    padding-left: unset !important;
    cursor: inherit !important; 
    background: unset !important;
} */

body.a11y-read-mode .paragraph--type--prg-grid.a11y-reading-now::before,
body.a11y-read-mode .card.a11y-reading-now::before {
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc3545'%3E%3Cpath d='M6 6h12v12H6z'/%3E%3C/svg%3E") !important;
}

/* body.a11y-read-mode :is(.paragraph--type--prg-grid, .paragraph--type--text-link, #block-customblock2, .block-block-content, .card) :is(h1, h2, h3, h4, h5, h6, p, span, li, div, strong, em, a) {
    padding-left: unset !important;   
    cursor: inherit !important;   
    background: unset !important;
} */

body.a11y-read-mode :is(.paragraph--type--prg-grid, .paragraph--type--text-link, #block-customblock2, .block-block-content, .card) :is(h1, h2, h3, h4, h5, h6, p, span, li, div, strong, em, a)::before {
    content: none !important;    
    display: none !important;    
    background-image: none !important;
}


body.a11y-read-mode header *,
body.a11y-read-mode .header *,
body.a11y-read-mode .header-bottom *,
body.a11y-read-mode .menu-container *,
body.a11y-read-mode nav *,
body.a11y-read-mode .footer *,
body.a11y-read-mode button *, 
body.a11y-read-mode [role="button"] *,
body.a11y-read-mode .owl-nav * {
    /* padding-left: 0 !important; */
    box-shadow: none !important;
    cursor: pointer; 
}

body.a11y-read-mode header *::before,
body.a11y-read-mode .header *::before,
body.a11y-read-mode .header-bottom *::before,
body.a11y-read-mode .menu-container *::before,
body.a11y-read-mode nav *::before,
body.a11y-read-mode .footer *::before,
body.a11y-read-mode button::before, 
body.a11y-read-mode [role="button"]::before,
body.a11y-read-mode .owl-nav *::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
}

/*Yeni Buton*/

#a11y-page-player {
    position: fixed;
    top: 15px; 
    left: 20px; 
    width: 60px;
    height: 60px;
    background-color: #007bff; 
    color: #fff;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9991; 
    cursor: pointer;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-60px); 
    transition: all 0.3s ease;
}

body.a11y-read-mode #a11y-page-player {
    opacity: 1;
    visibility: visible;
    transform: scale(1) rotate(0deg);
}

#a11y-page-player:hover {
    background-color: #0056b3; 
    transform: scale(1.1);
}

#a11y-page-player .player-text {
    position: absolute;
    bottom: -24px;
    width: 80px;
    font-size: 12px;
    font-weight: 500;
}

#a11y-page-player svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#a11y-page-player.playing {
    background-color: #dc3545; 
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

@media (max-width: 1420px) {
    #a11y-page-player {
        width: 60px !important;
        height: 60px !important;
        top: auto !important;
        bottom: 105px; 
        left: 30px;
    }
    #a11y-page-player .player-text {
        display: none;
    }
}

@media (max-width: 1445px) {
    #a11y-page-player {
        top: 24px;
        width: 40px;
        height: 40px;
    }
}