/**
 * AI Tour Widget Styles
 * Transparent floating widget
 * 
 * @copyright bctoyz.com
 * @company LiLa.,corp
 * @author Kyobi
 */

.ai-tour-widget {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ai-tour-widget.ai-tour-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Position variants */
.ai-tour-widget[data-position="bottom-right"] {
    bottom: 20px;
    right: 20px;
}

.ai-tour-widget[data-position="bottom-left"] {
    bottom: 20px;
    left: 20px;
}

.ai-tour-widget[data-position="top-right"] {
    top: 20px;
    right: 20px;
}

.ai-tour-widget[data-position="top-left"] {
    top: 20px;
    left: 20px;
}

/* Content container - Nền mờ 10%, chỉ chữ hiện rõ */
.ai-tour-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-width: 280px;
    max-width: 320px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header row - Flow name và close button ngang nhau */
.ai-tour-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ai-tour-close {
    background: transparent;
    border: none;
    color: #667eea;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: opacity 0.2s;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    margin-left: 8px;
}

.ai-tour-close:hover {
    opacity: 0.7;
}

/* Body */
.ai-tour-body {
    padding: 16px;
}

.ai-tour-flow-name {
    font-style: italic;
    color: #667eea;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.ai-tour-suggestion {
    color: #333;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: opacity 0.5s ease;
    opacity: 1;
}

.ai-tour-actions {
    display: flex;
    gap: 8px;
}

/* Buttons */
.ai-tour-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.ai-tour-btn-primary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.ai-tour-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-tour-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-tour-widget {
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px);
    }
    
    .ai-tour-content {
        min-width: auto;
        max-width: 100%;
    }
}

/* Animation */
@keyframes ai-tour-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-tour-widget:not(.ai-tour-hidden) {
    animation: ai-tour-slide-in 0.3s ease;
}

/* Highlight effect for suggested elements */
.ai-tour-highlight {
    position: relative;
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
    animation: ai-tour-pulse 2s infinite;
}

@keyframes ai-tour-pulse {
    0%, 100% {
        outline-color: #667eea;
    }
    50% {
        outline-color: #764ba2;
    }
}

