/* --- 1. BUTON VE PANEL TASARIMI (SOL ALT KÖŞE) --- */

#access-btn {
    position: fixed;
    bottom: 20px;
    left: 20px; /* SAĞDAN SOLA ALINDI */
    right: auto; /* Sağ tarafı sıfırla */

    width: 40px;
    height: 40px;
    background: #005aab;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 2147483647;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

    #access-btn:hover {
        transform: scale(1.1);
    }

#access-panel {
    display: none;
    position: fixed;
    bottom: 90px;
    left: 20px; /* SAĞDAN SOLA ALINDI */
    right: auto; /* Sağ tarafı sıfırla */

    width: 320px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0,0,0,0.2);
    z-index: 2147483646;
    padding: 20px;
    font-family: sans-serif;
    border: 1px solid #ddd;
}

.access-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

    .access-header h3 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

#close-panel {
    cursor: pointer;
    font-size: 20px;
    color: #555;
}

.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.access-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .access-item:hover {
        background: #e2e6ea;
    }

    .access-item i {
        font-size: 24px;
        margin-bottom: 8px;
        color: #555;
    }

    .access-item span {
        font-size: 12px;
        font-weight: 600;
        color: #333;
    }

    /* Aktif Durum */
    .access-item.active {
        background: #005aab;
        border-color: #005aab;
    }

        .access-item.active i, .access-item.active span {
            color: #fff;
        }

/* Okuma Kılavuzu Çizgisi */
#reading-guide-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 0, 0.3);
    border-top: 2px solid #f00;
    border-bottom: 2px solid #f00;
    pointer-events: none;
    z-index: 2147483647;
    display: none;
}

/* --- 2. FONKSİYONEL SINIFLAR --- */

/* Bağlantı Vurgula */
body.acc-highlight-links a {
    background: yellow !important;
    color: black !important;
    border: 2px solid red !important;
    text-decoration: underline !important;
}

/* Resimleri Gizle */
body.acc-hide-images img {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Büyük Metin */
/* Başlıklar (H1-H6) hariç, sadece içerik metinleri büyür */

body.acc-big-text p,
body.acc-big-text a,
body.acc-big-text li,
body.acc-big-text span,
body.acc-big-text label,
body.acc-big-text button,
body.acc-big-text input,
body.acc-big-text select,
body.acc-big-text textarea,
body.acc-big-text td, 
body.acc-big-text th,
body.acc-big-text blockquote,
body.acc-big-text figcaption {
    font-size: 110% !important; /* %120 yerine %110 yaptık */
    line-height: 1.5 !important; /* Satır aralarını hafif açtık */
}

/* İkonları da aynı oranda büyütelim */
body.acc-big-text i, 
body.acc-big-text .bi {
    font-size: 110% !important;
}

/* İkonları (FontAwesome) */
body.acc-big-text i,
body.acc-big-text .fa {
    font-size: 110% !important;
}

/* Sola Hizala */
body.acc-align-left * {
    text-align: left !important;
}

/* Büyük İmleç */
body.acc-big-cursor, body.acc-big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewport="0 0 48 48" style="fill:black;stroke:white;stroke-width:2px;"><path d="M10 10l15 35 5-15 15-5z"/></svg>'), auto !important;
}

/* Kontrast Modu */
body.acc-contrast {
    filter: invert(100%);
    background: #000;
}

    body.acc-contrast img {
        filter: invert(100%);
    }

/* Gri Tonlama */
body.acc-grayscale {
    filter: grayscale(100%);
}

/* --- DİSLEKSİ DOSTU FONT (BOOTSTRAP ICON UYUMLU) --- */

/* ADIM 1: Sayfadaki her şeyi zorla Comic Sans yap */
body.acc-dyslexia-font,
body.acc-dyslexia-font * {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', sans-serif !important;
    line-height: 1.6 !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.1em !important;
}

    /* ADIM 2: Bootstrap İkonlarını (bi-) Koru ve Geri Yükle */
    /* İkonlar Comic Sans olursa kare kare görünür, bunu engelliyoruz */
    body.acc-dyslexia-font .bi,
    body.acc-dyslexia-font .bi::before,
    body.acc-dyslexia-font .bi::after {
        font-family: "bootstrap-icons" !important;
        font-weight: normal !important;
        font-style: normal !important;
        text-transform: none !important;
        line-height: 1 !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
        font-variant: normal !important;
        /* İkonun bozulmaması için tüm font ayarlarını sıfırladık */
    }

/* Hover Okuma Modu Aktifken Üzerine Gelinen Öğe */
.acc-reading-hover {
    background-color: #fff3cd !important; /* Açık sarı zemin */
    outline: 2px solid #ffc107 !important; /* Turuncu çerçeve */
    cursor: help !important;
}
