/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;900&display=swap');

:root {
  --background: #080710;
  --foreground: #f4f4f5;
  --card: #12111f;
  --card-border: rgba(139, 92, 246, 0.15);
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-glow: rgba(139, 92, 246, 0.3);
  --muted: #a1a1aa;
  --border: #2d2a4a;
  --input-bg: #1e1c31;
  --input-focus: #a78bfa;
  
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --success-border: rgba(16, 185, 129, 0.3);
  
  --info: #0ea5e9;
  --info-bg: rgba(14, 165, 233, 0.1);
  --info-border: rgba(14, 165, 233, 0.3);
  
  --danger: #f43f5e;
  --danger-bg: rgba(244, 63, 94, 0.1);
  --danger-border: rgba(244, 63, 94, 0.3);
  
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.05);
  --warning-border: rgba(245, 158, 11, 0.2);

  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: #1f1d36;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid var(--card-border);
  background: rgba(18, 17, 31, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header .nav-container {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.logo svg {
  color: var(--primary);
  width: 1.5rem;
  height: 1.5rem;
}

nav.links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav.links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
}

nav.links a:hover {
  color: var(--foreground);
}

main {
  flex: 1;
  padding: 2.5rem 0;
}

footer {
  border-top: 1px solid rgba(45, 42, 74, 0.4);
  background: #06050b;
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

footer .footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  footer .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--foreground);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: var(--primary-glow);
  border-radius: 50%;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1.125rem;
  max-w: 600px;
  margin: 0 auto 2rem;
}

/* Autocomplete Search Bar */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-input-container {
  position: relative;
}

.search-wrapper input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem 0 3rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-wrapper input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 2px var(--primary-glow), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 0.875rem;
  color: var(--muted);
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}

.autocomplete-dropdown {
  position: absolute;
  top: 3.25rem;
  left: 0;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 250px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  color: var(--muted);
}

.autocomplete-item:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--foreground);
}

.autocomplete-item img {
  width: 40px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass panel */
.glass-panel {
  background: rgba(18, 17, 31, 0.75);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Grid layout */
.grid-popular {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .grid-popular {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-popular {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(45, 42, 74, 0.6);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.1);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.game-card:hover img {
  transform: scale(1.02);
}

.game-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.game-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.game-card-body p {
  font-size: 0.8125rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  height: 2.25rem;
}

.game-card-footer {
  border-top: 1px solid rgba(45, 42, 74, 0.4);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(8, 7, 16, 0.4);
}

/* Compare specs forms */
.form-title {
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.form-title svg {
  color: var(--primary);
  width: 1.25rem;
  height: 1.25rem;
}

.specs-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group label svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.form-group input, .form-group select {
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--input-focus);
}

.form-dropdown {
  position: absolute;
  top: 4.5rem;
  left: 0;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 40;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.form-dropdown.active {
  display: block;
}

.form-dropdown-item {
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: var(--transition);
}

.form-dropdown-item:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #fff;
}

.btn-primary {
  width: 100%;
  height: 3rem;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Badges */
.badge-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
}

.badge-info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
}

.badge-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
}

/* Ads block styling */
.ad-slot {
  margin: 1.5rem auto;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(18, 17, 31, 0.3);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.ad-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.ad-info {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Game page specifics */
.game-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

@media (min-width: 768px) {
  .game-header {
    flex-direction: row;
    padding: 2rem;
    gap: 2rem;
  }
}

.game-header-cover {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.game-header-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.game-header-details h1 {
  font-size: 2rem;
  font-weight: 900;
}

.game-header-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.game-header-meta a {
  color: var(--primary);
  text-decoration: none;
}

.game-header-meta a:hover {
  text-decoration: underline;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .split-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.req-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.req-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.req-badge-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.req-badge-row span:first-child {
  color: var(--muted);
}

.req-badge-row span:last-child {
  font-weight: 600;
}

.steam-requirements-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.6;
  max-height: 350px;
  overflow-y: auto;
  color: var(--muted);
}

.steam-requirements-box h4 {
  font-size: 0.8125rem;
  color: #fff;
  margin-bottom: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.steam-html-requirements ul {
  list-style: none;
  margin-top: 0.5rem;
}

.steam-html-requirements li {
  margin-bottom: 0.35rem;
}

/* Compare results */
.verdict-banner {
  padding: 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-width: 1px;
  border-style: solid;
}

.verdict-banner-success {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.verdict-banner-danger {
  background: rgba(244, 63, 94, 0.05);
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--danger);
}

.verdict-banner svg {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
}

.verdict-info h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.verdict-info p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}

.component-row {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .component-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.component-left {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.component-icon {
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid var(--card-border);
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  color: var(--primary);
}

.component-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.component-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.component-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.component-details p {
  font-size: 0.75rem;
  color: var(--muted);
}

.component-details p span {
  color: var(--foreground);
  font-weight: 500;
}

.component-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.component-req-info {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.upgrade-tip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  max-width: fit-content;
}

.upgrade-tip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--warning);
  border-radius: 50%;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-secondary {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Static simple pages content layouts */
.content-layout {
  max-width: 800px;
  margin: 0 auto;
}

.content-layout h1 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.content-layout h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-layout p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-box {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  gap: 1rem;
}

.feature-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-box-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-box-body p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
