/**
 * FPS Performance Dashboard Styles
 * State-of-the-art gaming benchmark comparison UI
 */

/* ============================================
   FPS DASHBOARD CONTAINER
   ============================================ */

.fps-dashboard {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

/* ============================================
   GAME SLIDER SECTION
   ============================================ */

.fps-game-slider-section {
  margin-bottom: var(--space-xl);
}

.fps-game-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.fps-game-slider-header h3 {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  color: var(--color-text-primary);
}

.fps-game-current {
  font-size: var(--text-body);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  background: var(--color-primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}


.fps-game-slider-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.fps-slider-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.fps-slider-btn:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.fps-game-slider {
  flex: 1;
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: var(--space-sm) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.fps-game-slider::-webkit-scrollbar {
  height: 6px;
}

.fps-game-slider::-webkit-scrollbar-track {
  background: transparent;
}

.fps-game-slider::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.fps-game-slide {
  flex: 0 0 140px;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  background: var(--color-background-secondary);
}

.fps-game-slide:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fps-game-slide.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.fps-game-slide-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-background-tertiary);
}

.fps-game-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.fps-game-slide:hover .fps-game-slide-img img {
  transform: scale(1.1);
}

.fps-game-slide-img.no-image::after {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h4m-2-2v4'/%3E%3Ccircle cx='17' cy='10' r='1'/%3E%3Ccircle cx='15' cy='14' r='1'/%3E%3Cpath d='M7.5 7h9a4.5 4.5 0 0 1 0 9h-9a4.5 4.5 0 0 1 0-9z'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
}

.fps-game-slide-name {
  padding: 8px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ============================================
   VIEW MODE TOGGLE
   ============================================ */

.fps-view-toggle {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-xs);
  background: var(--color-background-secondary);
  border-radius: var(--radius-md);
  width: fit-content;
}

.fps-view-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
}

