
.animated-element {
    width: 50px;
    height: 50px;
    background: #667eea;
    position: absolute;
    top: 25px;
    animation: slideAnimation 3s infinite;
}

@keyframes slideAnimation {
    0% { left: -50px; }
    100% { left: calc(100% + 50px); }
}

/* Erişilebilirlik Widget Stilleri */
#accessibility-widget-trigger {
    position: fixed;
    right: 32px;
    bottom: 90px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 999999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#accessibility-widget-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

#accessibility-widget-trigger svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.accessibility-panel {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 350px;
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 999998;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.accessibility-panel.active {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.accessibility-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-header h2 {
    color:#fff;
    margin: 0;
    font-size: 18px;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.accessibility-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.feature-section {
    margin-bottom: 25px;
}

.feature-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.feature-button {
    padding: 12px;
    background: #326aa2;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.feature-button:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.feature-button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.feature-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.feature-slider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.feature-slider label {
    flex: 0 0 120px;
    font-size: 14px;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.toggle-switch label {
    font-size: 14px;
}

.switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: #667eea;
}

input:checked + .switch-slider:before {
    transform: translateX(24px);
}

.reset-button {
    width: 100%;
    padding: 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
}

.reset-button:hover {
    background: #c82333;
}

/* Screen Reader Popup */
.screen-reader-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 999999;
    display: none;
    max-width: 500px;
}

.screen-reader-popup.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Tooltip Styles */
.accessibility-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 999997;
    pointer-events: none;
    white-space: nowrap;
    max-width: 300px;
}

/* Dictionary Popup */
.dictionary-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 999999;
    max-width: 500px;
    display: none;
}

.dictionary-popup.active {
    display: block;
}

.dictionary-popup h3 {
    margin: 0 0 10px 0;
    color: #667eea;
}

.dictionary-popup p {
    margin: 10px 0;
}

.dictionary-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Page Structure Overlay */
.page-structure-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999996;
    display: none;
    overflow-y: auto;
    padding: 50px;
}

.page-structure-overlay.active {
    display: block;
}

.page-structure-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.page-structure-content h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.structure-item {
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    cursor: pointer;
    transition: all 0.2s;
}

.structure-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* Accessibility Classes - Applied to body or elements */
body.high-contrast {
    filter: contrast(150%);
}

body.low-saturation {
    filter: saturate(50%);
}

body.high-saturation {
    filter: saturate(150%);
}

body.desaturate {
    filter: grayscale(100%);
}

body.hide-images img {
    opacity: 0 !important;
}

body.highlight-links a {
    background: yellow !important;
    color: black !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
}

body.bigger-text {
    font-size: 120% !important;
}

body.bigger-text-2 {
    font-size: 140% !important;
}

body.bigger-text-3 {
    font-size: 160% !important;
}

body.bigger-text-4 {
    font-size: 180% !important;
}

body.dyslexia-font * {
    font-family: "Comic Sans MS", "OpenDyslexic", Arial, sans-serif !important;
    letter-spacing: 0.1em !important;
    word-spacing: 0.2em !important;
}

body.readable-font * {
    font-family: Verdana, Geneva, Tahoma, sans-serif !important;
}

body.big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="14" fill="black"/></svg>'), auto !important;
}

body.reading-mask::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 999995;
}

body.text-align-left * {
    text-align: left !important;
}

body.text-align-center * {
    text-align: center !important;
}

body.text-align-right * {
    text-align: right !important;
}

body.text-align-justify * {
    text-align: justify !important;
}

body.line-height-1 * {
    line-height: 1.8 !important;
}

body.line-height-2 * {
    line-height: 2.2 !important;
}

body.line-height-3 * {
    line-height: 2.6 !important;
}

body.text-spacing-1 * {
    letter-spacing: 0.05em !important;
}

body.text-spacing-2 * {
    letter-spacing: 0.1em !important;
}

body.text-spacing-3 * {
    letter-spacing: 0.15em !important;
}

body.pause-animations * {
    animation-play-state: paused !important;
    transition: none !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .accessibility-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }

    #accessibility-widget-trigger {right: 10px;bottom: 140px;}
    
}