/* ===== SEARCH SIMULATION STYLES ===== */

/* Search Progress Container */
.search-progress-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.search-progress-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

/* Search Header */
.search-header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.search-query {
    color: #3b82f6;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Timer */
.search-timer {
    margin-top: 1.5rem;
}

.timer-circle {
    width: 100px;
    height: 100px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: spin 2s linear infinite;
    position: relative;
}

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

.timer-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
}

/* Search Steps */
.search-steps {
    margin: 3rem 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.step.active {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    opacity: 1;
}

.step i {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
}

.step.active i {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.step span {
    flex: 1;
    font-weight: 500;
    color: #64748b;
}

.step.active span {
    color: #1e40af;
}

.step-loader {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
}

.step.active .step-loader {
    opacity: 1;
}

/* Blurred Preview */
.blurred-preview {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.blurred-preview h4 {
    color: #64748b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.preview-items {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.preview-item.blurred {
    filter: blur(3px);
    opacity: 0.7;
}

.preview-item i {
    color: #64748b;
    width: 20px;
}

.preview-note {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.countdown {
    color: #3b82f6;
    font-weight: 600;
}

/* Search Results */
.search-results-container {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.results-header h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.results-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.result-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.result-title h4 {
    color: #1e40af;
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
}

.confidence {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Result Details */
.result-details {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.detail-item i {
    color: #64748b;
    width: 20px;
    font-size: 0.9rem;
}

.detail-label {
    font-weight: 500;
    color: #374151;
    min-width: 80px;
}

.detail-value {
    color: #1e40af;
    font-weight: 500;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-small.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
}

.btn-small.btn-secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-small.btn-secondary:hover {
    background: #f8fafc;
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Results Actions */
.results-actions {
    text-align: center;
    margin-top: 3rem;
}

.results-actions .btn {
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-progress-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .timer-circle {
        width: 80px;
        height: 80px;
    }
    
    .timer-text {
        font-size: 1.25rem;
    }
    
    .step {
        padding: 0.75rem;
    }
    
    .step i {
        width: 35px;
        height: 35px;
    }
    
    .blurred-preview {
        padding: 1.5rem;
    }
    
    .result-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .results-actions .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 3px;
    animation: progressFill 30s linear;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Notification Styles */
.search-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Blur Effect */
.enhanced-blur {
    filter: blur(4px) brightness(0.8);
    transition: filter 0.3s ease;
}

.enhanced-blur:hover {
    filter: blur(2px) brightness(0.9);
}

/* Shimmer Effect for Loading */
.shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
