/* ========================================
   Accessibility Styles
======================================== */

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus Indicators */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
.menu-btn:focus-visible,
.ui-btn:focus-visible,
.menu-item:focus-visible,
.gallery-tab:focus-visible,
.choice-btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.3);
}

input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 0;
}

/* Settings Section */
.settings-section {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.settings-section-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

/* Settings Select */
.settings-select {
    flex: 1;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.settings-select:hover {
    border-color: var(--primary-color);
}

.settings-select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

/* Settings Checkbox */
.settings-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.settings-label:has(.settings-checkbox) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* High Contrast Mode */
body.high-contrast {
    --bg-dark: #000000;
    --bg-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-window-bg: rgba(0, 0, 0, 0.98);
}

body.high-contrast .text-window {
    border: 2px solid white;
}

body.high-contrast .menu-btn,
body.high-contrast .ui-btn,
body.high-contrast .modal-content {
    border-width: 2px;
}

body.high-contrast .speaker-name {
    color: #ffff00;
}

/* Reduced Motion Mode */
body.reduced-motion,
body.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

body.reduced-motion .particles {
    display: none;
}

body.reduced-motion .btn-glow {
    display: none;
}

/* System Preference for Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particles {
        display: none;
    }
}

/* Font Size - using CSS Variables */
:root {
    --base-font-size: 16px;
}

.text-content {
    font-size: var(--base-font-size);
}

.backlog-text {
    font-size: var(--base-font-size);
}

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

/* Active state for toggle buttons */
.ui-btn[aria-pressed="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}