/* help.css - Стили для модального окна помощи */

#help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    backdrop-filter: blur(5px);
}

#help-modal .modal-content {
    background: #111;
    border: 2px solid #0f0;
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: #fff;
    font-family: monospace;
}

#help-modal h2 {
    color: #0f0;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

#help-modal .help-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

#help-modal .help-item {
    background: #222;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px 20px;
    color: #0f0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    text-align: left;
}

#help-modal .help-item:hover {
    background: #0f0;
    color: #000;
    border-color: #0f0;
}

#help-modal .help-content {
    display: none;
    background: #222;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    color: #fff;
    line-height: 1.6;
    max-height: 50vh;
    overflow-y: auto;
}

#help-modal .help-content.visible {
    display: block;
}

#help-modal .help-content h1,
#help-modal .help-content h2,
#help-modal .help-content h3 {
    color: #0f0;
    margin-top: 0;
}

#help-modal .help-content p {
    margin: 15px 0;
}

#help-modal .help-content img {
    max-width: 100%;
    border: 1px solid #333;
    border-radius: 5px;
    margin: 10px 0;
}

#help-modal .help-content code {
    background: #000;
    color: #0f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

#help-modal .help-content pre {
    background: #000;
    color: #0f0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: monospace;
}

#help-modal .back-btn {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}

#help-modal .back-btn:hover {
    background: #0f0;
    color: #000;
}

#help-modal .close-btn {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

#help-modal .close-btn:hover {
    background: #f00;
}

#help-modal .modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    #help-modal .modal-content {
        padding: 20px;
        width: 95%;
        max-height: 90vh;
    }
    
    #help-modal h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    #help-modal .help-item {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    #help-modal .help-content {
        padding: 15px;
    }
}