/* public_map/static/css/help.css */
/* Help modal styles */

.help-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.help-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.help-dialog {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 0.6rem;
    width: 90vw;
    max-width: 800px;
    height: 85vh;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.help-modal.open .help-dialog {
    transform: translateY(0);
}

.help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #2a2a4a;
    background: #222240;
}

.help-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.help-header .help-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
}

.help-header .help-close:hover { color: #fff; }

.help-tabs {
    display: flex;
    gap: 0.1rem;
    padding: 0.4rem 0.6rem 0;
    border-bottom: 1px solid #2a2a4a;
    overflow-x: auto;
    white-space: nowrap;
    background: #1a1a2e;
}

.help-tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #888;
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.help-tab-btn:hover { color: #ccc; }
.help-tab-btn.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
    font-weight: 600;
}

.help-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.help-tab-content {
    display: none;
    padding: 1rem 1.2rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #ccc;
}

.help-tab-content.active { display: block; }

.help-tab-content h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.2rem 0 0.5rem;
}

.help-tab-content h3:first-child { margin-top: 0; }

.help-tab-content p {
    margin: 0.4rem 0;
}

.help-tab-content ul, .help-tab-content ol {
    margin: 0.4rem 0;
    padding-left: 1.2rem;
}

.help-tab-content li {
    margin-bottom: 0.3rem;
}

.help-tab-content code {
    background: #252540;
    border: 1px solid #333;
    border-radius: 0.2rem;
    padding: 0.1rem 0.35rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #fcd34d;
}

.help-tab-content .kbd {
    display: inline-block;
    background: #2d2d44;
    border: 1px solid #444;
    border-radius: 0.25rem;
    padding: 0.1rem 0.4rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    color: #ddd;
    box-shadow: 0 2px 0 #1a1a2e;
}

.help-tab-content .note {
    background: rgba(13, 110, 253, 0.1);
    border-left: 3px solid #0d6efd;
    padding: 0.6rem 0.8rem;
    border-radius: 0 0.3rem 0.3rem 0;
    margin: 0.6rem 0;
    font-size: 0.82rem;
}

.help-tab-content .warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    padding: 0.6rem 0.8rem;
    border-radius: 0 0.3rem 0.3rem 0;
    margin: 0.6rem 0;
    font-size: 0.82rem;
}

.help-tab-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6rem 0;
    font-size: 0.8rem;
}

.help-tab-content th,
.help-tab-content td {
    text-align: left;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #2a2a4a;
}

.help-tab-content th {
    color: #fff;
    font-weight: 600;
    background: #222240;
}

/* Mobile */
@media (max-width: 768px) {
    .help-dialog {
        width: 95vw;
        height: 90vh;
        max-height: none;
    }
    .help-tab-btn {
        font-size: 0.72rem;
        padding: 0.35rem 0.5rem;
    }
}
