/* Jaloezieopmaat Help Modal - Styles */

/* CSS Variables for easy customization */
:root {
    --jhm-primary: #2c5530;
    --jhm-primary-hover: #1e3d22;
    --jhm-primary-light: #e8f0e9;
    --jhm-text: #1a1a1a;
    --jhm-text-secondary: #666666;
    --jhm-text-muted: #999999;
    --jhm-background: #ffffff;
    --jhm-background-secondary: #f8f9fa;
    --jhm-border: #e5e7eb;
    --jhm-border-dark: #d1d5db;
    --jhm-shadow: rgba(0, 0, 0, 0.1);
    --jhm-shadow-lg: rgba(0, 0, 0, 0.15);
    --jhm-overlay: rgba(0, 0, 0, 0.6);
    --jhm-radius: 12px;
    --jhm-radius-sm: 8px;
    --jhm-radius-xs: 6px;
    --jhm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --jhm-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Reset for modal elements */
.jhm-modal *,
.jhm-modal *::before,
.jhm-modal *::after,
.jhm-trigger-button *,
.jhm-trigger-button *::before,
.jhm-trigger-button *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== TRIGGER BUTTON ===== */
.jhm-trigger-button {
    position: fixed;
    z-index: 999998;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--jhm-primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: var(--jhm-font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--jhm-shadow-lg), 0 2px 8px var(--jhm-shadow);
    transition: all var(--jhm-transition);
}

.jhm-trigger-button:hover {
    background: var(--jhm-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--jhm-shadow-lg), 0 4px 12px var(--jhm-shadow);
}

.jhm-trigger-button:active {
    transform: translateY(0);
}

.jhm-trigger-button svg {
    flex-shrink: 0;
}

/* Button Positions */
.jhm-position-bottom-right {
    bottom: 24px;
    right: 24px;
}

.jhm-position-bottom-left {
    bottom: 24px;
    left: 24px;
}

.jhm-position-top-right {
    top: 24px;
    right: 24px;
}

.jhm-position-top-left {
    top: 24px;
    left: 24px;
}

/* ===== MODAL OVERLAY ===== */
.jhm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--jhm-overlay);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--jhm-transition), visibility var(--jhm-transition);
}

.jhm-modal-overlay.jhm-modal-open {
    opacity: 1;
    visibility: visible;
}

/* ===== MODAL ===== */
.jhm-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--jhm-background);
    border-radius: var(--jhm-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform var(--jhm-transition), opacity var(--jhm-transition);
    overflow: hidden;
}

.jhm-modal-overlay.jhm-modal-open .jhm-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* ===== MODAL HEADER ===== */
.jhm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--jhm-border);
    background: var(--jhm-background);
}

.jhm-modal-title {
    font-family: var(--jhm-font-family);
    font-size: 24px;
    font-weight: 700;
    color: var(--jhm-text);
    line-height: 1.3;
}

.jhm-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--jhm-background-secondary);
    border: none;
    border-radius: 50%;
    color: var(--jhm-text-secondary);
    cursor: pointer;
    transition: all var(--jhm-transition);
    flex-shrink: 0;
}

.jhm-modal-close:hover {
    background: var(--jhm-border);
    color: var(--jhm-text);
}

/* ===== TABS ===== */
.jhm-tabs {
    display: flex;
    gap: 4px;
    padding: 16px 28px;
    background: var(--jhm-background-secondary);
    border-bottom: 1px solid var(--jhm-border);
}

.jhm-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--jhm-radius-sm);
    font-family: var(--jhm-font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--jhm-text-secondary);
    cursor: pointer;
    transition: all var(--jhm-transition);
    position: relative;
}

.jhm-tab:hover {
    background: var(--jhm-border);
    color: var(--jhm-text);
}

.jhm-tab.jhm-tab-active {
    background: var(--jhm-tab-active-bg, var(--jhm-background));
    color: var(--jhm-primary);
    box-shadow: 0 1px 3px var(--jhm-shadow);
}

.jhm-tab svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.jhm-tab.jhm-tab-active svg {
    opacity: 1;
}

/* ===== MODAL CONTENT ===== */
.jhm-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: var(--jhm-background);
}

.jhm-panel {
    display: none;
    padding: 28px;
    animation: jhmFadeIn 0.3s ease-out;
}

