/**
 * Can I Run It - Clean Premium Design V2
 */

/* ============================================
   HERO
   ============================================ */
.ciri-hero {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  overflow: hidden;
}

/* Game background - single zoomed cover image */
.hero-game-bg {
  position: absolute;
  inset: 0;
  background-image: var(--game-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Genre-based color overlays */
.ciri-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Default overlay - subtle dark */
  background: linear-gradient(180deg, 
    rgba(15, 23, 42, 0.5) 0%, 
    rgba(15, 23, 42, 0.65) 100%);
}

/* Action - Red/Orange */
.ciri-hero.genre-action::before {
  background: linear-gradient(180deg, 
    rgba(180, 40, 40, 0.45) 0%, 
    rgba(60, 20, 20, 0.6) 100%) !important;
}

/* RPG - Purple/Violet */
.ciri-hero.genre-rpg::before {
  background: linear-gradient(180deg, 
    rgba(120, 50, 180, 0.45) 0%, 
    rgba(50, 20, 70, 0.6) 100%) !important;
}

/* Shooter/FPS - Steel Blue */
.ciri-hero.genre-shooter::before,
.ciri-hero.genre-fps::before {
  background: linear-gradient(180deg, 
    rgba(50, 80, 130, 0.45) 0%, 
    rgba(20, 35, 60, 0.6) 100%) !important;
}

/* Racing - Orange/Yellow */
.ciri-hero.genre-racing::before {
  background: linear-gradient(180deg, 
    rgba(200, 100, 30, 0.45) 0%, 
    rgba(80, 40, 15, 0.6) 100%) !important;
}

/* Sports - Green */
.ciri-hero.genre-sports::before {
  background: linear-gradient(180deg, 
    rgba(40, 140, 70, 0.45) 0%, 
    rgba(20, 60, 35, 0.6) 100%) !important;
}

/* Horror - Dark Red/Black */
.ciri-hero.genre-horror::before {
  background: linear-gradient(180deg, 
    rgba(100, 20, 20, 0.5) 0%, 
    rgba(30, 10, 10, 0.7) 100%) !important;
}

/* Strategy - Teal/Cyan */
.ciri-hero.genre-strategy::before {
  background: linear-gradient(180deg, 
    rgba(30, 140, 130, 0.45) 0%, 
    rgba(15, 55, 55, 0.6) 100%) !important;
}

/* Simulation - Sky Blue */
.ciri-hero.genre-simulation::before {
  background: linear-gradient(180deg, 
    rgba(50, 100, 170, 0.45) 0%, 
    rgba(25, 50, 85, 0.6) 100%) !important;
}

/* Adventure - Amber/Gold */
.ciri-hero.genre-adventure::before {
  background: linear-gradient(180deg, 
    rgba(180, 130, 40, 0.45) 0%, 
    rgba(70, 55, 20, 0.6) 100%) !important;
}

/* Survival - Forest Green/Brown */
.ciri-hero.genre-survival::before {
  background: linear-gradient(180deg, 
    rgba(80, 100, 50, 0.45) 0%, 
    rgba(40, 50, 30, 0.6) 100%) !important;
}

/* Puzzle - Pink/Magenta */
.ciri-hero.genre-puzzle::before {
  background: linear-gradient(180deg, 
    rgba(170, 50, 170, 0.45) 0%, 
    rgba(70, 25, 70, 0.6) 100%) !important;
}

/* Fighting - Crimson */
.ciri-hero.genre-fighting::before {
  background: linear-gradient(180deg, 
    rgba(200, 50, 50, 0.45) 0%, 
    rgba(80, 25, 25, 0.6) 100%) !important;
}

/* Sandbox - Sandy/Warm */
.ciri-hero.genre-sandbox::before {
  background: linear-gradient(180deg, 
    rgba(180, 150, 90, 0.45) 0%, 
    rgba(70, 60, 40, 0.6) 100%) !important;
}

/* MMO - Royal Blue */
.ciri-hero.genre-mmo::before,
.ciri-hero.genre-mmorpg::before {
  background: linear-gradient(180deg, 
    rgba(60, 130, 220, 0.45) 0%, 
    rgba(30, 50, 90, 0.6) 100%) !important;
}

/* Platformer - Bright Blue */
.ciri-hero.genre-platformer::before {
  background: linear-gradient(180deg, 
    rgba(80, 160, 230, 0.45) 0%, 
    rgba(35, 65, 100, 0.6) 100%) !important;
}

/* Indie - Warm Purple */
.ciri-hero.genre-indie::before {
  background: linear-gradient(180deg, 
    rgba(140, 90, 180, 0.45) 0%, 
    rgba(55, 40, 70, 0.6) 100%) !important;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  z-index: 3;
}

.hero-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-icon {
  width: 32px;
  height: 32px;
  color: #60a5fa;
}

.ciri-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.ciri-hero p {
  font-size: 1rem;
  color: #e2e8f0;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* ============================================
   LAYOUT
   ============================================ */
.ciri-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

@media (max-width: 1024px) {
  .ciri-container {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SIDEBAR
   ============================================ */
.ciri-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 10px;
  color: #60a5fa;
}

.sidebar-card-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.sidebar-subtitle {
  font-size: 0.8rem;
  color: #64748b;
}

/* Form */
.ciri-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.field-label svg {
  width: 14px;
  height: 14px;
  color: #64748b;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 0.875rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.select-wrap select:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.select-wrap select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.select-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.submit-btn svg {
  width: 18px;
  height: 18px;
}

/* Your System */
.your-system {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.your-system h3 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.system-component {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.system-component:last-child {
  margin-bottom: 0;
}

.component-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.component-icon svg {
  width: 18px;
  height: 18px;
}

.cpu-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.gpu-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.component-info {
  flex: 1;
  min-width: 0;
}

.component-type {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.component-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.component-status {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.component-status svg {
  width: 14px;
  height: 14px;
}

.status-pass {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.status-warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.status-fail {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Sidebar Links */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-link:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.ciri-main {
  min-width: 0;
}

/* Game Header */
.game-header {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  min-height: 180px;
}

/* Game Header Background - no longer used, kept for reference */

.game-thumb-wrap,
.game-info {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .game-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.game-thumb-wrap {
  width: 200px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

.game-thumb-fallback svg {
  width: 48px;
  height: 48px;
  color: #64748b;
}

.game-info {
  flex: 1;
  min-width: 0;
}

.game-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .game-badges {
    justify-content: center;
  }
}

.game-badge {
  padding: 0.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-genre {
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.badge-year {
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.game-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
}

/* Compatibility Result */
.compat-result {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 640px) {
  .compat-result {
    justify-content: center;
  }
}

.compat-score-circle {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.compat-score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3;
}

.circle-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease-out;
}

.compat-excellent .circle-fill { stroke: #34d399; }
.compat-good .circle-fill { stroke: #60a5fa; }
.compat-playable .circle-fill { stroke: #fbbf24; }
.compat-poor .circle-fill { stroke: #f87171; }

.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.compat-excellent .score-text { color: #34d399; }
.compat-good .score-text { color: #60a5fa; }
.compat-playable .score-text { color: #fbbf24; }
.compat-poor .score-text { color: #f87171; }

.compat-details {
  display: flex;
  flex-direction: column;
}

.compat-label {
  font-size: 1rem;
  font-weight: 700;
}

.compat-excellent .compat-label { color: #34d399; }
.compat-good .compat-label { color: #60a5fa; }
.compat-playable .compat-label { color: #fbbf24; }
.compat-poor .compat-label { color: #f87171; }

.compat-desc {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ============================================
   RESULTS SECTIONS
   ============================================ */
.results-section {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-title svg {
  width: 20px;
  height: 20px;
  color: #60a5fa;
}

.section-title h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

/* FPS Grid */
.fps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.resolution-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.resolution-title:first-of-type {
  margin-top: 0;
}

[data-theme="light"] .resolution-title {
  color: #64748b;
  border-bottom-color: #e2e8f0;
}

@media (max-width: 640px) {
  .fps-grid {
    grid-template-columns: 1fr;
  }
}

.fps-card {
  padding: 0.625rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  text-align: center;
}

.fps-card-featured {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.15);
}

.fps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.375rem;
}

.fps-preset {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
}

.fps-res {
  font-size: 0.6rem;
  color: #64748b;
}

.fps-value {
  margin-bottom: 0.375rem;
}

.fps-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.fps-label {
  font-size: 0.65rem;
  font-weight: 600;
  margin-left: 0.125rem;
  color: #64748b;
}

/* FPS Color Classes - Consistent with game detail pages */
.fps-excellent .fps-num { color: #10b981; }
.fps-good .fps-num { color: #84cc16; }
.fps-playable .fps-num { color: #f59e0b; }
.fps-low .fps-num { color: #ef4444; }

.fps-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.fps-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease-out;
}

.fps-bar-fill.fps-excellent { background: linear-gradient(90deg, #10b981, #059669); }
.fps-bar-fill.fps-good { background: linear-gradient(90deg, #84cc16, #65a30d); }
.fps-bar-fill.fps-playable { background: linear-gradient(90deg, #f59e0b, #d97706); }
.fps-bar-fill.fps-low { background: linear-gradient(90deg, #ef4444, #dc2626); }

[data-theme="light"] .fps-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .fps-card-featured {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .fps-bar {
  background: #e2e8f0;
}

/* Metrics Strip */
.metrics-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .metrics-strip {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.metric {
  text-align: center;
}

.metric-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #60a5fa;
}

.metric-name {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .metric-divider {
    display: none;
  }
}

/* Requirements Grid */
.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .req-grid {
    grid-template-columns: 1fr;
  }
}

.req-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.req-pass {
  border-color: rgba(16, 185, 129, 0.2);
}

.req-fail {
  border-color: rgba(239, 68, 68, 0.2);
}

.req-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  flex-shrink: 0;
}

.req-icon svg {
  width: 20px;
  height: 20px;
  color: #94a3b8;
}

.req-content {
  flex: 1;
  min-width: 0;
}

.req-type {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.req-compare {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.req-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.req-label {
  color: #64748b;
}

.req-val {
  color: #94a3b8;
  font-weight: 500;
}

.req-status {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.req-status svg {
  width: 16px;
  height: 16px;
}

.req-pass .req-status {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.req-fail .req-status {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Tips List */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
}

.tip svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.tip strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.125rem;
}

.tip p {
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.85;
}

.tip-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.tip-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.tip-warn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.tip-feature {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .action-buttons {
    flex-direction: column;
  }
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

.action-btn.primary {
  flex: 1;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 400px;
}

.empty-visual {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 24px;
  margin-bottom: 1.5rem;
}

.empty-visual svg {
  width: 48px;
  height: 48px;
  color: #60a5fa;
}

.empty-state h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.empty-state > p {
  font-size: 1rem;
  color: #94a3b8;
  margin: 0 0 2rem;
  max-width: 400px;
}

.empty-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.empty-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.empty-feature svg {
  width: 16px;
  height: 16px;
  color: #60a5fa;
}

/* ============================================
   LIGHT MODE
   ============================================ */
[data-theme="light"] .ciri-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .ciri-hero::before {
  background: linear-gradient(180deg, 
    rgba(248, 250, 252, 0.8) 0%, 
    rgba(226, 232, 240, 0.85) 100%);
}

/* Force white text in hero for light mode when game bg is present */
[data-theme="light"] .ciri-hero[style*="--game-bg"] h1,
[data-theme="light"] .ciri-hero[style*="--game-bg"] p {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 1) !important;
}

[data-theme="light"] .ciri-hero[style*="--game-bg"]::before {
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.35) 0%, 
    rgba(0, 0, 0, 0.5) 100%) !important;
}

[data-theme="light"] .ciri-hero[style*="--game-bg"] .hero-icon-wrap {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.4)) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .ciri-hero[style*="--game-bg"] .hero-icon {
  color: #fff !important;
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .ciri-hero h1 {
  color: #1e293b;
}

[data-theme="light"] .ciri-hero p {
  color: #64748b;
}

[data-theme="light"] .sidebar-card {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sidebar-card-header {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .sidebar-card-header h2 {
  color: #1e293b;
}

[data-theme="light"] .select-wrap select {
  background: #f8fafc;
  border-color: #d1d5db;
  color: #1e293b;
}

[data-theme="light"] .select-wrap select:hover {
  border-color: #3b82f6;
}

[data-theme="light"] .your-system {
  border-top-color: #e2e8f0;
}

[data-theme="light"] .system-component {
  background: #f8fafc;
}

[data-theme="light"] .component-name {
  color: #1e293b;
}

[data-theme="light"] .sidebar-link {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .sidebar-link:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  color: #2563eb;
}

[data-theme="light"] .game-header,
[data-theme="light"] .results-section {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .game-title,
[data-theme="light"] .section-title h2 {
  color: #1e293b;
}

[data-theme="light"] .game-badge {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .badge-genre {
  border-color: rgba(139, 92, 246, 0.3);
  color: #7c3aed;
}

[data-theme="light"] .badge-year {
  border-color: rgba(59, 130, 246, 0.3);
  color: #2563eb;
}

[data-theme="light"] .compat-desc {
  color: #64748b;
}

[data-theme="light"] .fps-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .fps-card-featured {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .fps-bar {
  background: #e2e8f0;
}

[data-theme="light"] .metrics-strip {
  border-top-color: #e2e8f0;
}

[data-theme="light"] .metric-val {
  color: #2563eb;
}

[data-theme="light"] .metric-divider {
  background: #e2e8f0;
}

[data-theme="light"] .req-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .req-pass {
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .req-fail {
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="light"] .req-icon {
  background: #f1f5f9;
}

[data-theme="light"] .req-type {
  color: #1e293b;
}

[data-theme="light"] .tip-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #059669;
}

[data-theme="light"] .tip-info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #2563eb;
}

[data-theme="light"] .tip-warn {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
  color: #d97706;
}

[data-theme="light"] .tip-feature {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
  color: #7c3aed;
}

[data-theme="light"] .action-btn.secondary {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}

[data-theme="light"] .action-btn.secondary:hover {
  background: #f1f5f9;
}

[data-theme="light"] .empty-state h2 {
  color: #1e293b;
}

[data-theme="light"] .empty-state > p {
  color: #64748b;
}

[data-theme="light"] .empty-feature {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .game-thumb-fallback {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.06));
}


/* ============================================
   ANALYSIS SECTION
   ============================================ */
.analysis-section {
  margin-top: 1.5rem;
}

.analysis-section .section-title {
  margin-bottom: 1.25rem;
}

.analysis-content {
  width: 100%;
  max-width: none;
  line-height: 1.8;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.analysis-content p {
  margin: 0 0 1.25rem;
  width: 100%;
  max-width: none;
}

.analysis-content p:last-child {
  margin-bottom: 0;
}

.analysis-content strong {
  color: #f1f5f9;
  font-weight: 600;
}

.analysis-content em {
  color: #60a5fa;
  font-style: normal;
}

.analysis-content a {
  color: #60a5fa;
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.analysis-content a:hover {
  color: #93c5fd;
  text-decoration-color: rgba(147, 197, 253, 0.8);
}

[data-theme="light"] .analysis-content {
  color: #475569;
}

[data-theme="light"] .analysis-content strong {
  color: #1e293b;
}

[data-theme="light"] .analysis-content em {
  color: #2563eb;
}

[data-theme="light"] .analysis-content a {
  color: #2563eb;
  text-decoration-color: rgba(37, 99, 235, 0.4);
}

[data-theme="light"] .analysis-content a:hover {
  color: #1d4ed8;
  text-decoration-color: rgba(29, 78, 216, 0.8);
}
