/* LandingPRO Accessibility Plugin Styles */
.a11y-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    direction: rtl;
    text-align: right;
}

.a11y-trigger-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #0f172a;
    color: #38bdf8;
    border: 2px solid #38bdf8;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.a11y-trigger-btn:hover {
    transform: scale(1.08);
    background-color: #1e293b;
}

.a11y-tooltip {
    display: none;
}

.a11y-panel {
    display: none;
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    color: #0f172a;
}

.a11y-panel.open {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.a11y-panel-header {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a11y-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}

.a11y-panel-body {
    padding: 14px;
    max-height: 480px;
    overflow-y: auto;
}

.a11y-section {
    margin-bottom: 14px;
}

.a11y-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

.a11y-btn-group {
    display: flex;
    gap: 6px;
}

.a11y-btn {
    flex: 1;
    padding: 6px 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.a11y-btn:hover {
    background: #e2e8f0;
}

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

.a11y-tile {
    padding: 8px 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.a11y-tile:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.a11y-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.a11y-btn-reset, .a11y-btn-statement {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.a11y-btn-reset {
    background: #fef2f2;
    color: #dc2626;
}

.a11y-btn-statement {
    background: #f0fdf4;
    color: #16a34a;
}

/* Reading guide line */
.a11y-reading-guide-line {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    height: 4px;
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
    pointer-events: none;
    z-index: 99998;
}

/* Modal */
.a11y-statement-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.a11y-statement-modal.open {
    display: flex;
}

.a11y-modal-content {
    background: #ffffff;
    max-width: 520px;
    width: 100%;
    padding: 24px;
    border-radius: 16px;
    position: relative;
}

.a11y-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

/* Global A11y Modifier Classes */
body.a11y-font-sm * { font-size: 90% !important; }
body.a11y-font-lg * { font-size: 110% !important; }
body.a11y-font-xl * { font-size: 125% !important; }
body.a11y-font-2xl * { font-size: 140% !important; }

body.a11y-contrast-high {
    background: #000000 !important;
    color: #ffff00 !important;
}
body.a11y-contrast-high * {
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.a11y-contrast-inverted {
    filter: invert(100%) hue-rotate(180deg) !important;
}

body.a11y-contrast-gray {
    filter: grayscale(100%) !important;
}

body.a11y-highlight-links a {
    text-decoration: underline !important;
    background-color: #fef08a !important;
    color: #000000 !important;
}

body.a11y-stop-anim * {
    animation: none !important;
    transition: none !important;
}

body.a11y-big-cursor, body.a11y-big-cursor * {
    cursor: crosshair !important;
}
