@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0b0d10;
  --surface: #14171c;
  --surface-2: #1c2027;
  --border: #262b33;
  --text: #e7e9ec;
  --text-muted: #8a919c;
  --accent: #ffc94a;
  --accent-dim: #4a3f22;

  --tier-unplayable: #ff5c5c;
  --tier-playable: #ffb84d;
  --tier-smooth: #63d67a;
  --tier-high: #4fc3f7;
  --tier-competitive: #b18cff;

  --font-display: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(255, 201, 74, 0.06), transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(177, 140, 255, 0.06), transparent 45%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

/* ---------- Hero section w/ marquee poster background ---------- */

.hero-section {
  position: relative;
  overflow: hidden;
  background: #08090b;
  padding-bottom: 30px;
}

.marquee-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  transform: rotate(-4deg) scale(1.15);
  opacity: 1;
}

.marquee-row {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.marquee-track {
  display: inline-flex;
  gap: 14px;
  width: max-content;
  animation: scrollLeft 180s linear infinite;
}

.marquee-row-1 .marquee-track {
  animation-name: scrollRight;
  animation-duration: 220s;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.marquee-pill {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(231, 233, 236, 0.5);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: 20px;
  flex: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0.88) 55%, var(--bg) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 201, 74, 0.10), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(177, 140, 255, 0.10), transparent 45%);
}

.hero-section .site-header,
.hero-content {
  position: relative;
  z-index: 2;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent-dim), rgba(255, 201, 74, 0.05));
  border: 1px solid rgba(255, 201, 74, 0.35);
  color: var(--accent);
  flex: none;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-name em {
  color: var(--accent);
  font-style: normal;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.top-nav a:hover {
  color: var(--accent);
}

/* ---------- Hero content ---------- */

.hero-content {
  padding-top: 60px;
  padding-bottom: 10px;
}

.hero-content h1 {
  font-family: var(--font-body);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 14px;
  max-width: 820px;
}

.hero-content h1 .hl {
  color: var(--accent);
}

.hero-content p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 26px;
  font-size: 15.5px;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #201a08;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 8px;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.hero-cta:hover {
  box-shadow: 0 6px 22px rgba(255, 201, 74, 0.25);
}

.stat-strip {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Main wrap / sections ---------- */

.main-wrap {
  padding-top: 10px;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 20px;
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  margin-bottom: 30px;
}

.section-kicker {
  display: none;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 27px);
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.badge-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--tier-smooth);
  box-shadow: 0 0 10px var(--tier-smooth);
  flex: none;
  animation: pulse 1.6s ease-in-out infinite;
}

.section-head h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}



/* ---------- Layout grid ---------- */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.panel-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* ---------- Form ---------- */

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11.5px;
  text-transform: none;
}

.field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-group label {
  font-family: var(--font-display);
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip-group input:checked + label {
  border-color: var(--accent);
  color: var(--bg);
  background: var(--accent);
  font-weight: 600;
}

.chip-group input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.submit-btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #201a08;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.submit-btn:hover {
  box-shadow: 0 6px 22px rgba(255, 201, 74, 0.25);
}

.submit-btn:active {
  transform: translateY(1px);
}

/* ---------- Result: HUD counter ---------- */

.hud {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--surface-2);
  position: relative;
  overflow: hidden;
}

.hud::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hud-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hud-rec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--tier-unplayable);
  letter-spacing: 0.1em;
}

.hud-rec .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tier-unplayable);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hud-number-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.hud-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 84px);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(255, 201, 74, 0.25);
  font-variant-numeric: tabular-nums;
}

.hud-unit {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tier-badge .swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.hud-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.hud-meta b {
  color: var(--text);
  font-weight: 600;
}

.warning-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 92, 92, 0.08);
  border: 1px solid rgba(255, 92, 92, 0.35);
  color: #ffb3b3;
  font-size: 13px;
}

/* ---------- Bar chart ---------- */

.chart {
  margin-top: 20px;
}

.chart-row {
  display: grid;
  grid-template-columns: 70px 1fr 56px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.chart-row .row-label {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.chart-track {
  height: 10px;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chart-bar {
  height: 100%;
  border-radius: 6px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-row .row-fps {
  font-family: var(--font-display);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.placeholder {
  color: var(--text-muted);
  font-size: 14px;
  padding: 30px 6px;
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- Nasıl Çalışır ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

.how-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.how-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Tier blocks (GPU / CPU database) ---------- */

.tier-block {
  margin-bottom: 26px;
}

.tier-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tier-block-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.tier-block-name:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.tier-block-count {
  font-size: 12.5px;
  color: var(--text-muted);
}

.hw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hw-chip {
  font-family: var(--font-display);
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- RAM guide ---------- */

.ram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.ram-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.ram-amount {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
}

.ram-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.ram-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Game library ---------- */

.game-filter-input {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 24px;
}

.game-filter-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.game-card-top {
  margin-bottom: 12px;
}

.game-card-top h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.3;
}

.game-genre {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 5px;
}

.game-card-fps {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}

.game-fps-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--accent);
}

.game-fps-unit {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.game-weight-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weight-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.weight-track {
  height: 6px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.weight-fill {
  height: 100%;
  border-radius: 4px;
}

.weight-gpu {
  background: var(--tier-high);
}

.weight-cpu {
  background: var(--tier-competitive);
}

.game-grid-empty {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
}

@media (max-width: 640px) {
  .top-nav {
    display: none;
  }
}

/* ---------- Side rails (genre icons, full page height) ---------- */

.side-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 64px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

.side-rail-left {
  left: 0;
}

.side-rail-right {
  right: 0;
}

.side-rail-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  padding-top: 20px;
  animation: railScrollDown 50s linear infinite;
}

.side-rail-track-reverse {
  animation-name: railScrollUp;
  animation-duration: 62s;
}

@keyframes railScrollDown {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@keyframes railScrollUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.rail-icon {
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  flex: none;
}

.rail-icon svg {
  width: 100%;
  height: 100%;
}

.rail-icon:nth-child(3n) {
  color: var(--accent);
}

.rail-icon:nth-child(3n+1) {
  color: var(--tier-competitive);
}

@media (max-width: 1300px) {
  .side-rail {
    display: none;
  }
}

/* ---------- Game library (isim-only, yoğun liste) ---------- */

.game-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-chip {
  font-family: var(--font-display);
  font-size: 13px;
  padding: 9px 15px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.game-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Sonuç bildirme butonu ---------- */

.report-btn {
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.report-btn:hover {
  border-color: var(--tier-playable);
  color: var(--tier-playable);
}

.report-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(99, 214, 122, 0.08);
  border: 1px solid rgba(99, 214, 122, 0.3);
  color: var(--tier-smooth);
  font-size: 13px;
  text-align: center;
}

/* ---------- Nav CTA butonu ---------- */

.top-nav a.nav-cta {
  background: var(--accent);
  color: #201a08;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.top-nav a.nav-cta:hover {
  color: #201a08;
  opacity: 0.85;
}

/* ---------- İletişim ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 560px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------- Dil seçici ---------- */

.lang-switch select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.lang-switch select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ---------- Düz (afişsiz) sayfa başlığı — örn. iletişim sayfası ---------- */

.plain-header {
  padding-top: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.back-home-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
}

.back-home-link:hover {
  color: var(--accent);
}

/* ---------- RTL (Arapça) temel düzeltmeler ---------- */

html[dir="rtl"] .chart-row .row-fps {
  text-align: left;
}

html[dir="rtl"] .tagline,
html[dir="rtl"] .contact-card {
  text-align: right;
}

html[dir="rtl"] .field-hint {
  margin-right: 4px;
}
