/* ============================================================
   AVANT-GARDE v2 — paper, ink, electric. Bold readable type.
   Everything reacts. No timid italics.
   ============================================================ */

:root {
  /* Paper system */
  --paper:   #f1ebdc;
  --paper-2: #ebe4d2;
  --paper-3: #ddd4bd;
  --grid:    #d2c8ad;

  --ink:     #0d0d0e;
  --ink-2:   #2a2a2c;
  --ink-3:   #6b6963;
  --ink-4:   #9b988d;

  /* Hi-vis acid accent (used sparingly) */
  --acid:    #d6ff3a;
  --acid-2:  #b5e000;
  --hot:     #ff2d2d;
  --cobalt:  #1e2bff;
  --sky:     #5dc7ff;
  --gold:    #ffb800;

  --display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --sans:    "Inter Tight", "Bricolage Grotesque", system-ui, sans-serif;
  --mono:    "Space Mono", "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(13,13,14,0.07) 1px, transparent 0),
    linear-gradient(to right, transparent calc(100% - 1px), rgba(13,13,14,0.04) 100%),
    linear-gradient(to bottom, transparent calc(100% - 1px), rgba(13,13,14,0.04) 100%);
  background-size: 14px 14px, 48px 48px, 48px 48px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  min-height: 100vh;
  font-feature-settings: "ss01","cv11";
}

button { font-family: inherit; cursor: pointer; }

.app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 100px;
  position: relative;
}

/* ============ MARGINALIA (running header) ============ */
.app::before {
  content: "ISSUE №01 / FİLTRELERİN SAVAŞI / EN UCUZ NEREDE / MMXXVI";
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--ink);
  z-index: 100;
  background: var(--paper);
  padding: 4px 18px;
  border: 1.5px solid var(--ink);
  white-space: nowrap;
  pointer-events: none;
}

/* ============ HEADER ============ */
.hdr {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  padding: 48px 0 24px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 18px;
  position: relative;
}
.hdr::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}

.logo {
  font-size: clamp(44px, 8.5vw, 112px);
  line-height: 0.88;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.06em;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
}
.logo-a {
  letter-spacing: -0.04em;
}
.logo-b {
  letter-spacing: -0.05em;
  background: var(--ink);
  color: var(--acid);
  padding: 0 0.14em 0.04em;
  display: inline-block;
  position: relative;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1.6);
}
.logo-b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--acid);
  mix-blend-mode: difference;
  opacity: 0;
  animation: logo-glitch 5s ease-in-out infinite;
}
.logo:hover .logo-b { transform: skewX(-6deg) translateX(-4px); }
@keyframes logo-glitch {
  0%, 92%, 100% { opacity: 0; transform: translateX(0); }
  93% { opacity: 1; transform: translateX(-3px); }
  94% { opacity: 0; transform: translateX(2px); }
  95% { opacity: 1; transform: translateX(-1px); }
  96% { opacity: 0; }
}

.tagline {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 4px solid var(--hot);
}

.hdr-r {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 280px;
  align-items: stretch;
}

