/**
 * ProRank Design System - Analytics Feature Styles
 * 
 * Styles specific to analytics pages including performance tracking,
 * Core Web Vitals, GSC integration, and reporting features.
 * 
 * @module features/analytics
 * @since 3.0.0
 */

/* ============================================
   CHART COLOR VARIABLES
   Consistent chart colors using design tokens
   ============================================ */

:root {
  --prorank-chart-lcp: var(--prorank-error);
  --prorank-chart-inp: var(--prorank-secondary);
  --prorank-chart-cls: var(--prorank-warning);
  --prorank-chart-fcp: var(--prorank-success);
  --prorank-chart-ttfb: var(--prorank-primary);
}

/* ============================================
   ANALYTICS LAYOUT
   Main analytics page structure
   ============================================ */

.prorank-analytics-page {
  padding: 0;
  background: #f5f5f5;
  min-height: 100vh;
}

.prorank-analytics-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.prorank-analytics-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--prorank-text);
  margin: 0;
}

.prorank-analytics-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ============================================
   DATE RANGE PICKER
   Analytics date selection
   ============================================ */

.prorank-date-range-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  padding: 8px 12px;
}

.prorank-date-range-label {
  font-size: 14px;
  color: var(--prorank-text-secondary);
}

.prorank-date-range-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--prorank-text);
}

.prorank-date-range-icon {
  margin-left: 4px;
  color: var(--prorank-text-tertiary);
}

/* ============================================
   PERFORMANCE METRICS
   Key performance indicators display
   ============================================ */

.prorank-performance-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.prorank-performance-metric {
  background: white;
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  padding: 24px;
  position: relative;
}

.prorank-performance-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.prorank-performance-metric-title {
  font-size: 14px;
  color: var(--prorank-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.prorank-performance-metric-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.prorank-performance-metric-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--prorank-text);
  line-height: 1;
  margin-bottom: 12px;
}

.prorank-performance-metric-comparison {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.prorank-performance-metric-trend {
  display: flex;
  align-items: center;
  gap: 4px;
}

.prorank-performance-metric-trend--up {
  color: var(--prorank-success);
}

.prorank-performance-metric-trend--down {
  color: var(--prorank-error);
}

/* ============================================
   CORE WEB VITALS
   CWV specific displays
   ============================================ */

.prorank-cwv-dashboard {
  background: white;
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius);
  padding: 24px;
  margin-bottom: 32px;
}

.prorank-cwv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--prorank-border-light);
}

.prorank-cwv-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--prorank-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.prorank-cwv-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prorank-cwv-metric {
  text-align: center;
  padding: 20px;
  border-radius: var(--prorank-radius-sm);
  background: var(--prorank-bg-secondary);
  position: relative;
}

.prorank-cwv-metric-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--prorank-text-secondary);
  margin-bottom: 8px;
}

.prorank-cwv-metric-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.prorank-cwv-metric-unit {
  font-size: 14px;
  color: var(--prorank-text-tertiary);
}

.prorank-cwv-metric-status {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* CWV Status Colors */
.prorank-cwv-metric--good {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.prorank-cwv-metric--good .prorank-cwv-metric-value {
  color: #0f9d58;
}

.prorank-cwv-metric--good .prorank-cwv-metric-status {
  background: #0f9d58;
}

.prorank-cwv-metric--needs-improvement {
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.prorank-cwv-metric--needs-improvement .prorank-cwv-metric-value {
  color: #ffa400;
}

.prorank-cwv-metric--needs-improvement .prorank-cwv-metric-status {
  background: #ffa400;
}

.prorank-cwv-metric--poor {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.prorank-cwv-metric--poor .prorank-cwv-metric-value {
  color: #ff4e42;
}

.prorank-cwv-metric--poor .prorank-cwv-metric-status {
  background: #ff4e42;
}

/* ============================================
   ANALYTICS CHARTS
   Chart containers and controls
   ============================================ */

.prorank-analytics-chart {
  background: white;
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.prorank-analytics-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.prorank-analytics-chart-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--prorank-text);
}

.prorank-analytics-chart-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--prorank-border-light);
}

.prorank-analytics-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--prorank-text-secondary);
}

