/* Help Modal Styles */
.help-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.help-modal {
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background-color: #121212;
    z-index: 10;
}

.help-header h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--logo-brown);
}

.close-help-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-help-btn:hover {
    color: var(--logo-red);
}

.help-body {
    padding: 20px;
    overflow-y: auto;
}

.help-section {
    margin-bottom: 30px;
}

.help-section h4 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: var(--logo-brown);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.help-item {
    margin-bottom: 20px;
}

.help-item h5 {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-weight: 600;
}

.help-section p,
.help-item p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.help-section ul,
.help-section ol {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.help-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.help-color.red {
    background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%);
}

.help-color.orange {
    background: linear-gradient(90deg, #f6d365 0%, #fda085 100%);
}

.help-color.yellow {
    background: linear-gradient(90deg, #ffe259 0%, #ffa751 100%);
}

.help-color.green {
    background: linear-gradient(90deg, #00b09b 0%, #96c93d 100%);
}

.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.shortcuts-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.shortcuts-table tr:last-child td {
    border-bottom: none;
}

.shortcuts-table td:first-child {
    width: 120px;
}

kbd {
    display: inline-block;
    padding: 3px 6px;
    font-family: monospace;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.help-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    position: sticky;
    bottom: 0;
    background-color: #121212;
}

.close-help-footer-btn {
    padding: 10px 30px;
    border: 1px solid var(--logo-red);
    background-color: var(--logo-red);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.close-help-footer-btn:hover {
    background-color: #b82922;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .help-modal {
        width: 95%;
        max-height: 80vh;
    }
    
    .help-header h3 {
        font-size: 20px;
    }
    
    .help-section h4 {
        font-size: 16px;
    }
    
    .help-item h5 {
        font-size: 14px;
    }
    
    .shortcuts-table td:first-child {
        width: 80px;
    }
}
