/**
 * Public styles for Help+Manual plugin
 */

.helpmanual-wrapper {
    position: relative;
    width: 100%;
}

.helpmanual-iframe {
    width: 100%;
    border: none;
    display: block;
}

.helpmanual-error,
.helpmanual-notice {
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.helpmanual-error {
    background: #fee;
    border: 1px solid #c00;
    color: #c00;
}

.helpmanual-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

/* CHM Toggle Shortcode Styling */
.hm-toggle {
    border: 1px solid #c0c0c0;
    background: #f0f0f0;
    padding: 0.5em;
    margin: 1em 0;
    border-radius: 3px;
}

.hm-toggle summary {
    cursor: pointer;
    font-weight: bold;
    padding: 0.3em 0.5em;
    user-select: none;
}

.hm-toggle summary:hover {
    background: #e0e0e0;
}

.hm-toggle-content {
    padding: 0.5em;
    margin-top: 0.5em;
}

/* Zoom Image Styling */
.hm-zoom-image {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
}

.hm-zoom-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.hm-zoom-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 16px;
    pointer-events: none;
}

/* Simple Lightbox Overlay */
.hm-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    cursor: zoom-out;
}

.hm-lightbox-overlay img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}
