/* Business Trend Analysis Interface Styles */

/* Trend Highlighting */
.trend-highlight {
  background: linear-gradient(120deg, #ffd700 0%, #ffed4e 100%);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.trend-highlight:hover {
  background: linear-gradient(120deg, #ffed4e 0%, #ffd700 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Time Markers */
.time-marker {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: 500;
  display: inline-block;
  margin: 0 2px;
  box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
  transition: all 0.2s ease;
}

.time-marker:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

/* Trend Analysis Specific Styles */
.trend-analysis-container {
  position: relative;
}

.trend-analysis-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.trend-analysis-header h2 {
  margin: 0;
  font-size: 1.5em;
  font-weight: 600;
}

.trend-analysis-header .subtitle {
  margin-top: 8px;
  opacity: 0.9;
  font-size: 0.95em;
}

/* Trend Categories */
.trend-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.trend-category-tag {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(240, 147, 251, 0.3);
  transition: all 0.2s ease;
}

.trend-category-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(240, 147, 251, 0.4);
}

.trend-category-tag::before {
  content: "📈";
  font-size: 1em;
}

/* Analysis Scope Indicators */
.analysis-scope-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  margin: 4px;
}

.analysis-scope-global {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.analysis-scope-regional {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.analysis-scope-national {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.analysis-scope-local {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
}

.analysis-scope-segment {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #333;
}

/* Time Horizon Indicators */
.time-horizon-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  margin: 4px;
}

.time-horizon-short {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: #333;
}

.time-horizon-medium {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
}

.time-horizon-long {
  background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
  color: #333;
}

.time-horizon-strategic {
  background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  color: white;
}

/* Risk Tolerance Indicators */
.risk-tolerance-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 500;
  margin: 4px;
}

.risk-tolerance-conservative {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.risk-tolerance-moderate {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.risk-tolerance-aggressive {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #333;
}

/* Trend Analysis Results */
.trend-analysis-results {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  border-left: 4px solid #667eea;
}

.trend-analysis-section {
  margin-bottom: 24px;
  padding: 16px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 3px solid #667eea;
}

.trend-analysis-section h3 {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 1.2em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-analysis-section h3::before {
  content: "📊";
  font-size: 1.2em;
}

.trend-analysis-section p {
  margin: 8px 0;
  line-height: 1.6;
  color: #555;
}

/* Trend Charts and Visualizations */
.trend-chart-container {
  margin: 16px 0;
  padding: 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.trend-chart-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-chart-title::before {
  content: "📈";
  font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .trend-categories {
    flex-direction: column;
  }
  
  .trend-category-tag {
    width: 100%;
    justify-content: center;
  }
  
  .analysis-scope-indicator,
  .time-horizon-indicator,
  .risk-tolerance-indicator {
    font-size: 0.8em;
    padding: 3px 6px;
  }
  
  .trend-analysis-header {
    padding: 16px;
  }
  
  .trend-analysis-header h2 {
    font-size: 1.3em;
  }
  
  .trend-analysis-results {
    padding: 16px;
  }
  
  .trend-analysis-section {
    padding: 12px;
  }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
  .trend-analysis-results {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .trend-analysis-section {
    background: #4a5568;
    color: #e2e8f0;
  }
  
  .trend-analysis-section h3 {
    color: #f7fafc;
  }
  
  .trend-analysis-section p {
    color: #cbd5e0;
  }
  
  .trend-chart-container {
    background: #4a5568;
    border-color: #718096;
  }
  
  .trend-chart-title {
    color: #f7fafc;
  }
  
  .trend-highlight {
    background: linear-gradient(120deg, #d69e2e 0%, #f6e05e 100%);
    color: #2d3748;
  }
  
  .time-marker {
    background: linear-gradient(135deg, #805ad5 0%, #553c9a 100%);
  }
}

/* Animation Effects */
@keyframes trendPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.trend-highlight.animated {
  animation: trendPulse 2s ease-in-out infinite;
}

/* Loading States */
.trend-analysis-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #667eea;
}

.trend-analysis-loading::before {
  content: "📊";
  font-size: 2em;
  margin-right: 12px;
  animation: trendPulse 1.5s ease-in-out infinite;
}

/* Error States */
.trend-analysis-error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  padding: 16px;
  border-radius: 6px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trend-analysis-error::before {
  content: "⚠️";
  font-size: 1.5em;
}

/* Success States */
.trend-analysis-success {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
  color: white;
  padding: 16px;
  border-radius: 6px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trend-analysis-success::before {
  content: "✅";
  font-size: 1.5em;
} 