/* ==========================================
   AI PRICE PREDICTOR WIDGET STYLES
   ========================================== */

.ai-price-predictor-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-price-predictor-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.ai-price-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.ai-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ai-price-header h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: white;
}

.ai-price-header p {
    font-size: 0.875rem;
    opacity: 0.95;
    margin: 0;
}

.price-loading {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.price-loading p {
    font-size: 0.875rem;
    opacity: 0.9;
}

#priceContentState {
    position: relative;
    z-index: 1;
}

.price-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.price-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.price-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.price-label i {
    font-size: 1.125rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.price-info {
    text-align: right;
}

.price-date {
    font-size: 0.8125rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.price-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.price-badge.positive {
    background: #10B981;
    color: white;
}

.price-badge.negative {
    background: #EF4444;
    color: white;
}

.price-tonight {
    border-left: 4px solid #60A5FA;
}

.price-tomorrow {
    border-left: 4px solid #FBBF24;
}

.price-best {
    border-left: 4px solid #10B981;
    background: rgba(16, 185, 129, 0.2);
}

.ai-insights {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.insights-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.insights-header i {
    color: #FBBF24;
}

.insight-item {
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-item i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.ai-recommendation {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.3) 100%);
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ai-recommendation i {
    font-size: 1.125rem;
}

.ai-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ai-price-predictor-card {
        padding: 1.25rem;
    }
    
    .price-value {
        font-size: 1.25rem;
    }
    
    .price-label {
        font-size: 0.875rem;
    }
    
    .insight-item {
        font-size: 0.8125rem;
    }
}