/* Frontend Styles */
.pcu-ai-search-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.pcu-ai-search-form {
    margin-bottom: 20px;
}

.pcu-ai-search-input-group {
    display: flex;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

#pcu-ai-search-query {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    line-height: 1.5;
}

#pcufix-search-query:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.pcu-ai-search-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pcufix-search-button:hover {
    background: #135e96;
}

.pcu-ai-search-button .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.pcu-ai-search-results {
    margin-top: 20px;
}

.pcu-ai-result-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pcu-ai-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pcu-ai-result-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.pcu-ai-result-title a {
    color: #135e96;
    text-decoration: none;
}

.pcu-ai-result-content {
    margin: 0 0 10px 0;
    color: #444;
    line-height: 1.6;
}

.pcu-ai-result-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.pcufix-similarity {
    background: #f0f6fc;
    color: #135e96;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.pcu-ai-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
}

.pcu-ai-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: pcufix-spin 1s linear infinite;
    margin-right: 10px;
}

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

.pcu-ai-no-results {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}
