/* Batuhan ALGUL - anatoliasapiens.net */

.accessibility-toggle {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 9000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 3px solid var(--white);
}

.accessibility-toggle:hover {
    background: var(--primary-light);
    transform: scale(1.08);
}

.accessibility-toggle .material-icons-round {
    font-size: 26px;
}

.accessibility-panel {
    position: fixed;
    bottom: 96px;
    left: 32px;
    z-index: 8999;
    width: 300px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    transform: translateY(16px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.accessibility-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.accessibility-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--primary);
    color: var(--white);
}

.accessibility-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
}

.accessibility-header button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    transition: var(--transition);
}

.accessibility-header button:hover {
    background: rgba(255,255,255,0.25);
}

.accessibility-header button .material-icons-round {
    font-size: 18px;
}

.accessibility-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acc-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.acc-section label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.acc-controls {
    display: flex;
    gap: 6px;
}

.acc-controls button {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--border);
    transition: var(--transition);
    min-width: 32px;
}

.acc-controls button:hover,
.acc-controls button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.acc-reset {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    margin-top: 4px;
    transition: var(--transition);
}

.acc-reset:hover {
    background: var(--gray-100);
    color: var(--text);
}

.reading-guide {
    position: fixed;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(200,146,42,0.15);
    border-top: 2px solid rgba(200,146,42,0.5);
    border-bottom: 2px solid rgba(200,146,42,0.5);
    pointer-events: none;
    z-index: 7000;
    transition: top 0.05s linear;
}

body.high-contrast {
    filter: contrast(1.5) saturate(0.8);
}

body.highlight-links a {
    background: rgba(200,146,42,0.2) !important;
    outline: 2px solid var(--accent) !important;
    border-radius: 2px;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

@media (max-width: 768px) {
    .accessibility-toggle {
        bottom: 24px;
        left: 20px;
        width: 46px;
        height: 46px;
    }

    .accessibility-panel {
        left: 16px;
        right: 16px;
        width: auto;
        bottom: 82px;
    }
}
