﻿/* --- 1. MENÜ VE BUTON STİLLERİ --- */



/* Erişilebilirlik Butonu (Floating) */
#accessibility-toggle {
    position: fixed;
    right: 0px;
    top: 40%;
    z-index: 10002;
    padding: 15px 20px;
    background-color: #e1ad01; /* Kurumsal sarı/turuncu ton */
    color: white;
    border: none;
    border-radius: 5px 0 0 5px;
    box-shadow: -4px 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: right 0.3s;
}

#accessibility-toggle:hover {
    right: 5px;
    background-color: #d4a000;
}

#accessibility-toggle i {
    font-size: 24px;
}

/* Erişilebilirlik Menüsü (Sidebar) */
.access-sidebar {
    position: fixed;
    top: 20%;
    right: -360px; /* Gizli */
    width: 350px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.2);
    z-index: 10001;
    padding: 20px;
    border-radius: 10px 0 0 10px;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
    max-height: 80vh;
    overflow-y: auto;
    display: block !important;
}

    .access-sidebar.active {
        right: 0 !important;
    }

.access-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

    .access-header h3 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

/* Grid Yapısı (2 Sütunlu Butonlar) */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Menü Başlığındaki Kapatma Butonu */
#btn-close-menu {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #555;
    transition: color 0.2s;
    padding: 5px;
}

#btn-close-menu:hover {
    color: #dc3545; /* Kırmızı hover efekti */
}

/* Menü Butonları */
.access-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    background: #fff; /* Arka plan beyaz */
    /* İSTEĞİNİZ: Varsayılan olarak Sarı Çerçeve */
    border: 1px solid #e1ad01;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 13px;
    color: #555;
    min-height: 80px;
}

.access-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #e1ad01; /* İkon rengi de sarı */
}

/* Hover Durumu */
.access-btn:hover {
    background: #fff3cd; /* Hafif sarı zemin */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(225, 173, 1, 0.2); /* Sarı gölge */
}

/* Aktif (Seçili) Durumu */
.access-btn.active {
    background-color: #e1ad01; /* İçi tamamen sarı */
    color: white; /* Yazı beyaz */
    border-color: #e1ad01;
}

.access-btn.active i {
    color: white; /* İkon beyaz */
}

/* Sıfırlama Butonu (Kırmızı Kalmalı) */
.btn-reset {
    grid-column: 1 / -1;
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545; /* Kırmızı çerçeve */
}

.btn-reset i {
    color: white;
}

.btn-reset:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* --- 2. FONKSİYONEL CSS SINIFLARI (Efektler) --- */

/* Gri Tonlama */
html.acc-grayscale {
    filter: grayscale(100%) !important;
}

/* Yüksek Kontrast (Invert) */
html.acc-high-contrast {
    filter: invert(100%) !important;
}

/* Düşük Doygunluk */
html.acc-low-sat {
    filter: saturate(50%) !important;
}

/* Yüksek Doygunluk */
html.acc-high-sat {
    filter: saturate(200%) !important;
}

/* Solgunlaştırma (Dim) */
html.acc-dim {
    opacity: 0.7 !important;
    background: #eee;
}

/* Büyük Metin */
html.acc-fontsize-1 {
    font-size: 110% !important;
}

html.acc-fontsize-2 {
    font-size: 125% !important;
}

html.acc-fontsize-3 {
    font-size: 150% !important;
}

/* Satır Aralığı */
html.acc-line-height * {
    line-height: 2 !important;
}

/* Metni Hizala (Sola) */
html.acc-text-align-left * {
    text-align: left !important;
}

/* Bağlantı Vurgula */
html.acc-links-highlight a {
    background-color: yellow !important;
    color: black !important;
    border: 2px solid red !important;
    text-decoration: underline !important;
}

/* Büyük İmleç */
html.acc-big-cursor, html.acc-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='black' stroke='white' stroke-width='1'%3E%3Cpath d='M7 2l12 11.2-5.8.5 3.3 7.3-2.2.9-3.2-7.4-4.4 4V2z'/%3E%3C/svg%3E"), auto !important;
}

/* Disleksi Dostu Font */
html.acc-dyslexia * {
    font-family: 'Comic Sans MS', 'Verdana', sans-serif !important;
}

/* Resimleri Gizle */
html.acc-hide-images img,
html.acc-hide-images [style*="background-image"] {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Okuma Kılavuzu (Sarı Çizgi) */
#acc-reading-guide {
    position: fixed;
    left: 0;
    width: 100vw;
    height: 10px;
    background: rgba(255, 255, 0, 0.6);
    border-top: 2px solid red;
    border-bottom: 2px solid red;
    z-index: 2147483647;
    pointer-events: none; /* Tıklamayı engelleme */
    display: none;
    transform: translateY(-50%);
}

/* Okuma Maskesi (Spotlight) */
#acc-reading-mask-top, #acc-reading-mask-bottom {
    position: fixed;
    left: 0;
    width: 100vw;
    background: rgba(0,0,0,0.7);
    z-index: 2147483646;
    pointer-events: none;
    display: none;
}

#acc-reading-mask-top {
    top: 0;
}

#acc-reading-mask-bottom {
    bottom: 0;
}
