/* Jogos de PC — design system (dark + neon) */

:root {
  --surface: #0b0b0f;
  --surface-50: #16161d;
  --purple: #a855f7;
  --cyan: #22d3ee;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--surface);
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #a855f7 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border-radius: 0.75rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4d4d8;
  background: transparent;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: #fff;
  background: rgba(168, 85, 247, 0.9);
  border-radius: 0.5rem;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-play:hover {
  background: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

/* Pills / chips */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pill:hover {
  color: #e4e4e7;
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
}
.pill-sm {
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
}
.pill-active {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.2);
}

/* Form inputs */
.input-field {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #f4f4f5;
  background: #0b0b0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-field::placeholder {
  color: #52525b;
}
.input-field:focus {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* Content typography (markdown body) */
.content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f4f4f5;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.content p {
  margin-bottom: 0.85rem;
  line-height: 1.7;
}
.content a {
  color: #22d3ee;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content a:hover {
  color: #a855f7;
}
.content ul,
.content ol {
  margin: 0.75rem 0 1rem 1.25rem;
  line-height: 1.7;
}
.content ul {
  list-style: disc;
}
.content ol {
  list-style: decimal;
}
.content li {
  margin-bottom: 0.35rem;
}
.content strong {
  color: #f4f4f5;
  font-weight: 600;
}
.content code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: #22d3ee;
}

/* Game cards */
.game-card:hover {
  transform: translateY(-2px);
}

/* Line clamp fallback */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Selection */
::selection {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .game-card,
  .btn-primary,
  .game-card img {
    transition: none !important;
  }
}