/* Combo card */
.combo {
  text-align: left;
  padding: 16px 16px 14px;
  border: 2.5px solid var(--ink);
  background: var(--paper-2);
  position: relative;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 200ms cubic-bezier(.2,.7,.2,1.6), box-shadow 200ms;
}
.combo:hover {
  transform: translate(-2px,-2px);
  box-shadow: 8px 8px 0 var(--ink);
}
.combo::before {
  content: "ŞU AN OYUNDA ▸";
  position: absolute;
  top: -10px; left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  background: var(--paper);
  padding: 0 6px;
  color: var(--ink);
}
.combo-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
  animation: combo-pop 380ms cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes combo-pop {
  0%   { opacity: 0; transform: translateY(8px) scale(0.92); }
  60%  { transform: translateY(-2px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.combo-flavor {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 8px;
  letter-spacing: -0.005em;
}
.tier-0 { color: var(--ink-3); }
.tier-1 { color: var(--hot); }
.tier-2 { color: var(--ink); }
.tier-3 {
  background: var(--sky);
  color: var(--ink);
  display: inline-block;
  padding: 1px 10px;
  border: 2px solid var(--ink);
}
.tier-4 {
  background: var(--acid);
  color: var(--ink);
  display: inline-block;
  padding: 1px 10px;
  border: 2px solid var(--ink);
  transform: rotate(-1deg);
}
.tier-5 {
  background: var(--ink);
  color: var(--acid);
  display: inline-block;
  padding: 2px 12px;
  border: 2px solid var(--ink);
  transform: rotate(-1.5deg);
  letter-spacing: -0.02em;
  animation: tier5-jitter 1.4s ease-in-out infinite;
}
@keyframes tier5-jitter {
  0%, 100% { transform: rotate(-1.5deg); }
  50%      { transform: rotate(-2.2deg) translateY(-1px); }
}

/* XP — exposed mechanical bar */
.xp {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
}
.xp-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 8px;
}
.xp-bar {
  height: 12px;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.xp-bar::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 19px, rgba(13,13,14,0.25) 19px, rgba(13,13,14,0.25) 20px);
  z-index: 1;
}
.xp-fill {
  height: 100%;
  background: var(--acid);
  transition: width 420ms cubic-bezier(.34, 1.56, .64, 1);
  position: relative;
}
.xp-fill::after {
  /* shimmer sweep */
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13,13,14,0.25), transparent);
  animation: shimmer-sweep 2.2s ease-in-out infinite;
}
@keyframes shimmer-sweep {
  0%   { left: -40%; }
  100% { left: 140%; }
}
.xp-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.flash {
  position: absolute;
  top: 12px;
  right: 0;
  padding: 8px 16px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  pointer-events: none;
  animation: flash-in 240ms cubic-bezier(.34, 1.56, .64, 1);
  border: 2px solid var(--ink);
  z-index: 10;
}
.flash-ok  { background: var(--acid); color: var(--ink); transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }
.flash-err { background: var(--hot); color: var(--paper); transform: rotate(2deg); box-shadow: 3px 3px 0 var(--ink); }
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.7) rotate(-8deg); }
  to   { opacity: 1; }
}

/* ============ MARQUEE TICKER ============ */
.marquee {
  margin-bottom: 22px;
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  background: var(--ink);
  color: var(--acid);
  overflow: hidden;
  padding: 8px 0;
  position: relative;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.marquee-inner {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee-scroll 60s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-item { padding: 0 4px; }
.marquee-bullet {
  color: var(--hot);
  margin-right: 12px;
  font-size: 8px;
  vertical-align: middle;
  display: inline-block;
  animation: bullet-pulse 1s ease-in-out infinite;
}
@keyframes bullet-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ BOARD ============ */
.board {
  background: var(--paper-2);
  border: 2.5px solid var(--ink);
  padding: 28px 28px 24px;
  margin-bottom: 32px;
  position: relative;
  box-shadow: 8px 8px 0 var(--ink);
  transition: box-shadow 240ms;
}
.board:hover { box-shadow: 10px 10px 0 var(--ink); }
.board::after {
  content: "§ 01";
  position: absolute;
  top: -18px;
  right: 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  background: var(--paper);
  padding: 0 10px;
  border: 2.5px solid var(--ink);
  letter-spacing: -0.02em;
}
.board-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
}
.board-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 12px;
  text-transform: uppercase;
}
.board-title::before { content: "FİLTRE PANELİ /"; }
.board-title > * { display: none; }
.dot { display: none; }
.board-meta { display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.meta-on {
  background: var(--ink);
  color: var(--acid);
  padding: 4px 10px;
  letter-spacing: 0.12em;
  animation: meta-pulse 1.6s ease-in-out infinite;
}
@keyframes meta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,13,14,0.3); }
  50%      { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px,-2px); }
}
.clear-btn {
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 6px 14px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: 120ms;
}
.clear-btn:hover:not(:disabled) {
  background: var(--hot);
  color: var(--paper);
  transform: rotate(-2deg) scale(1.05);
}
.clear-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============ SWITCHES ============ */
.switches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}
.sw {
  --c: hsl(var(--hue) 70% 45%);
  --c-light: hsl(var(--hue) 80% 90%);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 10px 12px;
  text-align: left;
  color: var(--ink);
  transition: transform 200ms cubic-bezier(.2,.7,.2,1.6), background 160ms, box-shadow 200ms;
  position: relative;
  min-width: 0;
}
.sw:nth-child(1) { transform: rotate(-1.2deg); }
.sw:nth-child(2) { transform: rotate(0.6deg); }
.sw:nth-child(3) { transform: rotate(-0.4deg); }
.sw:nth-child(4) { transform: rotate(1deg); }
.sw:nth-child(5) { transform: rotate(-0.8deg); }

.sw:hover { transform: translateY(-4px) rotate(0deg) scale(1.02); box-shadow: 5px 5px 0 var(--ink); }
.sw:active { transform: translateY(-1px) rotate(0deg) scale(0.98); }