.prorank-analytics-chart-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* ============================================
   TRAFFIC SOURCES
   Traffic source breakdown
   ============================================ */

.prorank-traffic-sources {
  background: white;
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  overflow: hidden;
}

.prorank-traffic-sources-header {
  padding: 20px;
  background: var(--prorank-bg-secondary);
  border-bottom: 1px solid var(--prorank-border);
}

.prorank-traffic-sources-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--prorank-text);
  margin: 0;
}

.prorank-traffic-source-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.prorank-traffic-source-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--prorank-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prorank-traffic-source-item:last-child {
  border-bottom: none;
}

.prorank-traffic-source-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prorank-traffic-source-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--prorank-bg-tertiary);
  border-radius: 50%;
  font-size: 16px;
}

.prorank-traffic-source-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--prorank-text);
}

.prorank-traffic-source-metrics {
  display: flex;
  gap: 24px;
  align-items: center;
}

.prorank-traffic-source-metric {
  text-align: right;
}

.prorank-traffic-source-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--prorank-text);
}

.prorank-traffic-source-label {
  font-size: 12px;
  color: var(--prorank-text-tertiary);
}

/* ============================================
   KEYWORD RANKINGS
   Keyword performance display
   ============================================ */

.prorank-keyword-rankings {
  background: white;
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  overflow: hidden;
}

.prorank-keyword-rankings-header {
  padding: 20px;
  background: var(--prorank-bg-secondary);
  border-bottom: 1px solid var(--prorank-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prorank-keyword-search {
  position: relative;
  width: 300px;
}

.prorank-keyword-search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--prorank-border);
  border-radius: 4px;
  font-size: 14px;
}

.prorank-keyword-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--prorank-text-tertiary);
}

/* ============================================
   COMPARISON VIEW
   Period over period comparisons
   ============================================ */

.prorank-comparison-view {
  background: white;
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  padding: 24px;
}

.prorank-comparison-periods {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.prorank-comparison-period {
  text-align: center;
  padding: 20px;
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius-sm);
}

.prorank-comparison-period-label {
  font-size: 12px;
  color: var(--prorank-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.prorank-comparison-period-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--prorank-text);
}

.prorank-comparison-vs {
  font-size: 14px;
  color: var(--prorank-text-tertiary);
  font-weight: 600;
}

/* ============================================
   EXPORT CONTROLS
   Data export options
   ============================================ */

.prorank-export-controls {
  display: flex;
  gap: 8px;
}

.prorank-export-button {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--prorank-border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--prorank-text);
  cursor: pointer;
  transition: var(--prorank-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.prorank-export-button:hover {
  background: var(--prorank-bg-secondary);
  border-color: var(--prorank-primary);
}

.prorank-export-button-icon {
  font-size: 16px;
}

/* ============================================
   AI OVERVIEWS DASHBOARD
   Styles for AI Overviews monitoring feature
   ============================================ */

.prorank-ai-metric-card {
  background: linear-gradient(135deg, var(--prorank-bg) 0%, var(--prorank-bg-secondary) 100%);
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius);
  padding: var(--prorank-space-lg);
  position: relative;
  overflow: hidden;
  transition: var(--prorank-transition);
}

.prorank-ai-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--prorank-shadow-lg);
}

.prorank-ai-metric-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.prorank-ai-metric-card-accent--primary {
  background: linear-gradient(90deg, var(--prorank-primary) 0%, var(--prorank-primary-light) 100%);
}

