/**
 * Accessibility Features CSS
 * Provides accessibility enhancements for WPA components
 */

/* Focus States */
.wpa-focusable:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.25);
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .wpa-card {
        border: 2px solid currentColor;
    }
    
    .wpa-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen Reader Only Content */
.wpa-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip Links */
.wpa-skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
}

.wpa-skip-link:focus {
    top: 6px;
}

/* Font Size Support */
.wpa-large-text {
    font-size: 1.125em;
    line-height: 1.5;
}

/* Color Blind Friendly */
.wpa-colorblind-friendly {
    --success-color: #008000;
    --warning-color: #ff8c00;
    --error-color: #dc3545;
    --info-color: #0066cc;
}

/* Keyboard Navigation */
.wpa-keyboard-nav .wpa-focusable {
    position: relative;
}

.wpa-keyboard-nav .wpa-focusable:focus::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #0073aa;
    border-radius: 4px;
}

/* ARIA Live Regions */
.wpa-live-region[aria-live="polite"] {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Touch Target Size */
.wpa-touch-target {
    min-height: 44px;
    min-width: 44px;
    padding: 8px;
}

/* Error States */
.wpa-error[aria-invalid="true"] {
    border-color: #dc3545;
}

.wpa-error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 4px;
}