.sw-icon {
  grid-row: 1 / 3;
  width: 48px; height: 48px;
  background: var(--paper-2);
  display: grid; place-items: center;
  font-size: 22px;
  border: 2px solid var(--ink);
  transition: 220ms cubic-bezier(.2,.7,.2,1.6);
  font-family: var(--display);
  font-weight: 800;
}

.sw-meta { grid-column: 2; align-self: end; }
.sw-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}
.sw-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-top: 4px;
}

.sw-track {
  grid-column: 1 / 3;
  grid-row: 2;
  height: 32px;
  background: var(--paper-3);
  border: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
}
.sw-knob {
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 100%;
  background: var(--ink);
  transition: left 260ms cubic-bezier(.7, 0, .2, 1.6), background 220ms;
}
.sw-knob::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 14px;
  background: var(--paper);
  transform: translate(-50%, -50%);
}
.sw-track-off, .sw-track-on {
  position: absolute;
  top: 0; bottom: 0;
  display: flex; align-items: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.sw-track-off { right: 12px; color: var(--ink-3); }
.sw-track-on  { left: 38px; color: var(--paper); opacity: 0; }

.sw-on {
  background: var(--c-light);
  box-shadow: 4px 4px 0 var(--ink);
  animation: sw-pop 360ms cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes sw-pop {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.06) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.sw-on .sw-icon {
  background: var(--c);
  color: var(--paper);
  border-color: var(--ink);
  animation: icon-rotate 480ms cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes icon-rotate {
  0%   { transform: rotate(-30deg) scale(0.8); }
  100% { transform: rotate(0deg) scale(1); }
}
.sw-on .sw-label { color: var(--ink); }
.sw-on .sw-track { background: var(--c); }
.sw-on .sw-knob  { left: calc(100% - 30px); background: var(--paper); }
.sw-on .sw-knob::before { background: var(--ink); }
.sw-on .sw-track-off { opacity: 0; }
.sw-on .sw-track-on  { opacity: 1; }

.sw-on::after {
  content: "AKTİF";
  position: absolute;
  top: 8px; right: 10px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 2px 6px;
  transform: rotate(8deg);
  background: var(--paper);
  animation: stamp-in 280ms cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes stamp-in {
  0%   { opacity: 0; transform: rotate(20deg) scale(2); }
  100% { opacity: 1; transform: rotate(8deg) scale(1); }
}

.sw-blocked { opacity: 0.45; }
.sw-blocked .sw-icon { filter: grayscale(1); }
.sw-blocked .sw-label { text-decoration: line-through; text-decoration-thickness: 2.5px; }

.sw-shake {
  animation: shake 520ms cubic-bezier(.36,.07,.19,.97);
  background: var(--hot) !important;
}
.sw-shake .sw-label, .sw-shake .sw-sub { color: var(--paper); }
.sw-shake .sw-icon { background: var(--paper); color: var(--hot); }
.sw-enemy { animation: enemy-flash 540ms ease-out; }
@keyframes shake {
  10%, 90%   { transform: translateX(-3px) rotate(-1.5deg); }
  20%, 80%   { transform: translateX(5px)  rotate(1.2deg); }
  30%, 50%, 70% { transform: translateX(-8px) rotate(-2deg); }
  40%, 60%   { transform: translateX(8px)  rotate(2deg); }
}
@keyframes enemy-flash {
  0%   { background: var(--paper); }
  35%  { background: var(--hot); }
  100% { background: var(--c-light); }
}

.sw-lock {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: var(--hot);
  border: 2px solid var(--ink);
  padding: 3px 9px;
  white-space: nowrap;
  animation: lock-wobble 0.9s ease-in-out infinite;
}
@keyframes lock-wobble {
  0%, 100% { transform: translateX(-50%) rotate(-3deg); }
  50%      { transform: translateX(-50%) rotate(3deg); }
}

/* ============ MATRIX ============ */
.matrix {
  margin-top: 28px;
  padding: 16px 18px 14px;
  border: 2px dashed var(--ink);
  background: var(--paper);
  position: relative;
}
.matrix::before {
  content: "ÇAKIŞMA KURALLARI ⚠";
  position: absolute;
  top: -10px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  background: var(--paper-2);
  padding: 0 8px;
  color: var(--ink);
}
.matrix-title { display: none; }
.matrix-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
}
.rule {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 10px;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  transition: 200ms cubic-bezier(.34, 1.56, .64, 1);
}
.rule-live {
  background: var(--gold);
  transform: rotate(-1.5deg) translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.rule-tag {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.rule-tag-on {
  background: var(--ink);
  color: var(--paper);
  padding: 1px 6px;
}
.rule-x { color: var(--hot); font-weight: 800; font-size: 14px; }

/* ============ RESULTS BAR ============ */
.rbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  position: relative;
}
.rbar::before {
  content: "§ 02";
  position: absolute;
  top: -16px;
  left: 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  background: var(--paper);
  padding: 0 8px;
  border: 2.5px solid var(--ink);
}

.tabs { display: flex; gap: 0; border: 2.5px solid var(--ink); }
.tab {
  background: var(--paper);
  border: none;
  border-right: 2.5px solid var(--ink);
  color: var(--ink);
  padding: 10px 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 8px;
  transition: 160ms;
  text-transform: uppercase;
}
.tab:last-child { border-right: none; }
.tab:hover { background: var(--paper-2); }
.tab-on {
  background: var(--ink);
  color: var(--acid);
}
.tab-icon { font-size: 14px; }

.rbar-r { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.bestprice {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 14px;
  border: 2.5px solid var(--ink);
  background: var(--acid);
  font-family: var(--mono);
  transform: rotate(-1.5deg);
  box-shadow: 3px 3px 0 var(--ink);
  animation: bestprice-breathe 2.4s ease-in-out infinite;
}
@keyframes bestprice-breathe {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50%      { transform: rotate(-2.5deg) translateY(-2px); }
}
.bp-label { font-size: 10px; font-weight: 800; letter-spacing: 0.18em; color: var(--ink); }
.bp-val { font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.bp-store { font-size: 11px; font-weight: 700; color: var(--ink-2); }

.sort { display: flex; align-items: center; gap: 0; border: 2.5px solid var(--ink); }
.sort-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--paper);
  background: var(--ink);
  padding: 6px 10px;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.sort-btn {
  background: var(--paper);
  border: none;
  border-left: 2.5px solid var(--ink);
  color: var(--ink);
  padding: 6px 12px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: 140ms;
}
.sort-btn:hover { background: var(--paper-2); }
.sort-on { background: var(--cobalt); color: var(--paper); }
.count {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ============ GRID ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  margin-top: 36px;
}
.grid::before {
  content: "§ 03 — KATALOG";
  position: absolute;
  top: -32px;
  left: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .switches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sw-label { font-size: 18px; }
}
@media (max-width: 820px)  {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .switches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px)  {
  .grid { grid-template-columns: 1fr; }
  .switches { grid-template-columns: 1fr; }
  .hdr { grid-template-columns: 1fr; }
  .hdr-r { min-width: 0; }
  .app { padding: 24px 18px 80px; }
}

.card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 240ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 240ms;
  animation: card-enter 420ms cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes card-enter {
  0%   { opacity: 0; transform: translateY(20px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 6px 6px 0 var(--ink);
  z-index: 2;
}
.card-bump { animation: bump 600ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump {
  0%   { transform: translateY(0) rotate(0deg); }
  30%  { transform: translateY(-10px) rotate(-1.5deg); box-shadow: 8px 8px 0 var(--acid-2); }
  100% { transform: translateY(0) rotate(0deg); }
}
.card-full {
  background: var(--acid);
  box-shadow: 6px 6px 0 var(--ink);
  animation: full-breathe 2.4s ease-in-out infinite, card-enter 420ms cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes full-breathe {
  0%, 100% { box-shadow: 6px 6px 0 var(--ink); }
  50%      { box-shadow: 8px 8px 0 var(--ink), 0 0 0 3px var(--ink); }
}
.card-badge {
  position: absolute;
  top: -12px; left: -10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--paper);
  background: var(--ink);
  padding: 5px 10px;
  z-index: 3;
  transform: rotate(-5deg);
  border: 2px solid var(--ink);
  animation: badge-bounce 1.6s ease-in-out infinite;
}
@keyframes badge-bounce {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-2px); }
}

.card-type {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--ink);
}
.card-mock {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  height: 140px;
  overflow: hidden;
  transition: 220ms;
  position: relative;
}
.card:hover .card-mock { background: var(--paper-3); }
.mock-svg { width: 100%; height: 100%; transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1); }
.card:hover .mock-svg { transform: scale(1.08) rotate(-2deg); }
.card-product-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  width: auto;
  height: auto;
  transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.18));
}
.card:hover .card-product-img { transform: translate(-50%, calc(-50% - 3px)) scale(1.08); }
.card-brand {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.card-model {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: -2px;
}
.card-spec {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

/* Keyboard spec chips */
.kb-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.kb-chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-transform: uppercase;
  transition: 200ms cubic-bezier(.34, 1.56, .64, 1);
}
.card:hover .kb-chip:nth-child(odd) { transform: rotate(-2deg); }
.card:hover .kb-chip:nth-child(even) { transform: rotate(2deg); }
.kb-chip-form { background: var(--cobalt); color: var(--paper); border-color: var(--ink); }
.kb-chip-conn { background: var(--paper-2); }
.kb-chip-hot  { background: var(--hot); color: var(--paper); }
.kb-sw-linear  { background: var(--sky); }
.kb-sw-tactile { background: var(--gold); }
.kb-sw-clicky  { background: var(--acid); }
.kb-sw-membran { background: var(--paper-3); color: var(--ink-3); }

.card-stats { display: grid; gap: 6px; margin-top: 6px; }
.stat { display: grid; grid-template-columns: 36px 1fr 38px; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; font-weight: 800; }
.stat-label {
  color: var(--paper);
  background: var(--ink);
  letter-spacing: 0.1em;
  padding: 2px 6px;
  text-align: center;
}
.stat-bar { height: 8px; background: var(--paper-3); border: 1.5px solid var(--ink); overflow: hidden; }
.stat-fill {
  height: 100%;
  background: var(--ink);
  transition: width 520ms cubic-bezier(.34, 1.56, .64, 1);
}
.stat-v { color: var(--ink); text-align: right; }

.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ctag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 3px 7px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  transition: 200ms cubic-bezier(.34, 1.56, .64, 1);
}
.ctag-on {
  background: var(--ink);
  color: var(--paper);
  transform: scale(1.1);
}

.card-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1.5px solid var(--ink);
}
.card-price { display: flex; align-items: baseline; gap: 2px; }
.price-cur { font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--ink-3); }
.price-num {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.card-store {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-transform: uppercase;
}

.card-match {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
}
.match-bar { height: 10px; background: var(--paper-3); border: 1.5px solid var(--ink); overflow: hidden; }
.match-fill {
  height: 100%;
  background: var(--ink);
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 4px, rgba(241,235,220,0.35) 4px, rgba(241,235,220,0.35) 8px);
  transition: width 520ms cubic-bezier(.34, 1.56, .64, 1);
  animation: hatch-slide 3s linear infinite;
}
@keyframes hatch-slide {
  0%   { background-position: 0 0; }
  100% { background-position: 24px 0; }
}
.match-num { font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--ink); }

