/* HID Accessibility Fixer - Frontend Styles */
/* These styles support WCAG 2.1 AA compliance */

/* Accessibility Toolbar */
.hid-af-toolbar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999998;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hid-af-toolbar-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FF6602;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.hid-af-toolbar-toggle:hover {
    background: #e55a00;
    transform: scale(1.05);
}

.hid-af-toolbar-toggle:focus-visible {
    outline: 3px solid #FF6602;
    outline-offset: 3px;
}

.hid-af-toolbar-toggle svg {
    width: 24px;
    height: 24px;
}

.hid-af-toolbar-panel {
    position: absolute;
    bottom: 56px;
    left: 0;
    background: #1E2125;
    border: 2px solid #1C1C1C;
    border-radius: 10px;
    padding: 16px;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hid-af-toolbar-title {
    color: #FF6602;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #30353B;
}

.hid-af-tb-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #30353B;
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
    font-family: 'Open Sans', sans-serif;
}

.hid-af-tb-btn:last-child {
    margin-bottom: 0;
}

.hid-af-tb-btn:hover {
    border-color: #FF6602;
}

.hid-af-tb-btn:focus-visible {
    outline: 3px solid #FF6602;
    outline-offset: 1px;
}

.hid-af-tb-btn.active {
    background: #FF6602;
    color: #ffffff;
}

/* High Contrast Mode */
body.hid-af-high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.hid-af-high-contrast * {
    border-color: #fff !important;
}

body.hid-af-high-contrast a {
    color: #ffff00 !important;
}

body.hid-af-high-contrast img {
    filter: contrast(1.2);
}

/* Letter Spacing Mode */
body.hid-af-letter-spacing * {
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}

/* Highlight Links Mode */
body.hid-af-highlight-links a {
    outline: 2px solid #FF6602 !important;
    outline-offset: 2px !important;
    background-color: rgba(255, 102, 2, 0.1) !important;
}

/* Images needing alt text - admin indicator */
[data-hid-af-needs-alt="true"] {
    outline: 3px dashed #ef4444;
    outline-offset: 2px;
}

/* Ensure proper focus styles aren't removed */
.hid-af-skip-link {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
}

.hid-af-skip-link:focus {
    clip: auto;
    clip-path: none;
}

/* Print styles - remove toolbar */
@media print {
    .hid-af-toolbar {
        display: none !important;
    }
}