.jhm-panel.jhm-panel-active {
    display: block;
}

@keyframes jhmFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== INMETEN CONTENT ===== */
.jhm-inmeten-content h3 {
    font-family: var(--jhm-font-family);
    font-size: 20px;
    font-weight: 700;
    color: var(--jhm-text);
    margin-bottom: 12px;
}

.jhm-inmeten-content p {
    font-family: var(--jhm-font-family);
    font-size: 15px;
    line-height: 1.7;
    color: var(--jhm-text-secondary);
    margin-bottom: 24px;
}

.jhm-inmeten-intro {
    margin-bottom: 32px;
}

.jhm-section-title {
    margin-top: 8px;
    margin-bottom: 20px;
}

.jhm-section-title h4 {
    font-family: var(--jhm-font-family);
    font-size: 18px;
    font-weight: 600;
    color: var(--jhm-text);
    margin: 0;
}

.jhm-inmeten-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.jhm-inmeten-step {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--jhm-background-secondary);
    border-radius: var(--jhm-radius-sm);
    border: 1px solid var(--jhm-border);
}

.jhm-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--jhm-primary);
    color: #ffffff;
    font-family: var(--jhm-font-family);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.jhm-step-content h4 {
    font-family: var(--jhm-font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--jhm-text);
    margin-bottom: 6px;
}

.jhm-step-content p {
    font-size: 14px;
    margin-bottom: 0;
}

.jhm-inmeten-tips {
    background: var(--jhm-primary-light);
    padding: 24px;
    border-radius: var(--jhm-radius-sm);
    border-left: 4px solid var(--jhm-primary);
}

.jhm-inmeten-tips h4 {
    font-family: var(--jhm-font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--jhm-primary);
    margin-bottom: 12px;
}

.jhm-inmeten-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jhm-inmeten-tips li {
    position: relative;
    padding-left: 24px;
    font-family: var(--jhm-font-family);
    font-size: 14px;
    line-height: 1.8;
    color: var(--jhm-text-secondary);
}

.jhm-inmeten-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--jhm-primary);
    border-radius: 50%;
}

/* ===== VIDEOS GRID ===== */
.jhm-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.jhm-video-card {
    background: var(--jhm-background);
    border-radius: var(--jhm-radius-sm);
    overflow: hidden;
    border: 1px solid var(--jhm-border);
    transition: all var(--jhm-transition);
}

.jhm-video-card:hover {
    border-color: var(--jhm-border-dark);
    box-shadow: 0 8px 24px var(--jhm-shadow);
    transform: translateY(-2px);
}

.jhm-video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--jhm-background-secondary);
    cursor: pointer;
    overflow: hidden;
}

.jhm-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--jhm-transition);
}

.jhm-video-card:hover .jhm-video-thumbnail img {
    transform: scale(1.05);
}

.jhm-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--jhm-text-muted);
}

.jhm-video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 1;
    transition: all var(--jhm-transition);
}

.jhm-video-card:hover .jhm-video-play-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
}

.jhm-play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--jhm-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all var(--jhm-transition);
}

.jhm-play-button svg {
    margin-left: 4px;
}

.jhm-video-card:hover .jhm-play-button {
    transform: scale(1.1);
    background: #ffffff;
}

.jhm-video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-family: var(--jhm-font-family);
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
}

.jhm-video-info {
    padding: 16px;
}

