/* IEPC Accessibility Suite v2.0 — Reading: TTS bar, captions, reading time CSS */

.a11y-tts-bar {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 999px;
    display: none;
    align-items: center;
    gap: .75rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: a11ySlideUp .2s ease;
}
.a11y-tts-bar.open { display: flex; }
.a11y-tts-btn {
    background: transparent; border: 0; color: #fff; cursor: pointer;
    padding: .3rem .55rem; border-radius: 6px; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.a11y-tts-btn:hover { background: rgba(255, 255, 255, .12); }
.a11y-tts-btn:focus-visible { outline: 2px solid #facc15; outline-offset: 2px; }
.a11y-tts-status { font-size: .85rem; opacity: 0.9; min-width: 100px; }

.a11y-tts-captions {
    position: fixed;
    left: 50%;
    bottom: 5rem;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 8px;
    max-width: 80%;
    font-size: 1.1rem;
    line-height: 1.4;
    z-index: 9998;
    display: none;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.a11y-tts-captions.open { display: block; animation: a11yFadeIn .2s ease; }
.a11y-tts-captions-text { display: inline-block; }

.a11y-reading-time {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    z-index: 9997;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}
.a11y-reading-time i { margin-right: .25rem; }
body.a11y-skin-dark .a11y-reading-time { background: rgba(30, 41, 59, 0.9); color: #cbd5e1; }
body.a11y-skin-sepia .a11y-reading-time { background: rgba(245, 233, 200, 0.9); color: #3d2914; }
@media print { .a11y-reading-time, .a11y-tts-bar, .a11y-tts-captions { display: none !important; } }