.prorank-ai-metric-card-accent--success {
  background: linear-gradient(90deg, var(--prorank-success) 0%, #10b981dd 100%);
}

.prorank-ai-metric-card-accent--warning {
  background: linear-gradient(90deg, var(--prorank-warning) 0%, #fbbf24dd 100%);
}

.prorank-ai-metric-card-accent--error {
  background: linear-gradient(90deg, var(--prorank-error) 0%, #ef4444dd 100%);
}

.prorank-ai-metric-card-content {
  position: relative;
}

.prorank-ai-metric-title {
  color: var(--prorank-text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--prorank-space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prorank-ai-metric-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--prorank-space-xs);
}

.prorank-ai-metric-value--primary {
  color: var(--prorank-primary);
}

.prorank-ai-metric-value--success {
  color: var(--prorank-success);
}

.prorank-ai-metric-value--warning {
  color: var(--prorank-warning);
}

.prorank-ai-metric-value--error {
  color: var(--prorank-error);
}

.prorank-ai-metric-value--secondary {
  color: var(--prorank-text-secondary);
}

.prorank-ai-metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--prorank-space-sm);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.prorank-ai-metric-trend--up {
  background: rgba(16, 185, 129, 0.1);
  color: var(--prorank-success);
}

.prorank-ai-metric-trend--down {
  background: rgba(239, 68, 68, 0.1);
  color: var(--prorank-error);
}

.prorank-ai-metric-trend--stable {
  background: rgba(107, 114, 128, 0.1);
  color: var(--prorank-text-secondary);
}

.prorank-ai-metric-subtext {
  color: var(--prorank-text-tertiary);
  font-size: 12px;
  margin-top: var(--prorank-space-sm);
}

/* AI Overviews Empty State */
.prorank-ai-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--prorank-bg-secondary) 0%, var(--prorank-bg-tertiary) 100%);
  border-radius: var(--prorank-radius-lg);
  border: 1px solid var(--prorank-border);
}

.prorank-ai-empty-icon {
  font-size: 48px;
  margin-bottom: var(--prorank-space-md);
}

.prorank-ai-empty-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--prorank-text);
  margin-bottom: var(--prorank-space-sm);
}

.prorank-ai-empty-description {
  color: var(--prorank-text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* AI Platform Grid */
.prorank-ai-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--prorank-space-md);
  margin-top: var(--prorank-space-lg);
}

.prorank-ai-platform-card {
  background: var(--prorank-bg);
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  padding: var(--prorank-space-md);
  text-align: center;
  transition: var(--prorank-transition);
}

.prorank-ai-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--prorank-shadow);
}

.prorank-ai-platform-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--prorank-space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--prorank-bg-secondary);
  border-radius: 50%;
  font-size: 24px;
}

.prorank-ai-platform-name {
  font-weight: 600;
  color: var(--prorank-text);
  margin-bottom: var(--prorank-space-xs);
}

.prorank-ai-platform-traffic {
  font-size: 24px;
  font-weight: 700;
  color: var(--prorank-primary);
  margin-bottom: var(--prorank-space-xs);
}

.prorank-ai-platform-label {
  font-size: 12px;
  color: var(--prorank-text-tertiary);
}

/* AI Content Optimization Score */
.prorank-ai-optimization-score {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--prorank-space-lg);
}

.prorank-ai-optimization-score-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid var(--prorank-border-light);
}

.prorank-ai-optimization-score-fill {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top-color: var(--prorank-primary);
  transform: rotate(calc(var(--score) * 3.6deg - 90deg));
  transition: transform 0.5s ease;
}

.prorank-ai-optimization-score-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--prorank-text);
}

/* AI Recommendations List */
.prorank-ai-recommendations {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prorank-ai-recommendation-item {
  display: flex;
  align-items: flex-start;
  gap: var(--prorank-space-sm);
  padding: var(--prorank-space-md);
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius-sm);
  margin-bottom: var(--prorank-space-sm);
}

.prorank-ai-recommendation-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--prorank-primary);
  color: white;
  border-radius: 50%;
  font-size: 14px;
}

.prorank-ai-recommendation-text {
  flex: 1;
  color: var(--prorank-text);
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE DESIGN
   Mobile-first responsive adjustments
   ============================================ */

@media (max-width: 1200px) {
  .prorank-cwv-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .prorank-analytics-page {
    padding: 12px;
  }
  
  .prorank-analytics-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .prorank-analytics-controls {
    width: 100%;
    flex-direction: column;
  }
  
  .prorank-date-range-picker {
    width: 100%;
    justify-content: space-between;
  }
  
  .prorank-performance-metrics {
    grid-template-columns: 1fr;
  }
  
  .prorank-comparison-periods {
    grid-template-columns: 1fr;
  }
  
  .prorank-comparison-vs {
    display: none;
  }
  
  .prorank-keyword-search {
    width: 100%;
  }
  
  .prorank-traffic-source-metrics {
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }
}

/* ============================================
   INTEGRATIONS SECTION
   Analytics integrations page styles
   ============================================ */

.prorank-grid--integrations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.prorank-integration-card {
  background: var(--prorank-bg-primary);
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Ensure GA4 property dropdown is readable in all themes */
.prorank-integration-card select {
  color: #1f2937;
  background: #ffffff;
}

.prorank-integration-card select option {
  color: #1f2937;
}

.prorank-integration-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--prorank-shadow-lg);
  border-color: var(--prorank-primary-light);
}

