/* =================== ERİŞİLEBİLİRLİK WIDGET'I =================== */
.acc-widget-root, .acc-widget-root * {
    box-sizing: border-box;
}

.acc-widget-root {
    font-family: 'Poppins', sans-serif;
}

/* ---- Tetik Buton ---- */
.acc-trigger {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary, #0aa0a4);
    color: #fff;
    font-size: 24px;
    border: 3px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2), 0 0 0 2px rgba(10, 160, 164, .15);
    cursor: pointer;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), background .3s;
}
.acc-trigger:hover { background: var(--primary-dark, #077a7d); transform: scale(1.08); }
.acc-trigger:focus-visible { outline: 3px solid var(--secondary, #f5c343); outline-offset: 3px; }

/* ---- Panel (tam yükseklik kayar çekmece) ---- */
.acc-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 390px;
    max-width: 100vw;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    z-index: 2147483001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1);
    overflow: hidden;
}
.acc-panel.active { transform: translateX(0); }

.acc-panel-header {
    background: var(--primary, #0aa0a4);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.acc-panel-title { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.acc-panel-title-icon {
    width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.acc-panel-header-actions { display: flex; align-items: center; gap: 6px; }
.acc-icon-btn {
    background: none; border: none; color: #fff; cursor: pointer; border-radius: 8px;
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: background .2s, transform .2s;
}
.acc-icon-btn:hover { background: rgba(255, 255, 255, .18); }
.acc-icon-btn:active { transform: scale(.9); }

.acc-tab-bar {
    display: flex; gap: 4px; padding: 0 14px; background: #fff;
    border-bottom: 2px solid var(--border, #e6e9ef); flex-shrink: 0;
}
.acc-tab {
    background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px;
    padding: 12px 16px; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--gray, #6b7280);
    cursor: pointer; transition: color .2s, border-color .2s;
}
.acc-tab.active { color: var(--primary, #0aa0a4); border-bottom-color: var(--primary, #0aa0a4); font-weight: 700; }

.acc-panel-body { flex: 1; overflow-y: auto; background: var(--light, #f7f8fa); }
.acc-panel-body [hidden] { display: none !important; }

/* ---- Profiller ---- */
.acc-profiles-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px;
}
.acc-profile-card {
    background: #fff; border: 2px solid var(--border, #e6e9ef); border-radius: 14px; padding: 14px;
    cursor: pointer; display: flex; flex-direction: column; gap: 8px; text-align: left;
    font-family: inherit; transition: all .2s; min-height: 118px;
}
.acc-profile-card:hover { border-color: var(--primary, #0aa0a4); transform: translateY(-2px); box-shadow: var(--shadow, 0 6px 20px rgba(20,30,60,.08)); }
.acc-profile-card.active { border-color: var(--primary, #0aa0a4); background: rgba(10, 160, 164, .06); }
.acc-profile-icon {
    width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.acc-profile-name { font-size: 13px; font-weight: 700; color: var(--dark, #1a2238); line-height: 1.25; }
.acc-profile-desc { font-size: 11px; color: var(--gray, #6b7280); line-height: 1.4; }

/* ---- Araçlar (2 sütunlu grid) ---- */
.acc-tools-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
.acc-tool-row {
    background: #fff; border: 1px solid var(--border, #e6e9ef); border-radius: 12px; padding: 10px;
    display: flex; flex-direction: column; gap: 8px;
}
.acc-tool-top { display: flex; align-items: center; gap: 8px; }
.acc-tool-icon {
    width: 28px; height: 28px; border-radius: 8px; background: rgba(10, 160, 164, .1); color: var(--primary, #0aa0a4);
    display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
}
.acc-tool-label { font-size: 12px; font-weight: 600; color: var(--dark, #1a2238); line-height: 1.2; }
.acc-tool-value { flex: 1; text-align: center; font-size: 11px; color: var(--gray, #6b7280); }
.acc-stepper { display: flex; align-items: center; gap: 4px; }
.acc-stepper-btn {
    width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--border, #e6e9ef); background: #fff;
    color: var(--dark, #1a2238); cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 11px; transition: all .15s; flex-shrink: 0;
}
.acc-stepper-btn:hover:not(:disabled) { background: var(--primary, #0aa0a4); color: #fff; border-color: var(--primary, #0aa0a4); }
.acc-stepper-btn:disabled { opacity: .35; cursor: not-allowed; }
.acc-tool-row.acc-tool-active { border-color: var(--primary, #0aa0a4); background: rgba(10, 160, 164, .05); }
.acc-tool-row.acc-tool-active .acc-tool-icon { background: var(--primary, #0aa0a4); color: #fff; }
.acc-tool-row.acc-tool-active .acc-tool-value { color: var(--primary, #0aa0a4); font-weight: 600; }

@media (max-width: 380px) {
    .acc-tools-list { grid-template-columns: 1fr; }
}

/* ---- Yardımcı panel kapatma katmanı (mobil) ---- */
.acc-scrim {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 2147482999;
    opacity: 0; visibility: hidden; transition: opacity .3s;
}
.acc-scrim.active { opacity: 1; visibility: visible; }

@media (max-width: 480px) {
    .acc-panel { width: 100vw; }
}

/* =================== SAYFA ETKİLERİ (#acc-page-content kapsamında) =================== */
#acc-page-content { transition: filter .25s; }

#acc-page-content.acc-hide-images img { visibility: hidden; }

#acc-page-content.acc-highlight-links a {
    outline: 2px solid var(--primary, #0aa0a4) !important;
    background: rgba(10, 160, 164, .12) !important;
    text-decoration: underline !important;
    border-radius: 3px;
}

#acc-page-content.acc-dyslexia-font,
#acc-page-content.acc-dyslexia-font * {
    font-family: Verdana, Tahoma, 'Comic Sans MS', Arial, sans-serif !important;
    letter-spacing: .03em !important;
    word-spacing: .08em !important;
}

#acc-page-content.acc-stop-animations,
#acc-page-content.acc-stop-animations *,
#acc-page-content.acc-stop-animations *::before,
#acc-page-content.acc-stop-animations *::after {
    animation-play-state: paused !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

#acc-page-content.acc-high-contrast,
#acc-page-content.acc-high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}
#acc-page-content.acc-high-contrast a { color: #ffe000 !important; text-decoration: underline !important; }
#acc-page-content.acc-high-contrast img { filter: grayscale(100%) contrast(120%); }

#acc-page-content.acc-cursor-medium,
#acc-page-content.acc-cursor-medium *,
#acc-page-content.acc-cursor-large,
#acc-page-content.acc-cursor-large * {
    cursor: var(--acc-cursor-url, auto) !important;
}

/* ---- Okuma Kılavuzu ---- */
.acc-reading-guide {
    position: fixed; left: 0; width: 100%; height: 56px; pointer-events: none;
    z-index: 2147482998; background: rgba(245, 195, 67, .22);
    border-top: 2px solid rgba(245, 195, 67, .9); border-bottom: 2px solid rgba(245, 195, 67, .9);
    transition: top .05s linear;
}

/* ---- Okuma Maskesi ---- */
.acc-reading-mask-top, .acc-reading-mask-bottom {
    position: fixed; left: 0; width: 100%; background: rgba(0, 0, 0, .75);
    pointer-events: none; z-index: 2147482998;
}
.acc-reading-mask-top { top: 0; }
.acc-reading-mask-bottom { bottom: 0; }

/* ---- Sanal Klavye ---- */
.acc-keyboard {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483002;
    background: #1a2238; padding: 12px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .3);
    display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.acc-keyboard-row { display: flex; gap: 6px; }
.acc-keyboard-key {
    min-width: 34px; height: 40px; padding: 0 8px; border-radius: 7px; border: none;
    background: #2c3555; color: #fff; font-family: inherit; font-size: 13px; cursor: pointer;
    transition: background .15s;
}
.acc-keyboard-key:hover { background: var(--primary, #0aa0a4); }
.acc-keyboard-key.acc-key-wide { min-width: 90px; }
.acc-keyboard-close {
    position: absolute; top: 10px; right: 14px; background: none; border: none; color: #fff;
    font-size: 18px; cursor: pointer;
}

/* ---- Sayfa Yapısı ---- */
.acc-structure-panel {
    position: fixed; left: 20px; bottom: 90px; width: 320px; max-width: calc(100vw - 40px); max-height: 60vh;
    background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(20, 30, 60, .22);
    z-index: 2147483000; overflow: hidden; display: flex; flex-direction: column;
}
.acc-structure-header {
    background: var(--primary, #0aa0a4); color: #fff; padding: 12px 14px; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: space-between;
}
.acc-structure-header button { background: none; border: none; color: #fff; cursor: pointer; font-size: 16px; }
.acc-structure-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.acc-structure-list li { margin: 0; padding: 0; }
.acc-structure-list button {
    width: 100%; text-align: left; background: none; border: none; padding: 7px 10px; border-radius: 7px;
    font-family: inherit; font-size: 12.5px; color: var(--dark, #1a2238); cursor: pointer;
}
.acc-structure-list button:hover { background: var(--light, #f7f8fa); color: var(--primary, #0aa0a4); }
.acc-structure-empty { padding: 14px; font-size: 12.5px; color: var(--gray, #6b7280); }
