/**
 * AI UI Components Styles
 *
 * Стили для AI индикаторов, badges и панелей
 */

/* AI Valuation Indicator */
.ai-valuation-indicator {
    animation: none;
}

body.future .ai-valuation-indicator {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Discovery Badge */
.discovery-badge {
    position: relative;
    overflow: hidden;
}

.discovery-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    display: none;
    animation: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Low Liquidity Warning */
.low-liquidity-warning {
    animation: none;
}

body.future .low-liquidity-warning {
    animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% {
        border-color: #ff6400;
    }
    50% {
        border-color: #ff9944;
    }
}

/* AI Insights Panel */
.ai-insights-panel {
    background: rgba(169, 221, 211, 0.05);
    border: 1px solid rgba(169, 221, 211, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.ai-insights-panel h3 {
    color: #a9ddd3;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-insights-panel .insight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(169, 221, 211, 0.1);
}

.ai-insights-panel .insight:last-child {
    border-bottom: none;
}

.ai-insights-panel .insight span:first-child {
    color: #a9ddd3;
    font-size: 14px;
}

.ai-insights-panel .insight .value {
    color: #a9ddd3;
    font-weight: 600;
    font-size: 14px;
}

.ai-insights-panel .insight .value.positive {
    color: #00ff88;
}

.ai-insights-panel .insight .value.negative {
    color: #ff6400;
}

.ai-insights-panel .insight .value.neutral {
    color: #a9ddd3;
}

/* Confidence Badge */
.confidence-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.confidence-badge.high {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.confidence-badge.medium {
    background: rgba(169, 221, 211, 0.2);
    color: #a9ddd3;
    border: 1px solid #a9ddd3;
}

.confidence-badge.low {
    background: rgba(255, 100, 0, 0.2);
    color: #ff6400;
    border: 1px solid #ff6400;
}

/* Auction Type Badge */
.auction-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.auction-type-badge.primary {
    background: rgba(169, 221, 211, 0.1);
    color: #a9ddd3;
    border: 1px solid #a9ddd3;
}

.auction-type-badge.discovery {
    background: rgba(169, 221, 211, 0.1);
    color: #a9ddd3;
    border: 1px solid #a9ddd3;
}

/* AI Floor Display */
.ai-floor-display {
    background: rgba(169, 221, 211, 0.05);
    border: 1px solid #a9ddd3;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-floor-display .label {
    color: #a9ddd3;
    font-size: 14px;
}

.ai-floor-display .value {
    color: #a9ddd3;
    font-size: 18px;
    font-weight: 700;
}

/* Loading Spinner for AI */
.ai-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(169, 221, 211, 0.3);
    border-top-color: #a9ddd3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* AI Status Indicator */
.ai-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ai-status.evaluating {
    background: rgba(169, 221, 211, 0.1);
    color: #a9ddd3;
    border: 1px solid #a9ddd3;
}

.ai-status.complete {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid #00ff88;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-insights-panel {
        padding: 16px;
    }

    .ai-insights-panel h3 {
        font-size: 16px;
    }

    .ai-insights-panel .insight {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ai-floor-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Dark mode adjustments */
body.future .ai-insights-panel {
    background: rgba(0, 245, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.3);
}

body.future .ai-insights-panel h3 {
    color: #00f5ff;
}

body.future .ai-insights-panel .insight .value {
    color: #00f5ff;
}

body.future .discovery-badge::before {
    display: block;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

body.future .confidence-badge.medium {
    background: rgba(0, 245, 255, 0.2);
    color: #00f5ff;
    border-color: #00f5ff;
}

body.future .auction-type-badge.discovery {
    background: rgba(191, 0, 255, 0.1);
    color: #bf00ff;
    border-color: #bf00ff;
}

body.future .ai-floor-display {
    background: linear-gradient(135deg, rgba(191, 0, 255, 0.1), rgba(0, 245, 255, 0.1));
    border-color: #bf00ff;
}

body.future .ai-floor-display .value {
    color: #bf00ff;
}

body.future .ai-loading {
    border-color: rgba(191, 0, 255, 0.3);
    border-top-color: #bf00ff;
}

body.future .ai-status.evaluating {
    background: rgba(191, 0, 255, 0.1);
    color: #bf00ff;
    border-color: #bf00ff;
}
