/* CSS Variables for theming */
:root {
  /* Colors - Dark theme by default */
  --color-bg-primary: #0a0a0b;
  --color-bg-secondary: #111113;
  --color-bg-tertiary: #1a1a1d;
  --color-bg-card: #18181b;

  --color-text-primary: #fafafa;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;

  --color-accent: #f97316;
  --color-accent-hover: #ea580c;
  --color-accent-muted: rgba(249, 115, 22, 0.15);

  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #22d3ee;

  --color-border: #27272a;
  --color-border-hover: #3f3f46;

  /* Platform colors */
  --color-twitter: #1da1f2;
  --color-facebook: #1877f2;
  --color-instagram: #e4405f;
  --color-linkedin: #0a66c2;
  --color-reddit: #ff4500;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Andale Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  /* Focus ring */
  --focus-ring: 0 0 0 2px var(--color-bg-primary), 0 0 0 4px var(--color-accent);
}

/* Light theme - System preference */
@media (prefers-color-scheme: light) {
  :root {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #fafafa;
    --color-bg-tertiary: #f5f5f5;
    --color-bg-card: #ffffff;

    --color-text-primary: #171717;
    --color-text-secondary: #404040;
    --color-text-muted: #737373;

    --color-border: #e5e5e5;
    --color-border-hover: #d4d4d4;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
}

/* Manual theme override - Dark */
.theme-dark {
  --color-bg-primary: #0a0a0b;
  --color-bg-secondary: #111113;
  --color-bg-tertiary: #1a1a1d;
  --color-bg-card: #18181b;

  --color-text-primary: #fafafa;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;

  --color-border: #27272a;
  --color-border-hover: #3f3f46;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Manual theme override - Light */
.theme-light {
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #fafafa;
  --color-bg-tertiary: #f5f5f5;
  --color-bg-card: #ffffff;

  --color-text-primary: #171717;
  --color-text-secondary: #404040;
  --color-text-muted: #737373;

  --color-border: #e5e5e5;
  --color-border-hover: #d4d4d4;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-bg-primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
  outline: none;
}

/* Visually hidden for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header */
.header {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.logo-icon {
  color: var(--color-accent);
}

.tagline {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

/* Main content */
.main {
  flex: 1;
  padding: var(--space-2xl) 0;
}

/* Hero section */
.hero {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.hero-description {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* Monitor form */
.monitor-form {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.form-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-weight: 500;
  color: var(--color-text-primary);
}

.required {
  color: var(--color-error);
}

.form-group input {
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:hover {
  border-color: var(--color-border-hover);
}

.form-group input:focus {
  border-color: var(--color-accent);
  box-shadow: var(--focus-ring);
}

.form-group input::placeholder {
  color: var(--color-text-muted);
}

.input-help {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  min-width: 160px;
  min-height: 44px;
  width: 100%;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loading {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loading {
  display: block;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

/* Error message */
.error-message {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  color: var(--color-error);
  font-size: 0.875rem;
  text-align: center;
}

/* Results section */
.results {
  margin-top: var(--space-2xl);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  color: var(--color-text-primary);
}

/* Alerts */
.alerts-container {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-warning);
  border-radius: var(--radius-lg);
}

.alerts-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-warning);
  margin-bottom: var(--space-md);
}

.alert-icon {
  width: 24px;
  height: 24px;
}

.alerts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.alert-item.high {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
}

.alert-item.medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.alert-item.low {
  background: rgba(34, 211, 238, 0.15);
  color: var(--color-info);
}

.alert-severity {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  background: currentColor;
  color: var(--color-bg-primary);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  padding: var(--space-sm);
  background: var(--color-accent-muted);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.positive-card .stat-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
}

.negative-card .stat-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Tabs */
.tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.tab {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  min-height: 44px;
}

.tab:hover {
  color: var(--color-text-primary);
}

.tab:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Tab panels */
.tab-panel {
  animation: fadeIn var(--transition-normal);
}

.tab-panel[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Overview cards */
.overview-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.overview-card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.overview-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

/* Sentiment bars */
.sentiment-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sentiment-bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  align-items: center;
  gap: var(--space-md);
}

.sentiment-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.sentiment-label.positive { color: var(--color-success); }
.sentiment-label.neutral { color: var(--color-text-secondary); }
.sentiment-label.negative { color: var(--color-error); }

.sentiment-bar-container {
  height: 24px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sentiment-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

.sentiment-bar.positive { background: var(--color-success); }
.sentiment-bar.neutral { background: var(--color-text-muted); }
.sentiment-bar.negative { background: var(--color-error); }

.sentiment-value {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
}

/* Platform chart */
.platform-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.platform-row {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items: center;
  gap: var(--space-md);
}

.platform-name {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.platform-bar-container {
  height: 20px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.platform-bar {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.5s ease-out;
}

.platform-bar.twitter { background: var(--color-twitter); }
.platform-bar.facebook { background: var(--color-facebook); }
.platform-bar.instagram { background: var(--color-instagram); }
.platform-bar.linkedin { background: var(--color-linkedin); }
.platform-bar.reddit { background: var(--color-reddit); }

.platform-count {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
}

/* Keywords cloud */
.keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent-muted);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

.keyword-count {
  background: var(--color-accent);
  color: var(--color-bg-primary);
  padding: 0 var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

/* Hashtags list */
.hashtags-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hashtag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.hashtag-row:last-child {
  border-bottom: none;
}

.hashtag-name {
  color: var(--color-info);
  font-weight: 500;
}

.hashtag-count {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Mentions filter */
.mentions-filter {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-select {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 44px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--focus-ring);
}

/* Mentions list */
.mentions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mention-item {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-border);
}

.mention-item.positive { border-left-color: var(--color-success); }
.mention-item.neutral { border-left-color: var(--color-text-muted); }
.mention-item.negative { border-left-color: var(--color-error); }

.mention-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.mention-author {
  display: flex;
  flex-direction: column;
}

.mention-name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.mention-handle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.mention-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.mention-platform {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.mention-platform.twitter { background: rgba(29, 161, 242, 0.2); color: var(--color-twitter); }
.mention-platform.facebook { background: rgba(24, 119, 242, 0.2); color: var(--color-facebook); }
.mention-platform.instagram { background: rgba(228, 64, 95, 0.2); color: var(--color-instagram); }
.mention-platform.linkedin { background: rgba(10, 102, 194, 0.2); color: var(--color-linkedin); }
.mention-platform.reddit { background: rgba(255, 69, 0, 0.2); color: var(--color-reddit); }

.mention-sentiment {
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.mention-sentiment.positive { background: rgba(34, 197, 94, 0.15); color: var(--color-success); }
.mention-sentiment.neutral { background: rgba(113, 113, 122, 0.15); color: var(--color-text-secondary); }
.mention-sentiment.negative { background: rgba(239, 68, 68, 0.15); color: var(--color-error); }

.mention-content {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.mention-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.mention-stats {
  display: flex;
  gap: var(--space-md);
}

.mention-stat {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.mention-stat svg {
  width: 14px;
  height: 14px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.page-btn {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.page-btn:hover {
  border-color: var(--color-border-hover);
}

.page-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Trend charts */
.trend-card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.trend-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.chart-container {
  height: 200px;
  position: relative;
}

/* SVG Chart styles */
.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
}

.chart-area {
  fill: var(--color-accent-muted);
}

.chart-dot {
  fill: var(--color-accent);
}

.chart-grid-line {
  stroke: var(--color-border);
  stroke-dasharray: 4;
}

.chart-axis-label {
  fill: var(--color-text-muted);
  font-size: 10px;
}

.chart-bar {
  fill: var(--color-accent);
}

/* Competitor chart */
.competitor-card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.competitor-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.competitor-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.competitor-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-md);
  align-items: center;
}

.competitor-name {
  font-weight: 500;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-name.brand {
  color: var(--color-accent);
}

.competitor-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.competitor-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.competitor-bar-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  min-width: 70px;
}

.competitor-bar-container {
  flex: 1;
  height: 16px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.competitor-bar {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.5s ease-out;
}

.competitor-bar.mentions {
  background: var(--color-info);
}

.competitor-bar.sentiment {
  background: var(--color-success);
}

.competitor-bar-value {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

.competitor-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.competitor-detail-card {
  padding: var(--space-lg);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  text-align: center;
}

.competitor-detail-card h5 {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.competitor-detail-card .value {
  font-size: 1.5rem;
  font-weight: 700;
}

.competitor-detail-card .value.positive {
  color: var(--color-success);
}

.competitor-detail-card .value.negative {
  color: var(--color-error);
}

/* Features section */
.features {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--color-accent);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.footer-note {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  margin-top: var(--space-sm);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

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

  .overview-row {
    grid-template-columns: 1fr;
  }

  .competitor-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .tabs {
    justify-content: flex-start;
    padding-bottom: var(--space-sm);
  }

  .mentions-filter {
    flex-direction: column;
  }

  .filter-select {
    width: 100%;
  }
}

/* Theme switcher */
.theme-switcher {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.theme-btn {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  min-height: 44px;
}

.theme-btn:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-accent);
}

.theme-btn[aria-pressed="true"] {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
  font-weight: 600;
}

/* Print styles */
@media print {
  .skip-link,
  .monitor-form,
  .tabs,
  .features,
  .footer,
  .mentions-filter,
  .pagination,
  .theme-switcher {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .stat-card,
  .overview-card,
  .mention-item,
  .trend-card,
  .competitor-card {
    background: white;
    border: 1px solid #ccc;
  }
}
