/* Arkham Knight Command Console - Styles */

/*
 * For customization guide and color reference,
 * see TEMPLATES.md in this project folder.
 */

* { box-sizing: border-box; }

html, body {
    background-color: #0a0a0f;
    color-scheme: dark;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #e5e7eb;
}

.font-orbitron { font-family: 'Orbitron', monospace; }

/* Scrollbar Styles */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #fbbf24; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #f59e0b; }

/* Glow Effects */
.glow-amber { box-shadow: 0 0 20px rgba(251, 191, 36, 0.3), 0 0 40px rgba(251, 191, 36, 0.1); }
.text-glow { text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Command Card */
.command-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(10, 10, 15, 0.9));
    border: 1px solid rgba(251, 191, 36, 0.1);
    transition: all 0.3s ease;
}
.command-card:hover {
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(251, 191, 36, 0.1);
}

/* Parameter Input */
.param-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    font-family: 'Orbitron', monospace;
    transition: all 0.2s ease;
}
.param-input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

/* Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 20px;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.6) 100%);
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.4);
}
input[type="range"]::-moz-range-track {
    height: 8px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.6) 100%);
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.4);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5), 0 2px 4px rgba(0,0,0,0.3);
    margin-top: -7px;
    border: 2px solid #fff;
}
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5), 0 2px 4px rgba(0,0,0,0.3);
    border: 2px solid #fff;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, #1a1a2e, #0a0a0f);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 28px;
    transition: 0.3s;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(145deg, #666, #444);
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.2));
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
}

/* Buttons */
.copy-btn {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    transition: all 0.2s ease;
}
.copy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}
.copy-btn.copied {
    background: linear-gradient(145deg, #22c55e, #16a34a);
}

.reset-btn {
    background: linear-gradient(145deg, #6b7280, #4b5563);
    transition: all 0.2s ease;
}
.reset-btn:hover {
    background: linear-gradient(145deg, #9ca3af, #6b7280);
    box-shadow: 0 0 10px rgba(156, 163, 175, 0.3);
}

/* Category Headers */
.category-header {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), transparent);
    border-left: 3px solid #fbbf24;
    cursor: pointer;
    transition: all 0.3s ease;
}
.category-header:hover {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.2), transparent);
}

.subcategory-header {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
    border-left: 2px solid #3b82f6;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5)); }
    50% { filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.8)); }
}
.bat-logo { animation: pulse-glow 3s ease-in-out infinite; }

/* Background Grid */
.bg-grid {
    background-image: 
        linear-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 191, 36, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Info Tooltip */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 50%;
    cursor: help;
    font-size: 11px;
    color: #60a5fa;
    font-weight: bold;
    transition: all 0.2s;
}
.info-tooltip:hover {
    background: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}
