/* ============================================================================
   TWO-PHASE RAG SEARCH - CSS ADDITIONS
   ============================================================================
   Add these styles to your assets/css/styles.css file
   ============================================================================ */

/* Blog searching indicator */
.blog-searching {
    background: #EEF2FF;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--color-gold);
    display: none;
}

.searching-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.searching-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Update notification */
.update-notification {
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
    display: none;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Source badges */
.source-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 8px;
}

.source-badge-website {
    background: #EEF2FF;
    color: #0F172A;
}

.source-badge-blog {
    background: #FFF9E6;
    color: #B8941F;
}

/* New source highlight animation */
.source-item.source-new {
    animation: highlight 2s ease-out;
    border-color: var(--color-gold);
}

@keyframes highlight {
    0% { background: #FFF9E6; }
    100% { background: white; }
}

/* Loading spinner */
.spinner {
    border: 4px solid #E5E7EB;
    border-top: 4px solid var(--color-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #4b5563;
}

/* Error state */
.error-state {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 8px;
    padding: 20px;
    color: #991B1B;
    margin-bottom: 20px;
}

.error-state a {
    color: #991B1B;
    text-decoration: underline;
}