/* SEO RAG Analysis - Pinecone Integration Styles */
.seo-rag-search-container {
    max-width: 600px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.seo-rag-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.seo-rag-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    outline: none;
}

.seo-rag-search-input:focus {
    border-color: #66b5e5;
    box-shadow: 0 0 0 3px rgba(102, 181, 229, 0.1);
}

.seo-rag-search-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #66b5e5 0%, #2e87c1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.seo-rag-search-button:hover {
    background: linear-gradient(135deg, #2e87c1 0%, #1a5b82 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 135, 193, 0.3);
}

.seo-rag-search-button:active {
    transform: translateY(0);
}

.seo-rag-search-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.seo-rag-search-loading::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #66b5e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.seo-rag-search-results {
    margin-top: 20px;
}

.seo-rag-results-header {
    padding: 10px 0;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.seo-rag-result-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.seo-rag-result-item:hover {
    border-color: #66b5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.seo-rag-result-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.seo-rag-result-title a {
    color: #2e87c1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.seo-rag-result-title a:hover {
    color: #1a5b82;
    text-decoration: underline;
}

.seo-rag-result-url {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    word-break: break-all;
}

.seo-rag-result-snippet {
    color: #444;
    line-height: 1.5;
    margin-bottom: 10px;
}

.seo-rag-result-snippet mark {
    background: rgba(248, 238, 77, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.seo-rag-result-similarity {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.seo-rag-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.seo-rag-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

/* Responsive design */
@media (max-width: 600px) {
    .seo-rag-search-form {
        flex-direction: column;
    }
    
    .seo-rag-search-input,
    .seo-rag-search-button {
        width: 100%;
        margin: 0;
    }
    
    .seo-rag-search-button {
        margin-top: 10px;
    }
}