/**
 * AI Chat Widget Styles
 */

/* Chat Popup Container */
.aicw-popup {
    position: fixed;
    bottom: 100px;
    right: 21px;
    width: 380px;
    height: 600px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 999999;
    display: flex;
    flex-direction: column;
}

/* Header met close button */
.aicw-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.aicw-close-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.aicw-close-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

/* Chat Container (iframe) */
.aicw-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

.aicw-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Open Chat Button - GOUD */
.aicw-open-btn {
    position: fixed;
    right: 21px;
    bottom: 27px;
    z-index: 999998;
    background: linear-gradient(135deg, var(--btn-color, #D4AF37) 0%, color-mix(in srgb, var(--btn-color, #D4AF37) 80%, black) 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.aicw-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.aicw-open-btn:focus {
    outline: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.aicw-open-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Animatie voor popup */
.aicw-popup {
    animation: aicwSlideIn 0.3s ease-out;
}

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

/* Responsive */
@media (max-width: 420px) {
    .aicw-popup {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        bottom: 80px;
        height: 70vh;
    }

    .aicw-open-btn {
        right: 15px;
        bottom: 15px;
        padding: 14px 20px;
        font-size: 14px;
    }

    .aicw-open-btn span {
        display: none;
    }

    .aicw-open-btn svg {
        width: 24px;
        height: 24px;
    }
}
