/* Social Listening Styles */

.social-listening-page,
.competitor-analysis-page {
  max-width: 1400px;
  margin: 0 auto;
}

/* Sentiment Overview */
.sentiment-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.sentiment-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.2s ease;
}

.sentiment-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.sentiment-card.sentiment-positive {
  border-color: rgba(16, 185, 129, 0.3);
}

.sentiment-card.sentiment-neutral {
  border-color: rgba(59, 130, 246, 0.3);
}

.sentiment-card.sentiment-negative {
  border-color: rgba(239, 68, 68, 0.3);
}

.sentiment-icon {
  font-size: 3rem;
}

.sentiment-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sentiment-percentage {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.sentiment-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Content Grid */
.listening-content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 24px;
}

.listening-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.mention-count {
  padding: 4px 12px;
  background: rgba(167, 139, 250, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #a78bfa;
  font-weight: 600;
}

/* Mentions List */
.mentions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mention-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mention-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 139, 250, 0.4);
}

.mention-card.sentiment-positive {
  border-left: 3px solid rgba(16, 185, 129, 0.6);
}

.mention-card.sentiment-neutral {
  border-left: 3px solid rgba(59, 130, 246, 0.6);
}

.mention-card.sentiment-negative {
  border-left: 3px solid rgba(239, 68, 68, 0.6);
}

.mention-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mention-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.author-name {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.mention-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sentiment-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
}

.sentiment-badge.sentiment-positive {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sentiment-badge.sentiment-neutral {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.sentiment-badge.sentiment-negative {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.mention-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

.mention-content {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.mention-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.engagement-stat {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.mention-actions {
  display: flex;
  gap: 12px;
}

.btn-link-small {
  background: none;
  border: none;
  color: rgba(167, 139, 250, 0.8);
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-link-small:hover {
  color: #a78bfa;
}

/* Sidebar */
.listening-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
}

.sidebar-widget h3 {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Keywords */
.keywords-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.keyword-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.keyword-text {
  color: #a78bfa;
  font-size: 0.875rem;
  font-weight: 600;
}

.keyword-count {
  padding: 2px 8px;
  background: rgba(167, 139, 250, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #a78bfa;
  font-weight: 600;
}

/* Competitor Activity */
.competitor-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.competitor-mention {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.competitor-name-badge {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(233, 69, 96, 0.2);
  border-radius: 4px;
  font-size: 0.7rem;
  color: #e94560;
  font-weight: 600;
  margin-bottom: 6px;
}

.mention-preview {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0 0 4px 0;
}

.mention-time-small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

.widget-link {
  color: #a78bfa;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.widget-link:hover {
  color: #c4b5fd;
}

/* Filters */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.filter-checkbox input {
  cursor: pointer;
}

.filter-checkbox span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Competitor Analysis Page */
.benchmark-overview {
  margin-bottom: 32px;
}

.your-benchmark-card {
  padding: 32px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(233, 69, 96, 0.2) 100%);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 12px;
  text-align: center;
}

.benchmark-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.your-benchmark-card h2 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.benchmark-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.benchmark-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-change {
  font-size: 0.875rem;
  font-weight: 600;
}

.stat-change.trend-up {
  color: #34d399;
}

.stat-change.trend-down {
  color: #ef4444;
}

.sentiment-breakdown-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.sentiment-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.sentiment-positive {
  background: #34d399;
}

.sentiment-neutral {
  background: #60a5fa;
}

.sentiment-negative {
  background: #ef4444;
}

.sentiment-labels-mini {
  display: flex;
  justify-content: center;
}

.positive-label {
  color: #34d399;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Competitors Section */
.competitors-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px;
}

.competitors-section h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.competitors-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.competitor-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.competitor-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 139, 250, 0.4);
}

.competitor-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  min-width: 50px;
}

.competitor-info {
  flex: 1;
}

.competitor-name {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.competitor-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.comp-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comp-stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comp-stat-value {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.sentiment-breakdown-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sentiment-bar-compact {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.sentiment-primary {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.competitor-actions {
  display: flex;
  align-items: center;
}

.add-competitor-section {
  text-align: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.help-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 12px 0 0 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .listening-content-grid {
    grid-template-columns: 1fr;
  }

  .listening-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .sentiment-overview {
    grid-template-columns: 1fr;
  }

  .benchmark-stats {
    flex-direction: column;
    gap: 24px;
  }

  .competitor-stats-grid {
    grid-template-columns: 1fr;
  }

  .competitor-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