.jhm-video-title {
    font-family: var(--jhm-font-family);
    font-size: 15px;
    font-weight: 600;
    color: var(--jhm-text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.jhm-video-description {
    font-family: var(--jhm-font-family);
    font-size: 13px;
    color: var(--jhm-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ===== VIDEO PLAYER ===== */
.jhm-video-player {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.9);
    animation: jhmFadeIn 0.3s ease-out;
}

.jhm-video-player[hidden] {
    display: none;
}

.jhm-video-player-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all var(--jhm-transition);
}

.jhm-video-player-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.jhm-video-container {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: var(--jhm-radius);
    overflow: hidden;
}

.jhm-video-container iframe {
    width: 100%;
    height: 100%;
}

/* ===== FAQ ===== */
.jhm-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jhm-faq-item {
    background: var(--jhm-background);
    border: 1px solid var(--jhm-border);
    border-radius: var(--jhm-radius-sm);
    overflow: hidden;
    transition: all var(--jhm-transition);
}

.jhm-faq-item:hover {
    border-color: var(--jhm-border-dark);
}

.jhm-faq-item.jhm-faq-open {
    border-color: var(--jhm-primary);
    box-shadow: 0 4px 12px var(--jhm-shadow);
}

.jhm-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    font-family: var(--jhm-font-family);
    font-size: 15px;
    font-weight: 600;
    color: var(--jhm-text);
    text-align: left;
    cursor: pointer;
    transition: all var(--jhm-transition);
}

.jhm-faq-question:hover {
    background: var(--jhm-background-secondary);
}

.jhm-faq-item.jhm-faq-open .jhm-faq-question {
    background: var(--jhm-primary-light);
    color: var(--jhm-primary);
}

.jhm-faq-chevron {
    flex-shrink: 0;
    color: var(--jhm-text-muted);
    transition: transform var(--jhm-transition);
}

.jhm-faq-item.jhm-faq-open .jhm-faq-chevron {
    transform: rotate(180deg);
    color: var(--jhm-primary);
}

.jhm-faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.jhm-faq-answer:not([hidden]) {
    max-height: 500px;
}

.jhm-faq-answer-content {
    padding: 0 20px 20px;
    font-family: var(--jhm-font-family);
    font-size: 14px;
    line-height: 1.7;
    color: var(--jhm-text-secondary);
}

.jhm-faq-answer-content p {
    margin-bottom: 12px;
}

.jhm-faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* ===== MODAL FOOTER ===== */
.jhm-modal-footer {
    padding: 20px 28px;
    background: var(--jhm-background-secondary);
    border-top: 1px solid var(--jhm-border);
}

.jhm-contact-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.jhm-contact-label {
    font-family: var(--jhm-font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--jhm-text);
}

.jhm-contact-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.jhm-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--jhm-background);
    border: 1px solid var(--jhm-border);
    border-radius: var(--jhm-radius-xs);
    font-family: var(--jhm-font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--jhm-text);
    text-decoration: none;
    transition: all var(--jhm-transition);
}

.jhm-contact-link:hover {
    background: var(--jhm-primary);
    border-color: var(--jhm-primary);
    color: #ffffff;
}

.jhm-contact-link svg {
    flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .jhm-trigger-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .jhm-trigger-button span {
        display: none;
    }
    
    .jhm-trigger-button svg {
        width: 20px;
        height: 20px;
    }
    
    .jhm-position-bottom-right,
    .jhm-position-bottom-left {
        bottom: 16px;
    }
    
    .jhm-position-bottom-right,
    .jhm-position-top-right {
        right: 16px;
    }
    
    .jhm-position-bottom-left,
    .jhm-position-top-left {
        left: 16px;
    }
    
    .jhm-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .jhm-modal {
        max-height: 95vh;
        border-radius: var(--jhm-radius) var(--jhm-radius) 0 0;
    }
    
    .jhm-modal-header {
        padding: 20px;
    }
    
    .jhm-modal-title {
        font-size: 20px;
    }
    
    .jhm-tabs {
        padding: 12px 16px;
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .jhm-tab {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .jhm-tab span {
        display: none;
    }
    
    .jhm-panel {
        padding: 20px;
    }
    
    .jhm-inmeten-step {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .jhm-videos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .jhm-video-player {
        padding: 20px;
    }
    
    .jhm-modal-footer {
        padding: 16px 20px;
    }
    
    .jhm-contact-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jhm-contact-links {
        flex-direction: column;
    }
    
    .jhm-contact-link {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .jhm-modal-close {
        width: 36px;
        height: 36px;
    }
    
    .jhm-inmeten-content h3 {
        font-size: 18px;
    }
    
    .jhm-step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .jhm-faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .jhm-faq-answer-content {
        padding: 0 16px 16px;
        font-size: 13px;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.jhm-modal-content::-webkit-scrollbar {
    width: 8px;
}

.jhm-modal-content::-webkit-scrollbar-track {
    background: var(--jhm-background-secondary);
}

.jhm-modal-content::-webkit-scrollbar-thumb {
    background: var(--jhm-border-dark);
    border-radius: 4px;
}

.jhm-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--jhm-text-muted);
}

/* ===== PRINT STYLES ===== */
@media print {
    .jhm-trigger-button,
    .jhm-modal-overlay {
        display: none !important;
    }
}