.fps-view-btn:hover {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.fps-view-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   RESOLUTION TABS
   ============================================ */

.fps-resolution-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: var(--space-sm);
  background: var(--color-background-secondary);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.fps-res-tab {
  flex: 1;
  min-width: 80px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.fps-res-tab:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.fps-res-tab.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}


/* ============================================
   COMPARISON BARS SECTION
   ============================================ */

.fps-comparison-section {
  background: var(--color-background-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--color-border);
}

.fps-comparison-title {
  font-size: var(--text-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-lg) 0;
}

.fps-comparison-row {
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.fps-comparison-row:last-of-type {
  border-bottom: none;
}

.fps-comparison-label {
  font-weight: var(--font-weight-semibold);
}

.fps-comparison-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.fps-bar-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.fps-bar-track {
  flex: 1;
  height: 32px;
  background: var(--color-background-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.fps-bar-fill {
  height: 100%;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-md);
  transition: width 0.5s ease-out;
  min-width: fit-content;
}

.fps-bar-value {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.fps-bar-system {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  min-width: 70px;
}

.fps-comparison-winner {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-success);
  text-align: right;
}


/* ============================================
   OVERALL COMPARISON SUMMARY
   ============================================ */

.fps-comparison-summary {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--color-border);
}

.fps-overall-winner {
  text-align: center;
}

.fps-winner-badge {
  display: inline-block;
  font-size: var(--text-h5);
  font-weight: var(--font-weight-bold);
  color: var(--color-warning);
  margin-bottom: var(--space-md);
}

.fps-winner-system {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 2px solid;
  font-size: var(--text-body);
}

.fps-winner-avg {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  color: var(--color-success);
}

.fps-winner-diff {
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  color: var(--color-success);
  background: var(--color-success-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ============================================
   SYSTEM LEGEND
   ============================================ */

.fps-system-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-background-secondary);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.fps-system-legend-title {
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
}

.fps-system-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.fps-system-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.fps-system-legend-name {
  font-size: var(--text-xs);
  color: var(--color-text-primary);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ============================================
   SYSTEMS CONTAINER
   ============================================ */

.fps-systems-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.fps-systems-container.comparison-mode {
  display: none;
}

.fps-empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--color-background-secondary);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
}

.fps-empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.fps-empty-state h4 {
  font-size: var(--text-h4);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.fps-empty-state p {
  color: var(--color-text-secondary);
  margin: 0 auto;
  text-align: center;
  max-width: 100%;
}

/* ============================================
   SYSTEM CARD
   ============================================ */

.fps-system-card {
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.fps-system-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.fps-system-color-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.fps-system-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  padding-top: calc(var(--space-lg) + 4px);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-bottom: 1px solid var(--color-border);
}

.fps-system-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fps-system-number {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--system-color, var(--color-primary));
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fps-system-name {
  font-size: var(--text-h5);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.fps-system-actions {
  display: flex;
  gap: var(--space-sm);
}

.fps-system-actions button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1rem;
}

.fps-system-actions button:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
}

.fps-system-pin.pinned {
  background: var(--color-warning-light);
  border-color: var(--color-warning);
}

.fps-system-remove:hover {
  background: var(--color-danger-light);
  border-color: var(--color-danger);
}


/* ============================================
   SYSTEM SELECTORS
   ============================================ */

.fps-system-selectors {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
}

.fps-system-selectors.hidden {
  display: none;
}

.fps-selector-row {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.fps-selector-row label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fps-cpu-select,
.fps-gpu-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--text-small);
  cursor: pointer;
  transition: all var(--transition-base);
}

.fps-cpu-select:focus,
.fps-gpu-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.fps-apply-btn {
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.fps-apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


/* ============================================
   FPS GRID TABLE
   ============================================ */

.fps-grid-table {
  padding: var(--space-md);
}

.fps-grid-table.loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.fps-grid-table.loading::after {
  content: 'Loading...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--text-h4);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.fps-grid-header,
.fps-grid-row {
  display: grid;
  grid-template-columns: 180px repeat(4, 1fr) 80px;
  gap: 2px;
}

.fps-grid-header {
  margin-bottom: var(--space-sm);
}

.fps-grid-cell {
  padding: 12px 8px;
  text-align: center;
  font-size: var(--text-small);
  border-radius: var(--radius-sm);
}

.fps-grid-label {
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  background: transparent;
}

.fps-grid-header .fps-grid-cell {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fps-grid-row {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  transition: all var(--transition-base);
}

.fps-grid-row:hover {
  background: var(--color-surface-hover);
}

.fps-grid-row.selected {
  background: var(--color-primary-light);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

.fps-value {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-body);
  padding: 16px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.fps-avg {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  background: var(--color-background-tertiary);
}


/* FPS Color Coding - High Contrast for Readability */
.fps-excellent {
  background: #047857;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.fps-good {
  background: #15803d;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.fps-playable {
  background: #b45309;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.fps-low {
  background: #b91c1c;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.fps-none {
  background: var(--color-background-tertiary);
  color: var(--color-text-muted);
}

/* ============================================
   PERFORMANCE SUMMARY
   ============================================ */

.fps-performance-summary {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.fps-summary-title {
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fps-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.fps-summary-stat {
  text-align: center;
  padding: var(--space-md);
  background: var(--color-background-secondary);
  border-radius: var(--radius-md);
}

.fps-summary-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.fps-summary-value {
  font-size: var(--text-h3);
  font-weight: var(--font-weight-bold);
  font-family: var(--font-mono);
}

.fps-summary-value.fps-tier {
  font-family: var(--font-sans);
  font-size: var(--text-h5);
  color: var(--color-primary);
}


/* ============================================
   ADD SYSTEM BUTTON
   ============================================ */

.fps-add-system-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-lg);
  background: var(--color-background-secondary);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.fps-add-system-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.fps-add-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.fps-add-system-btn:hover .fps-add-icon {
  background: var(--color-primary);
  color: white;
}

/* ============================================
   FPS LEGEND
   ============================================ */

.fps-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.fps-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.fps-legend-color {
  width: 24px;
  height: 16px;
  border-radius: 4px;
}

.fps-legend-color.fps-excellent {
  background: #047857;
}

.fps-legend-color.fps-good {
  background: #15803d;
}

.fps-legend-color.fps-playable {
  background: #b45309;
}

.fps-legend-color.fps-low {
  background: #b91c1c;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .fps-grid-header,
  .fps-grid-row {
    grid-template-columns: 140px repeat(4, 1fr) 70px;
  }
  
  .fps-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fps-comparison-row {
    grid-template-columns: 80px 1fr 100px;
  }
}

@media (max-width: 768px) {
  .fps-dashboard {
    padding: var(--space-md);
  }
  
  .fps-resolution-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .fps-res-tab {
    min-width: 60px;
    padding: 10px 12px;
    font-size: var(--text-xs);
  }
  
  .fps-grid-header,
  .fps-grid-row {
    grid-template-columns: 100px repeat(4, 1fr) 60px;
    font-size: var(--text-xs);
  }
  
  .fps-grid-label {
    font-size: var(--text-xs);
  }
  
  .fps-value {
    font-size: var(--text-small);
    padding: 10px 4px;
  }
  
  .fps-system-selectors {
    flex-direction: column;
  }
  
  .fps-selector-row {
    min-width: 100%;
  }
  
  .fps-game-slide {
    flex: 0 0 100px;
  }
  
  .fps-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fps-summary-value {
    font-size: var(--text-h4);
  }
  
  .fps-comparison-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .fps-comparison-winner {
    text-align: left;
  }
  
  .fps-view-toggle {
    width: 100%;
  }
  
  .fps-view-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .fps-grid-header,
  .fps-grid-row {
    grid-template-columns: 80px repeat(4, 1fr);
  }
  
  .fps-grid-avg {
    display: none;
  }
  
  .fps-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .fps-system-legend {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================
   DASHBOARD SECTION HEADER
   ============================================ */

.fps-dashboard-section {
  margin-bottom: var(--space-2xl);
}

.fps-dashboard-section h2 {
  font-size: var(--text-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
  text-align: center;
}

.fps-dashboard-intro {
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  margin-bottom: var(--space-lg);
  max-width: 800px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fps-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fps-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fps-system-card {
  animation: fps-slide-in 0.3s ease-out;
}

.fps-grid-table.loading .fps-value {
  animation: fps-pulse 1.5s ease-in-out infinite;
}

/* ============================================
   DARK MODE ADJUSTMENTS
   ============================================ */

[data-theme="dark"] .fps-dashboard {
  background: var(--color-surface);
}

[data-theme="dark"] .fps-system-card {
  background: var(--color-background);
}

[data-theme="dark"] .fps-grid-row {
  background: var(--color-surface);
}

[data-theme="dark"] .fps-grid-row:hover {
  background: var(--color-surface-hover);
}

[data-theme="dark"] .fps-value.fps-none {
  background: var(--color-background-tertiary);
}

[data-theme="dark"] .fps-comparison-section {
  background: var(--color-surface);
}


/* ============================================
   SVG ICON INTEGRATION
   ============================================ */

.fps-dashboard-section h2 .icon-target {
  margin-right: 8px;
  vertical-align: middle;
}

.fps-game-slider-header h3 .icon-game {
  margin-right: 8px;
  vertical-align: middle;
}

.fps-comparison-title .icon-bar-chart {
  margin-right: 8px;
  vertical-align: middle;
}

.fps-winner-badge .icon-trophy {
  margin-right: 8px;
  vertical-align: middle;
}

.fps-comparison-winner .icon-trophy {
  margin-right: 4px;
  vertical-align: middle;
}

.fps-empty-state .icon-monitor {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.5;
}

.fps-add-icon .icon-plus {
  width: 24px;
  height: 24px;
}

.fps-system-actions button .icon-edit,
.fps-system-actions button .icon-pin,
.fps-system-actions button .icon-close {
  width: 16px;
  height: 16px;
}

.fps-view-btn .icon-grid,
.fps-view-btn .icon-bar-chart {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}

.fps-slider-btn .icon-chevron-left,
.fps-slider-btn .icon-chevron-right {
  width: 20px;
  height: 20px;
}


/* ============================================
   COMBO LINKS GRID - Game Combination Page
   ============================================ */

.combo-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.combo-links-grid-games {
  grid-template-columns: repeat(3, 1fr);
}

.combo-link-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

.combo-link-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.combo-link-hardware {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-small);
}

.combo-link-cpu {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-link-plus {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-align: center;
}

.combo-link-gpu {
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-link-fps {
  font-family: var(--font-mono);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-body);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--color-background-tertiary);
  color: var(--color-text-primary);
}

.combo-link-fps.fps-good {
  background: rgba(21, 128, 61, 0.15);
  color: #15803d;
}

.combo-link-fps.fps-ok {
  background: rgba(180, 83, 9, 0.15);
  color: #b45309;
}

.combo-link-fps.fps-low {
  background: rgba(185, 28, 28, 0.15);
  color: #b91c1c;
}

[data-theme="dark"] .combo-link-fps.fps-good {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

[data-theme="dark"] .combo-link-fps.fps-ok {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

[data-theme="dark"] .combo-link-fps.fps-low {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

/* Game variant card */
.combo-link-card-game {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.combo-link-game-name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  font-size: var(--text-small);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.combo-link-card-game .combo-link-fps {
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .combo-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .combo-links-grid-games {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .combo-links-grid {
    grid-template-columns: 1fr;
  }
  
  .combo-links-grid-games {
    grid-template-columns: 1fr;
  }
}
