
/* Swarm Score Hero Section */
.swarm-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 16px;
  padding: 28px;
  margin: 0 0 24px 0;
  color: white;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.swarm-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 20px;
}

.swarm-title-group {
  flex: 1;
}

.swarm-hero-title {
  margin: 0 0 6px 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.swarm-hero-tagline {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.swarm-meta-info {
  text-align: right;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.swarm-updated {
  display: block;
  margin-bottom: 4px;
}

.swarm-methodology {
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* Top Three Trends */
.swarm-top-three {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.swarm-trend {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid transparent;
  transition: transform 0.2s, background 0.2s;
}

.swarm-trend:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(4px);
}

.swarm-trend.viral { border-left-color: #ff0000; }
.swarm-trend.scorching { border-left-color: #e74c3c; }
.swarm-trend.buzzing { border-left-color: #f39c12; }
.swarm-trend.heating { border-left-color: #3498db; }
.swarm-trend.moderate { border-left-color: #2ecc71; }
.swarm-trend.quiet { border-left-color: #95a5a6; }

.trend-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trend-rank {
  font-size: 32px;
  font-weight: 800;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  min-width: 40px;
}

.trend-content {
  flex: 1;
}

.trend-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.trend-emoji {
  font-size: 20px;
}

.trend-topic {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
}

.trend-score {
  font-size: 26px;
  font-weight: 800;
}

/* Progress Bar */
.trend-bar-container {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.trend-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Details Row */
.trend-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.trend-platforms {
  display: flex;
  gap: 16px;
  color: rgba(255,255,255,0.6);
}

.trend-platforms span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-sparkline-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sparkline {
  display: inline-block;
}

.sparkline polyline {
  stroke: currentColor;
}

.sparkline.trend-up polyline { stroke: #2ecc71; }
.sparkline.trend-down polyline { stroke: #e74c3c; }
.sparkline.trend-flat polyline { stroke: #95a5a6; }

.trend-direction {
  font-weight: 600;
  font-size: 12px;
}

.trend-direction.trend-up { color: #2ecc71; }
.trend-direction.trend-down { color: #e74c3c; }
.trend-direction.trend-flat { color: #95a5a6; }

/* Footer */
.swarm-hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.swarm-cta {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.swarm-cta:hover {
  color: #5dade2;
}

.swarm-count {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .swarm-hero {
    padding: 20px;
  }
  
  .swarm-hero-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .swarm-meta-info {
    text-align: left;
  }
  
  .trend-rank {
    font-size: 24px;
    min-width: 30px;
  }
  
  .trend-score {
    font-size: 20px;
  }
  
  .trend-details {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .swarm-hero-footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
