﻿/* =========================================================
   ALKÜ ERİŞİLEBİLİRLİK MENÜSÜ
   Alanya Alaaddin Keykubat Üniversitesi
   ========================================================= */

:root {
    --alku-turquoise: #00AECD;
    --alku-navy: #1C407D;
    --alku-gold: #D1AD53;
    --alku-white: #ffffff;
    --alku-black: #000000;
    --alku-light-bg: #f7f9fc;
    --alku-light-border: #e2e7ef;
    --alku-text: #252525;
    --alku-muted: #666666;
}


/* =========================================================
   WIDGET BUTONU
   ========================================================= */

.alku-accessibility-widget-button {
    position: fixed;
    right: 20px;
    bottom: 150px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--alku-turquoise);
    color: var(--alku-white);
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(0, 174, 205, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}


    .alku-accessibility-widget-button:hover {
        transform: scale(1.08);
        background: var(--alku-navy);
        box-shadow: 0 6px 18px rgba(28, 64, 125, 0.4);
    }


    .alku-accessibility-widget-button:focus-visible {
        outline: 4px solid var(--alku-gold);
        outline-offset: 3px;
    }


    .alku-accessibility-widget-button svg {
        width: 30px;
        height: 30px;
    }


/* =========================================================
   OVERLAY
   ========================================================= */

.alku-accessibility-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 9998;
    display: none;
}


    .alku-accessibility-overlay.alku-visible {
        display: block;
    }


/* =========================================================
   PANEL
   ========================================================= */

.alku-accessibility-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--alku-white);
    box-shadow: -5px 0 24px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    overflow-y: auto;
    transition: right 0.3s ease;
}


    .alku-accessibility-panel.alku-open {
        right: 0;
    }


/* =========================================================
   PANEL HEADER
   ========================================================= */

.alku-accessibility-panel-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--alku-navy);
    color: var(--alku-white);
    border-bottom: 4px solid var(--alku-turquoise);
}


    .alku-accessibility-panel-header h3 {
        margin: 0;
        color: var(--alku-white);
        font-size: 20px;
        font-weight: 700;
        line-height: 1.3;
    }


.alku-accessibility-panel-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--alku-white);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}


    .alku-accessibility-panel-close:hover {
        background: rgba(255, 255, 255, 0.15);
    }


    .alku-accessibility-panel-close:focus-visible {
        outline: 3px solid var(--alku-gold);
        outline-offset: 2px;
    }


/* =========================================================
   PANEL CONTENT
   ========================================================= */

.alku-accessibility-panel-content {
    padding: 20px;
    background: var(--alku-white);
}


/* =========================================================
   OPTIONS
   ========================================================= */

.alku-accessibility-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 14px 0;
    padding: 17px;
    border: 2px solid var(--alku-light-border);
    border-radius: 12px;
    background: var(--alku-light-bg);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}


    .alku-accessibility-option:hover {
        border-color: var(--alku-turquoise);
        background: #f0fbfd;
        transform: translateX(-3px);
    }


    .alku-accessibility-option:focus-visible {
        outline: 3px solid var(--alku-gold);
        outline-offset: 2px;
    }


    .alku-accessibility-option.alku-active {
        border-color: var(--alku-turquoise);
        background: rgba(0, 174, 205, 0.09);
    }


.alku-accessibility-option-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    color: var(--alku-navy);
}


.alku-accessibility-option-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}


.alku-accessibility-option-title {
    display: block;
    margin-bottom: 4px;
    color: var(--alku-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}


.alku-accessibility-option-desc {
    display: block;
    color: var(--alku-muted);
    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   TOGGLE
   ========================================================= */

.alku-accessibility-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 20px;
    background: #c7ccd3;
    transition: background 0.25s ease;
}


    .alku-accessibility-toggle::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--alku-white);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
        transition: left 0.25s ease;
    }


.alku-accessibility-option.alku-active
.alku-accessibility-toggle {
    background: var(--alku-turquoise);
}


    .alku-accessibility-option.alku-active
    .alku-accessibility-toggle::after {
        left: 26px;
    }


/* =========================================================
   BÖLÜM BAŞLIĞI
   ========================================================= */

.alku-accessibility-section-title {
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--alku-light-border);
    color: var(--alku-navy);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* =========================================================
   RESET
   ========================================================= */