.prorank-integration-header {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 16px;
  background: linear-gradient(135deg, var(--prorank-bg-secondary) 0%, var(--prorank-bg-primary) 100%);
  border-bottom: 1px solid var(--prorank-border-light);
}

.prorank-integration-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--prorank-bg-primary);
  border-radius: 10px;
  box-shadow: var(--prorank-shadow-sm);
}

.prorank-integration-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.prorank-integration-title {
  flex: 1;
  min-width: 0;
}

.prorank-integration-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--prorank-text);
  line-height: 1.2;
}

.prorank-integration-type {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--prorank-text-secondary);
  font-weight: 400;
}

.prorank-integration-body {
  padding: 20px;
}

.prorank-integration-description {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--prorank-text-secondary);
}

.prorank-integration-connected {
  padding: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #bbf7d0;
}

.prorank-connected-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.prorank-connected-label {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
}

.prorank-connected-value {
  font-size: 13px;
  color: #15803d;
  font-weight: 500;
}

.prorank-integration-form {
  margin-top: 16px;
}

.prorank-integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--prorank-border-light);
}

.prorank-integration-actions a {
  color: var(--prorank-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prorank-integration-actions a:hover {
  color: var(--prorank-primary-dark);
  text-decoration: underline;
}

/* Badge status variants for integrations */
.prorank-badge--connected,
.prorank-badge--active {
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
  color: #166534;
  border: 1px solid #86efac;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.prorank-badge--not-connected {
  background: var(--prorank-bg-secondary);
  color: var(--prorank-text-secondary);
  border: 1px solid var(--prorank-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.prorank-badge--optional {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.prorank-badge--free {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 1px solid #93c5fd;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Form layout helpers */
.prorank-form-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.prorank-form-col {
  flex: 1;
}

.prorank-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Danger link button variant */
.prorank-button--danger-link {
  color: var(--prorank-danger);
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.prorank-button--danger-link:hover {
  color: var(--prorank-danger-dark);
  text-decoration: underline;
}

/* Help card style */
.prorank-card--help {
  background: linear-gradient(135deg, var(--prorank-bg-secondary) 0%, var(--prorank-bg-tertiary) 100%);
  border: 1px solid var(--prorank-border);
  position: relative;
  overflow: hidden;
}

.prorank-card--help::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 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.3; }
}

/* Analytics-specific tier variants */
.prorank-tab-badge.prorank-tier-pro-plus {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.prorank-tab-badge.prorank-tier-business-plus {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.prorank-tab-badge--count {
  background: var(--prorank-primary);
  color: white;
}

.prorank-tab-content {
  animation: fadeIn 0.3s ease;
  padding: 0 20px;
}

/* WordPress nav-tab compatibility */
.nav-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--prorank-text-secondary);
  padding: 12px 20px;
  margin: 0 0 -2px 0;
  font-size: 14px;
  font-weight: 500;
  transition: var(--prorank-transition);
  cursor: pointer;
  white-space: nowrap;
}

.nav-tab:hover {
  background: var(--prorank-bg-secondary);
  color: var(--prorank-text);
}

.nav-tab-active,
.nav-tab-active:hover,
.nav-tab.active,
.nav-tab.active:hover {
  background: transparent !important;
  border-bottom-color: var(--prorank-primary) !important;
  color: var(--prorank-primary) !important;
  font-weight: 600;
}

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

/* Responsive adjustments for integrations */
@media (max-width: 768px) {
  .prorank-grid--integrations {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .prorank-tab-navigation {
    padding: 0 12px;
  }
  
  .prorank-tab-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .prorank-tab-button {
    padding: 12px 16px;
    font-size: 13px;
  }
}
