/* =============================================
   MVPIS Help Center — help.css
   ============================================= */

/* --- Floating Help Button --- */
.floating-help-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040;
}

.btn-help-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
}

.btn-help-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.30);
}

/* --- Help Modal --- */
#helpModal .modal-header {
    border-bottom: none;
}

#helpModal .modal-body {
    padding-top: 0.5rem;
}

#helpModal .help-article-item {
    border-left: 3px solid #17a2b8;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
    transition: background 0.1s;
}

#helpModal .help-article-item:hover {
    background: #e9ecef;
}

#helpModal .help-article-item a {
    font-weight: 500;
    color: #343a40;
    text-decoration: none;
    display: block;
}

#helpModal .help-article-item a:hover {
    color: #17a2b8;
}

#helpModal .help-article-item .help-article-category {
    font-size: 0.75rem;
    color: #6c757d;
}

#helpModal .help-no-articles {
    color: #6c757d;
    text-align: center;
    padding: 1.5rem 0;
}

/* --- Help Center Page --- */
.help-category-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    height: 100%;
}

.help-category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #17a2b8;
}

.help-category-card .card-body {
    display: flex;
    flex-direction: column;
}

.help-category-icon {
    font-size: 2rem;
    color: #17a2b8;
    margin-bottom: 0.5rem;
}

.help-article-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* --- Article Detail Page --- */
.help-article-content {
    font-size: 1rem;
    line-height: 1.7;
}

.help-article-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #dee2e6;
}

.help-article-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.help-article-content img {
    max-width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 0.75rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
}

.help-article-content pre,
.help-article-content code {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
}

.help-article-content pre {
    padding: 0.75rem 1rem;
}

.help-article-content code {
    padding: 0.1rem 0.35rem;
    font-size: 0.875em;
}

.help-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.help-article-content table th,
.help-article-content table td {
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

.help-article-content table th {
    background: #f8f9fa;
}

/* --- Feedback widget --- */
.help-feedback-widget {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.help-feedback-widget .feedback-sent {
    display: none;
    color: #28a745;
}

/* --- Screenshot lightbox --- */
.help-screenshot-thumb {
    cursor: zoom-in;
    max-width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* --- Sidebar --- */
.help-sidebar .list-group-item {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
}

.help-sidebar .list-group-item.active {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

/* --- Search results --- */
.help-search-result {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.help-search-result:last-child {
    border-bottom: none;
}

.help-search-result h5 a {
    color: #343a40;
    text-decoration: none;
}

.help-search-result h5 a:hover {
    color: #17a2b8;
}

.help-search-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
}

/* --- Lightbox overlay for screenshots --- */
.help-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.help-lightbox-overlay.active {
    display: flex;
}

.help-lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