.empty {
  padding: 80px 20px;
  text-align: center;
  border: 3px dashed var(--ink);
  background: var(--paper-2);
  grid-column: 1 / -1;
}
.empty-icon {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 800;
  color: var(--hot);
  margin-bottom: 8px;
  line-height: 1;
  animation: bullet-pulse 1.2s ease-in-out infinite;
}
.empty-title { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; }
.empty-sub { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--ink-2); margin-top: 6px; }

.legend {
  margin-top: 40px;
  padding: 16px 0 0;
  border-top: 3px solid var(--ink);
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.legend-r {
  font-family: var(--display);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Selection */
::selection { background: var(--acid); color: var(--ink); }

/* ============ STICKERS / DECORATIVE EDITORIAL ELEMENTS ============ */
.stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.sticker {
  position: absolute;
  pointer-events: none;
}

/* Spiky asterisk burst — top right of hero */
.sticker-burst {
  top: 80px;
  right: 36%;
  width: 70px;
  height: 70px;
  color: var(--hot);
  animation: burst-spin 14s linear infinite;
}
@keyframes burst-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* NEW / YENİ stamp — bottom-left of hero */
.sticker-new {
  top: 200px;
  right: -8px;
  width: 110px;
  height: 110px;
  border: 3px solid var(--ink);
  background: var(--cobalt);
  color: var(--paper);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  transform: rotate(-12deg);
  animation: new-jitter 4s ease-in-out infinite;
  box-shadow: 5px 5px 0 var(--ink);
}
@keyframes new-jitter {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50%      { transform: rotate(-9deg) translateY(-4px); }
}
.sticker-new-l1 {
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 0.9;
  display: block;
}
.sticker-new-l2 {
  font-size: 14px;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  opacity: 0.85;
  display: block;
}
.sticker-new-stars {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-top: 2px;
  color: var(--acid);
}

/* Asterisk star — left of filter panel */
.sticker-asterisk {
  top: 500px;
  left: -10px;
  width: 50px;
  height: 50px;
  color: var(--ink);
  animation: asterisk-spin 22s linear infinite;
}
@keyframes asterisk-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* "İNDİRİM" stamp — far right, mid-page */
.sticker-stamp {
  top: 760px;
  right: -20px;
  font-family: var(--display);
  font-weight: 800;
  background: var(--hot);
  color: var(--paper);
  padding: 12px 22px;
  font-size: 22px;
  letter-spacing: -0.02em;
  border: 3px solid var(--ink);
  transform: rotate(8deg);
  box-shadow: 6px 6px 0 var(--ink);
  text-align: center;
}
.sticker-stamp small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  margin-top: 4px;
  opacity: 0.85;
}

/* Hand-drawn arrow — points at filter panel */
.sticker-arrow {
  top: 410px;
  right: 20px;
  width: 100px;
  height: 50px;
  color: var(--ink);
  transform: rotate(8deg) scaleX(-1);
}

/* Bottom tape banner */
.sticker-tape {
  bottom: 30px;
  left: -8%;
  right: -8%;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.32em;
  padding: 6px 0;
  text-align: center;
  transform: rotate(-2deg);
  border-top: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  white-space: nowrap;
  overflow: hidden;
}
.sticker-tape span {
  display: inline-block;
  padding: 0 8px;
  animation: tape-glow 3s ease-in-out infinite;
}
@keyframes tape-glow {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

@media (max-width: 900px) {
  .sticker-new { width: 80px; height: 80px; top: 250px; right: -10px; }
  .sticker-new-l1 { font-size: 16px; }
  .sticker-new-l2 { font-size: 10px; }
  .sticker-burst { width: 50px; height: 50px; }
  .sticker-arrow { display: none; }
  .sticker-asterisk { display: none; }
  .sticker-stamp { font-size: 16px; padding: 8px 14px; right: -10px; }
}

/* ============ BIG BACKGROUND NUMERALS ============ */
.board { position: relative; }
.board > .switches:first-of-type { position: relative; z-index: 1; }
.board::before {
  content: "01";
  position: absolute;
  bottom: -40px;
  left: -20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 280px;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(13, 13, 14, 0.04);
  pointer-events: none;
  z-index: 0;
}
.app { position: relative; }
.grid > * { position: relative; z-index: 1; }

/* ============ NEW: SWITCH GROUP LABELS + TYPE ROW ============ */
.sw-group-label {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink);
  margin: 4px 0 12px;
  padding-bottom: 4px;
}
.sw-group-label:not(:first-child) { margin-top: 22px; }

.switches-type {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
  margin-bottom: 6px;
}
.switches-type .sw:nth-child(1) { transform: rotate(-0.6deg); }
.switches-type .sw:nth-child(2) { transform: rotate(0.6deg); }
.switches-type .sw:hover { transform: translateY(-4px) rotate(0deg) scale(1.02); }

/* ============ NEW: ResultsBar redesign ============ */
.rbar-l {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.count-big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.04em;
  line-height: 0.9;
  background: var(--ink);
  color: var(--acid);
  padding: 2px 12px;
  display: inline-block;
}
.count-label {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

/* Bestprice now is an anchor */
a.bestprice {
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
}
a.bestprice:hover {
  background: var(--ink);
  color: var(--acid);
  animation-play-state: paused;
  transform: rotate(-1.5deg) translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--ink);
}
a.bestprice:hover .bp-label,
a.bestprice:hover .bp-val,
a.bestprice:hover .bp-store,
a.bestprice:hover .bp-arrow { color: var(--acid); }
.bp-arrow {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  margin-left: 6px;
}

/* ============ NEW: Card as anchor ============ */
a.card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.card:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 4px;
}

.card-cta {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 8px 0 4px;
  border-top: 1.5px dashed var(--ink);
  margin-top: 6px;
  color: var(--ink);
  text-transform: uppercase;
  opacity: 0.6;
  transition: 200ms;
}
.card:hover .card-cta {
  opacity: 1;
  background: var(--ink);
  color: var(--acid);
  border-top-style: solid;
  margin: 6px -14px -14px;
  padding: 10px 14px;
}
.card-full .card-cta { opacity: 1; color: var(--ink); }
.card-full:hover .card-cta { background: var(--ink); color: var(--acid); }