.alku-accessibility-reset {
    width: 100%;
    margin-top: 18px;
    padding: 13px 20px;
    border: none;
    border-radius: 8px;
    background: var(--alku-navy);
    color: var(--alku-white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}


    .alku-accessibility-reset:hover {
        background: #132f61;
        transform: translateY(-1px);
    }


    .alku-accessibility-reset:focus-visible {
        outline: 3px solid var(--alku-gold);
        outline-offset: 2px;
    }


/* =========================================================
   1 - YÜKSEK KONTRAST
   ========================================================= */

body.alku-high-contrast {
    background: #000 !important;
    color: #fff !important;
}


    body.alku-high-contrast main,
    body.alku-high-contrast article,
    body.alku-high-contrast section,
    body.alku-high-contrast .container,
    body.alku-high-contrast .container-fluid {
        background-color: #000 !important;
        color: #fff !important;
    }


    body.alku-high-contrast header,
    body.alku-high-contrast nav,
    body.alku-high-contrast footer {
        background-color: #111 !important;
        color: #fff !important;
    }


    body.alku-high-contrast h1,
    body.alku-high-contrast h2,
    body.alku-high-contrast h3,
    body.alku-high-contrast h4,
    body.alku-high-contrast h5,
    body.alku-high-contrast h6,
    body.alku-high-contrast p,
    body.alku-high-contrast li,
    body.alku-high-contrast td,
    body.alku-high-contrast th,
    body.alku-high-contrast label {
        color: #fff !important;
    }


    body.alku-high-contrast a {
        color: #ffff00 !important;
        text-decoration: underline !important;
    }


    body.alku-high-contrast input,
    body.alku-high-contrast textarea,
    body.alku-high-contrast select {
        background: #111 !important;
        color: #fff !important;
        border-color: #fff !important;
    }


    /* Widget kontrast modundan kontrollü etkilensin */

    body.alku-high-contrast
    .alku-accessibility-panel {
        background: #111 !important;
    }


    body.alku-high-contrast
    .alku-accessibility-panel-content {
        background: #111 !important;
    }


    body.alku-high-contrast
    .alku-accessibility-panel-header {
        background: var(--alku-navy) !important;
    }


    body.alku-high-contrast
    .alku-accessibility-option {
        background: #202020 !important;
        border-color: #888 !important;
    }


    body.alku-high-contrast
    .alku-accessibility-option-title,
    body.alku-high-contrast
    .alku-accessibility-option-desc {
        color: #fff !important;
    }


    body.alku-high-contrast
    .alku-accessibility-section-title {
        color: #ffff00 !important;
        border-color: #777 !important;
    }


/* =========================================================
   2 - BÜYÜK METİN
   ========================================================= */

body.alku-large-text p,
body.alku-large-text li,
body.alku-large-text td,
body.alku-large-text th,
body.alku-large-text label,
body.alku-large-text blockquote,
body.alku-large-text figcaption {
    font-size: 110% !important;
    line-height: 1.55 !important;
}


body.alku-large-text h1,
body.alku-large-text h2,
body.alku-large-text h3,
body.alku-large-text h4,
body.alku-large-text h5,
body.alku-large-text h6 {
    font-size: 110% !important;
    line-height: 1.35 !important;
}


/* Widget büyümesin */

body.alku-large-text
.alku-accessibility-panel,
body.alku-large-text
.alku-accessibility-panel * {
    font-size: revert;
}


body.alku-large-text
.alku-accessibility-option-title {
    font-size: 16px !important;
}


body.alku-large-text
.alku-accessibility-option-desc {
    font-size: 13px !important;
}


/* =========================================================
   3 - METİN BOŞLUĞU
   ========================================================= */

body.alku-text-spacing
main p,
body.alku-text-spacing
main li,
body.alku-text-spacing
main span,
body.alku-text-spacing
article p,
body.alku-text-spacing
article li,
body.alku-text-spacing
article span {
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}


/* =========================================================
   4 - BAĞLANTILARI VURGULA
   ========================================================= */

body.alku-highlight-links
a:not(.alku-accessibility-widget-button) {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    outline: 2px solid currentColor !important;
    outline-offset: 2px;
}


/* =========================================================
   5 - GÖRSELLERİ GRİ YAP
   ========================================================= */

body.alku-grayscale-images
img {
    filter: grayscale(100%) !important;
    opacity: 0.65 !important;
}


/* Widget SVG etkilenmesin */

body.alku-grayscale-images
.alku-accessibility-widget-button svg {
    filter: none !important;
    opacity: 1 !important;
}


/* =========================================================
   6 - SATIR YÜKSEKLİĞİ
   ========================================================= */

body.alku-line-height
p,
body.alku-line-height
li,
body.alku-line-height
blockquote,
body.alku-line-height
figcaption,
body.alku-line-height
td,
body.alku-line-height
th {
    line-height: 2 !important;
}


/* =========================================================
   7 - SOLA HİZALA
   ========================================================= */

body.alku-left-align
main p,
body.alku-left-align
main h1,
body.alku-left-align
main h2,
body.alku-left-align
main h3,
body.alku-left-align
main h4,
body.alku-left-align
main h5,
body.alku-left-align
main h6,
body.alku-left-align
main li,
body.alku-left-align
article {
    text-align: left !important;
}


/* =========================================================
   8 - BÜYÜK İMLEÇ
   ========================================================= */

body.alku-large-cursor,
body.alku-large-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M4 3 L4 34 L13 25 L19 37 L24 34 L18 23 L34 23 Z" fill="black" stroke="white" stroke-width="2"/></svg>') 3 3, auto !important;
}


/* =========================================================
   9 - ANİMASYONLARI DURDUR
   ========================================================= */

body.alku-stop-animations
*:not(.alku-accessibility-panel):not(.alku-accessibility-panel *) {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
}


/* =========================================================
   10 - DOYGUNLUĞU AZALT
   ========================================================= */

