/**
 * AI Boat Search Styles
 * Handles styling for the AI-powered conversational search interface
 */

.bwm-ai-search {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.bwm-ai-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.bwm-ai-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.bwm-ai-textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.bwm-ai-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.bwm-ai-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bwm-ai-button-primary {
    flex: 1;
    background: #0073aa;
    color: white;
}

.bwm-ai-button-primary:hover {
    background: #005a87;
}

.bwm-ai-button-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
}

.bwm-ai-button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.bwm-ai-status {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

.bwm-ai-result {
    margin-top: 12px;
}

/* Follow-up suggestion buttons */
.bwm-followup-btn {
    padding: 8px 16px;
    background: rgba(0, 115, 170, 0.1);
    border: 1px solid rgba(0, 115, 170, 0.3);
    border-radius: 20px;
    color: #0073aa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.bwm-followup-btn:hover {
    background: rgba(0, 115, 170, 0.2);
    border-color: rgba(0, 115, 170, 0.5);
}

/* Loading state */
.bwm-ai-search.loading .bwm-ai-button {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .bwm-ai-label {
        color: #f0f0f0;
    }

    .bwm-ai-textarea {
        background: #2a2a2a;
        border-color: #444;
        color: #f0f0f0;
    }

    .bwm-ai-textarea:focus {
        border-color: #4a9eff;
    }

    .bwm-ai-status {
        color: #aaa;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .bwm-ai-search {
        padding: 15px;
    }

    .bwm-ai-buttons {
        flex-direction: column;
    }

    .bwm-ai-button-primary {
        width: 100%;
    }
}