.info-tooltip .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    max-width: 320px;
    padding: 12px 16px;
    background: linear-gradient(145deg, #1a1a2e, #0a0a0f);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.2s;
}
.info-tooltip .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(59, 130, 246, 0.4);
}
.info-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Color Picker */
.color-picker-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}
.color-canvas-wrapper {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 8px;
}
.color-main-canvas {
    display: block;
    width: 100%;
    height: 150px;
    border-radius: 8px;
    cursor: crosshair;
    border: 1px solid rgba(255,255,255,0.1);
}
.color-hue-wrapper {
    position: relative;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.color-hue-slider {
    display: block;
    width: 100%;
    height: 20px;
    border-radius: 8px;
    cursor: crosshair;
    border: 1px solid rgba(255,255,255,0.1);
}
.color-picker-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.color-hue-marker {
    position: absolute;
    width: 6px;
    height: 24px;
    border: 2px solid white;
    border-radius: 3px;
    box-shadow: 0 0 4px rgba(0,0,0,0.8);
    pointer-events: none;
    transform: translateX(-50%);
    top: -2px;
    z-index: 10;
}
.color-preview-box {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    margin-top: 10px;
}
.color-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.color-preset {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}
.color-preset:hover {
    transform: scale(1.15);
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}
.color-preset.active {
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}
.color-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.color-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.color-input-group label {
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 4px;
    font-weight: 600;
}
.color-input-group input {
    width: 100%;
    padding: 6px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    color: #fbbf24;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    text-align: center;
}
.color-input-group input:focus {
    outline: none;
    border-color: #fbbf24;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.status-indicator.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-indicator.inactive {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-indicator.active .status-dot {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}
.status-indicator.inactive .status-dot {
    background: #6b7280;
}

/* Add to List Button */
.add-to-list-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.add-to-list-btn:hover {
    background: rgba(59, 130, 246, 0.4);
    border-color: #60a5fa;
    transform: scale(1.1);
}
.add-to-list-btn.added {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
    color: #22c55e;
}

/* Command Cart */
.command-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.98), rgba(26, 26, 46, 0.95));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(251, 191, 36, 0.3);
    padding: 16px 24px;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.command-cart.visible {
    transform: translateY(0);
}
.command-cart.visible ~ .a11y-toggle {
    bottom: 200px;
}
.command-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.command-cart-title {
    font-family: 'Orbitron', monospace;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
}
.command-cart-count {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.command-cart-content {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    color: #e5e7eb;
    max-height: 80px;
    overflow-y: auto;
    word-break: break-all;
    margin-bottom: 12px;
}
.command-cart-actions {
    display: flex;
    gap: 12px;
}
.cart-copy-btn {
    flex: 1;
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.cart-copy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}
.cart-clear-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.cart-clear-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* Search Toggle */
.search-toggle {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.search-toggle:hover {
    background: rgba(251, 191, 36, 0.3);
}
.search-toggle.active {
    background: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Tutorial Link */
.tutorial-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    transition: all 0.2s;
}
.tutorial-link:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

/* Video Button */
.video-btn {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #a78bfa;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.video-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    border-color: #a78bfa;
    transform: scale(1.1);
}
.video-btn.has-video {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.video-modal.visible {
    opacity: 1;
    visibility: visible;
}
.video-modal-content {
    background: linear-gradient(145deg, #1a1a2e, #0a0a0f);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    padding: 24px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.video-modal-title {
    font-family: 'Orbitron', monospace;
    color: #fbbf24;
    font-size: 18px;
    font-weight: 600;
}
.video-modal-close {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.video-modal-close:hover {
    background: rgba(239, 68, 68, 0.4);
}
.video-container {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.video-container video {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}
.wip-text {
    color: #a78bfa;
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 600;
}
.wip-subtext {
    color: #6b7280;
    font-size: 14px;
}

/* Accessibility Widget */
.a11y-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 150;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}
.a11y-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6);
}
.a11y-toggle:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}
.a11y-toggle svg {
    width: 28px;
    height: 28px;
    color: white;
}

.a11y-panel {
    position: fixed;
    bottom: 90px;
    left: 24px;
    width: 320px;
    max-height: 70vh;
    background: linear-gradient(145deg, #1a1a2e, #0a0a0f);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 20px;
    z-index: 150;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow-y: auto;
}
.a11y-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.a11y-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}
.a11y-panel-title {
    font-family: 'Orbitron', monospace;
    color: #3b82f6;
    font-size: 16px;
    font-weight: 600;
}
.a11y-close {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.a11y-close:hover {
    background: rgba(239, 68, 68, 0.4);
}
.a11y-close:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.a11y-section {
    margin-bottom: 16px;
}
.a11y-section-title {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}
.a11y-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s;
}
.a11y-option:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}
.a11y-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e5e7eb;
    font-size: 13px;
}
.a11y-option-label svg {
    width: 18px;
    height: 18px;
    color: #60a5fa;
}
.a11y-option-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.a11y-option-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.a11y-option-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 114, 128, 0.4);
    border-radius: 24px;
    transition: 0.3s;
}
.a11y-option-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #9ca3af;
    border-radius: 50%;
    transition: 0.3s;
}
.a11y-option-toggle input:checked + .a11y-option-slider {
    background: rgba(59, 130, 246, 0.6);
}
.a11y-option-toggle input:checked + .a11y-option-slider:before {
    transform: translateX(20px);
    background: #3b82f6;
}
.a11y-option-toggle input:focus + .a11y-option-slider {
    box-shadow: 0 0 0 2px #fbbf24;
}

.a11y-font-size {
    display: flex;
    align-items: center;
    gap: 8px;
}
.a11y-font-btn {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    color: #60a5fa;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.a11y-font-btn:hover {
    background: rgba(59, 130, 246, 0.4);
}
.a11y-font-btn:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}
.a11y-font-size-value {
    min-width: 50px;
    text-align: center;
    color: #e5e7eb;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
}

.a11y-reset {
    width: 100%;
    padding: 12px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    color: #ef4444;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.a11y-reset:hover {
    background: rgba(239, 68, 68, 0.4);
}
.a11y-reset:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Accessibility Modes */
html.a11y-high-contrast {
    filter: contrast(1.4);
}
html.a11y-high-contrast .glass,
html.a11y-high-contrast .command-card {
    background: #000 !important;
    border-color: #fff !important;
}
html.a11y-high-contrast .text-gray-400,
html.a11y-high-contrast .text-gray-500,
html.a11y-high-contrast .text-gray-600 {
    color: #e5e7eb !important;
}

html.a11y-grayscale {
    filter: grayscale(100%);
}

html.a11y-dyslexia * {
    font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
    letter-spacing: 0.05em;
    word-spacing: 0.1em;
}

html.a11y-large-cursor,
html.a11y-large-cursor * {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="%23fbbf24" stroke="%23000" stroke-width="1"><path d="M4 4l16 8-7 2-2 7z"/></svg>') 4 4, auto !important;
}

html.a11y-highlight-links a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

html.a11y-reduce-motion,
html.a11y-reduce-motion * {
    animation: none !important;
    transition: none !important;
}

html.a11y-text-spacing {
    letter-spacing: 0.12em;
    word-spacing: 0.16em;
    line-height: 1.8;
}

html.a11y-focus-indicator *:focus {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 3px !important;
}

/* Reading Guide */
.reading-guide {
    position: fixed;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(251, 191, 36, 0.15) 20%, 
        rgba(251, 191, 36, 0.15) 80%, 
        transparent 100%);
    pointer-events: none;
    z-index: 9999;
    display: none;
    border-top: 2px solid rgba(251, 191, 36, 0.4);
    border-bottom: 2px solid rgba(251, 191, 36, 0.4);
}
html.a11y-reading-guide .reading-guide {
    display: block;
}

/* Skip to content link */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}
