/* Erişilebilirlik Genel Sınıfları */
:root {
    --a11y-font-scale: 1;
}

/* Yüksek Karşıtlık Modu */
.a11y-high-contrast {
    background-color: #000 !important;
    color: #ffff00 !important;
}

.a11y-high-contrast *:not(.a11y-ignore) {
    background-color: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
}

.a11y-high-contrast a {
    text-decoration: underline !important;
    color: #00ffff !important;
}

/* Font Ölçekleme */
.a11y-font-size-1 { font-size: 1.1rem !important; }
.a11y-font-size-2 { font-size: 1.25rem !important; }
.a11y-font-size-3 { font-size: 1.4rem !important; }

/* Okunabilir Font */
.a11y-readable-font {
    font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
}

/* Link Vurgulama */
.a11y-highlight-links a {
    background-color: #ffff00 !important;
    color: #000 !important;
    font-weight: bold !important;
    outline: 2px solid #000 !important;
}

/* Büyük İmleç */
.a11y-large-cursor {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M0 0l32 32-8 4 16 16-8 8-16-16-4 8z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E"), auto !important;
}

.a11y-large-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M0 0l32 32-8 4 16 16-8 8-16-16-4 8z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E"), auto !important;
}

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

/* Floating Widget Styles */
.a11y-widget-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: #1F3A60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid white;
    transition: transform 0.2s;
}

.a11y-widget-btn:active {
    cursor: grabbing;
}

.a11y-widget-btn i {
    font-size: 28px;
    pointer-events: none;
}

.a11y-panel {
    position: fixed;
    right: -350px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    color: #333;
}

.a11y-panel.open {
    right: 0;
}

.a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.a11y-panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1F3A60;
}

.a11y-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.a11y-control-group {
    margin-bottom: 25px;
}

.a11y-control-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.a11y-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.a11y-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.a11y-btn:hover {
    background: #e9ecef;
    border-color: #1F3A60;
}

.a11y-btn.active {
    background: #1F3A60;
    color: white;
    border-color: #1F3A60;
}

.a11y-btn i {
    font-size: 1.2rem;
}
