/**
 * Keyboard Shortcuts Modal Styles
 */

/* Modal overlay */
.keyboard-shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.keyboard-shortcuts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Modal content */
.keyboard-shortcuts-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
.keyboard-shortcuts-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.keyboard-shortcuts-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.keyboard-shortcuts-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.keyboard-shortcuts-close:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Body */
.keyboard-shortcuts-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.keyboard-shortcuts-body table {
    width: 100%;
    margin: 0;
}

.keyboard-shortcuts-body thead th {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.keyboard-shortcuts-body tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid #f3f4f6;
}

.keyboard-shortcuts-body tbody tr:last-child td {
    border-bottom: none;
}

/* Keyboard key styling */
kbd {
    display: inline-block;
    padding: 4px 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), inset 0 0 0 2px #fff;
    white-space: nowrap;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .keyboard-shortcuts-content {
        background: #1f2937;
    }

    .keyboard-shortcuts-header {
        border-bottom-color: #374151;
    }

    .keyboard-shortcuts-header h2 {
        color: #f3f4f6;
    }

    .keyboard-shortcuts-close {
        color: #9ca3af;
    }

    .keyboard-shortcuts-close:hover {
        background: #374151;
        color: #f3f4f6;
    }

    .keyboard-shortcuts-body thead th {
        color: #d1d5db;
        border-bottom-color: #374151;
    }

    .keyboard-shortcuts-body tbody td {
        color: #e5e7eb;
        border-bottom-color: #374151;
    }

    kbd {
        color: #d1d5db;
        background: #374151;
        border-color: #4b5563;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 2px #1f2937;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .keyboard-shortcuts-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .keyboard-shortcuts-header {
        padding: 16px;
    }

    .keyboard-shortcuts-header h2 {
        font-size: 18px;
    }

    .keyboard-shortcuts-body {
        padding: 16px;
    }

    .keyboard-shortcuts-body table {
        font-size: 14px;
    }

    kbd {
        font-size: 11px;
        padding: 3px 6px;
    }
}
