/* Help Modal Styles */
.help-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.help-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: all;
}

.help-modal-content {
    background-color: #fff;
    margin: 2rem auto;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: calc(100% - 2rem);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.help-modal.show .help-modal-content {
    transform: scale(1);
}

.help-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 1;
}

.help-modal-close:hover {
    color: #000;
}

.help-modal-content h2 {
    margin: 0;
    padding: 1.5rem 1.5rem 1rem;
    font-size: 1.75rem;
    border-bottom: 1px solid #eee;
}

.help-modal-body {
    padding: 1.5rem;
}

.help-modal-body p {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.help-modal-body h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.25rem;
    color: #333;
}

.help-modal-body h3:first-of-type {
    margin-top: 0;
}

.help-modal-body ul {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.help-modal-body li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.help-modal-body strong {
    font-weight: 600;
    color: #333;
}

.help-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

#help-modal-close-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .help-modal-content {
        margin: 1rem auto;
        width: calc(100% - 1rem);
        max-height: 95vh;
    }
    
    .help-modal-content h2 {
        padding: 1.25rem 1.25rem 0.75rem;
        font-size: 1.5rem;
    }
    
    .help-modal-body {
        padding: 1.25rem;
    }
    
    .help-modal-body h3 {
        font-size: 1.1rem;
    }
    
    .help-modal-footer {
        padding: 0.75rem 1.25rem 1.25rem;
    }
    
    .help-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1.75rem;
        width: 1.75rem;
        height: 1.75rem;
    }
}