body.alku-low-saturation
main,
body.alku-low-saturation
header,
body.alku-low-saturation
footer {
    filter: saturate(0.45);
}


/* Widget renkleri etkilenmesin */

body.alku-low-saturation
.alku-accessibility-panel,
body.alku-low-saturation
.alku-accessibility-widget-button {
    filter: none !important;
}


/* =========================================================
   11 - SESLİ OKUMA
   ========================================================= */

body.alku-text-to-speech
p,
body.alku-text-to-speech
h1,
body.alku-text-to-speech
h2,
body.alku-text-to-speech
h3,
body.alku-text-to-speech
h4,
body.alku-text-to-speech
h5,
body.alku-text-to-speech
h6,
body.alku-text-to-speech
li,
body.alku-text-to-speech
td,
body.alku-text-to-speech
th,
body.alku-text-to-speech
blockquote,
body.alku-text-to-speech
figcaption,
body.alku-text-to-speech
label {
    cursor: pointer !important;
}


    body.alku-text-to-speech
    p:hover,
    body.alku-text-to-speech
    h1:hover,
    body.alku-text-to-speech
    h2:hover,
    body.alku-text-to-speech
    h3:hover,
    body.alku-text-to-speech
    li:hover,
    body.alku-text-to-speech
    blockquote:hover {
        outline: 2px dashed var(--alku-turquoise) !important;
        outline-offset: 3px;
    }


.alku-tts-highlight {
    background: #fff2a8 !important;
    color: #000 !important;
    outline: 3px solid var(--alku-gold) !important;
    outline-offset: 3px;
}


/* TTS Bar */

.alku-tts-control-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9997;
    background: var(--alku-navy);
    color: var(--alku-white);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    animation: alku-tts-slide-up 0.25s ease;
}


@keyframes alku-tts-slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}


.alku-tts-control-bar-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}


.alku-tts-label {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}


.alku-tts-buttons {
    display: flex;
    gap: 8px;
}


    .alku-tts-buttons button {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
        cursor: pointer;
    }


        .alku-tts-buttons button:hover {
            background: rgba(255, 255, 255, 0.28);
        }


.alku-tts-status {
    flex: 1;
    color: #fff;
    font-size: 13px;
    text-align: right;
}


/* =========================================================
   12 - OKUMA KILAVUZU
   ========================================================= */

.alku-reading-guide-line {
    position: fixed;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 9990;
    pointer-events: none;
    background: rgba(209, 173, 83, 0.13);
    border-top: 2px solid rgba(0, 174, 205, 0.75);
    border-bottom: 2px solid rgba(0, 174, 205, 0.75);
    transition: top 0.05s linear;
}


/* =========================================================
   13 - KOLAY OKUNUR FONT
   ========================================================= */

body.alku-easy-read-font {
    font-family: 'Atkinson Hyperlegible', Arial, sans-serif !important;
}


    body.alku-easy-read-font
    *:not(i):not(.fa):not(.fas):not(.far):not(.fab) {
        font-family: 'Atkinson Hyperlegible', Arial, sans-serif !important;
    }


/* =========================================================
   14 - ODAK MODU
   ========================================================= */

body.alku-focus-mode
header,
body.alku-focus-mode
nav,
body.alku-focus-mode
footer,
body.alku-focus-mode
.navbar,
body.alku-focus-mode
.main-menu,
body.alku-focus-mode
.top-menu,
body.alku-focus-mode
.social-media,
body.alku-focus-mode
.alku-accessibility-widget-button {
    opacity: 0.18 !important;
    transition: opacity 0.25s ease;
}


    body.alku-focus-mode
    header:hover,
    body.alku-focus-mode
    nav:hover,
    body.alku-focus-mode
    footer:hover,
    body.alku-focus-mode
    .navbar:hover,
    body.alku-focus-mode
    .main-menu:hover,
    body.alku-focus-mode
    .top-menu:hover,
    body.alku-focus-mode
    .social-media:hover,
    body.alku-focus-mode
    .alku-accessibility-widget-button:hover {
        opacity: 1 !important;
    }


/* =========================================================
   BİLDİRİM
   ========================================================= */

.alku-accessibility-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 10002;
    padding: 12px 22px;
    transform: translateX(-50%);
    border-radius: 8px;
    background: var(--alku-navy);
    color: var(--alku-white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.25s ease;
}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 768px) {

    .alku-accessibility-panel {
        width: 100%;
        right: -100%;
    }


        .alku-accessibility-panel.alku-open {
            right: 0;
        }


    .alku-accessibility-widget-button {
        right: 15px;
        bottom: 100px;
        width: 52px;
        height: 52px;
    }


        .alku-accessibility-widget-button svg {
            width: 26px;
            height: 26px;
        }


    .alku-tts-control-bar-inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 15px;
    }


    .alku-tts-status {
        width: 100%;
        text-align: center;
    }
}


/* Kullanıcı işletim sistemi üzerinden hareket azaltmayı seçmişse */

@media (prefers-reduced-motion: reduce) {

    .alku-accessibility-panel,
    .alku-accessibility-option,
    .alku-accessibility-widget-button {
        transition: none;
    }
}
