/**
 * Accessibility Styles
 * Erişilebilirlik için gerekli stiller
 */

/* Screen reader only text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip to content link */
.skip-link {
    background: #006233;
    color: #ffffff;
    display: block;
    font-size: 14px;
    font-weight: 600;
    left: -9999px;
    outline: none;
    padding: 15px 23px;
    position: absolute;
    text-decoration: none;
    top: -9999px;
    z-index: 999999;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.skip-link:focus {
    clip: auto !important;
    height: auto;
    left: 6px;
    top: 0;
    width: auto;
    z-index: 999999;
}

/* Focus styles for better visibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #006233;
    outline-offset: 2px;
}

/* Ensure interactive elements are large enough */
button,
a.button,
.btn,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .skip-link:focus {
        outline: 3px solid currentColor;
        outline-offset: 0;
    }
    
    button:focus,
    a:focus {
        outline: 3px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Dark mode adjustments can be added here if needed */
}

/* Keyboard navigation indicators */
.keyboard-nav *:focus {
    outline: 2px solid #006233 !important;
    outline-offset: 2px !important;
}

/* Remove outline for mouse users */
.mouse-nav *:focus {
    outline: none !important;
}

/* ARIA-hidden elements should not be focusable */
[aria-hidden="true"] {
    pointer-events: none;
}

/* Ensure sufficient color contrast */
.vt-topbar {
    color: #333333;
}

.vt-topbar a {
    color: #006233;
    text-decoration: underline;
}

.vt-topbar a:hover,
.vt-topbar a:focus {
    color: #004422;
    text-decoration: none;
}