/* Keyboard Shortcuts Guide */
.keyboard-guide-trigger {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.keyboard-guide-trigger:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent, #6366f1);
}

.keyboard-guide-trigger svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary, #475569);
}

.keyboard-guide-trigger:hover svg {
    color: var(--color-accent, #6366f1);
}

.keyboard-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.keyboard-guide-overlay.active {
    display: flex;
    opacity: 1;
}

.keyboard-guide-modal {
    background: var(--color-surface, #ffffff);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.keyboard-guide-overlay.active .keyboard-guide-modal {
    transform: scale(1);
}

.keyboard-guide-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.keyboard-guide-header h2 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text, #0f172a);
    margin: 0;
}

.keyboard-guide-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-text-muted, #64748b);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.keyboard-guide-close:hover {
    background: var(--color-bg-secondary, #f8fafc);
    color: var(--color-text, #0f172a);
}

.keyboard-guide-close svg {
    width: 20px;
    height: 20px;
}

.keyboard-guide-content {
    padding: 24px 32px 32px;
}

.keyboard-guide-section {
    margin-bottom: 28px;
}

.keyboard-guide-section:last-child {
    margin-bottom: 0;
}

.keyboard-guide-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary, #475569);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.keyboard-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-light, #f1f5f9);
}

.keyboard-shortcut:last-child {
    border-bottom: none;
}

.keyboard-shortcut-label {
    font-size: 0.9375rem;
    color: var(--color-text, #0f172a);
}

.keyboard-shortcut-keys {
    display: flex;
    gap: 6px;
}

.keyboard-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text, #0f172a);
    background: var(--color-bg-secondary, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.keyboard-key-plus {
    color: var(--color-text-muted, #64748b);
    font-size: 0.875rem;
}

/* Dark mode */
[data-theme="dark"] .keyboard-guide-trigger {
    background: var(--color-surface, #14141f);
    border-color: var(--color-border, #1e1e2d);
}

[data-theme="dark"] .keyboard-guide-modal {
    background: var(--color-surface, #14141f);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .keyboard-guide-trigger {
        bottom: 24px;
        left: 24px;
        width: 44px;
        height: 44px;
    }
    
    .keyboard-guide-modal {
        max-height: 90vh;
        margin: 20px;
    }
    
    .keyboard-guide-header,
    .keyboard-guide-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .keyboard-guide-header h2 {
        font-size: 1.25rem;
    }
}

/* Accessibility */
.keyboard-guide-trigger:focus-visible,
.keyboard-guide-close:focus-visible {
    outline: 3px solid var(--color-accent, #6366f1);
    outline-offset: 2px;
}
