/* ══════════════════════════════════════
   İsmail Şahin - REFINED GAME DASHBOARD
   Modal Contact + Original Cursor
   ══════════════════════════════════════ */

/* DM Sans: sade, modern, tüm ekranlarda rahat okunur; oyun teması renk/çerçeve ile devam */
/* Font import moved to HTML for performance */

:root {
  /* ── DEFAULT (Slate / Retro Classic) ── */
  --sky-start: #1a1f2e;
  --sky-end: #2d3348;
  --mario-red: #e05c6a;
  --mario-green: #5c9e6e;
  --mario-yellow: #c4a84a;
  --mario-yellow-bright: #d4b85a;
  --mario-blue: #4a7abf;
  --mario-brick: #8a5a40;

  /* UI Element Colors */
  --pixel-black: #000000;
  --pixel-white: #e8e2d8;
  --pixel-surface: #ddd6cb;
  --pixel-surface-elev: #d0c9bd;
  --panel-bg: linear-gradient(180deg, #d8d2c8 0%, #c8c0b4 100%);
  --energy-fill: linear-gradient(90deg, #4a7abf, #7aa8d8);

  --ink: #1e1c19;
  --text-muted: #6a6056;
  --font-main: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --font-retro: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --space-page: 40px 20px;
  --space-page-mobile: max(12px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom)) 14px;
  --section-stack-gap: 25px;
}

/* ── THEME DEFINITIONS ── */

/* Neon (Cyberpunk) — Koyu zemin, parlak neon vurgular */
[data-theme="neon"] {
  --sky-start: #0a0a2e;
  --sky-end: #16163a;
  --mario-red: #ff2d55;
  --mario-green: #00e676;
  --mario-yellow: #ffea00;
  --mario-yellow-bright: #ffff00;
  --mario-blue: #00d2ff;
  --mario-brick: #6c2eb5;
  --pixel-white: #12122a;
  --pixel-surface: #1a1a38;
  --pixel-surface-elev: #22224a;
  --panel-bg: linear-gradient(180deg, #1a1a38 0%, #12122a 100%);
  --energy-fill: linear-gradient(90deg, #6c2eb5, #b52ea8);
  --ink: #e0e0ff;
  --text-muted: #9898c0;
}

/* Orman (Forest) — Doğa tonları, toprak ve yeşil */
[data-theme="forest"] {
  --sky-start: #0d1f0d;
  --sky-end: #1a3a1a;
  --mario-red: #c0572a;
  --mario-green: #4a8c4a;
  --mario-yellow: #a89040;
  --mario-yellow-bright: #c4a84a;
  --mario-blue: #2e7070;
  --mario-brick: #7a4a2a;
  --pixel-white: #eef4de;
  --pixel-surface: #dce8c0;
  --pixel-surface-elev: #cad8a8;
  --panel-bg: linear-gradient(180deg, #dce8c0 0%, #cad8a8 100%);
  --energy-fill: linear-gradient(90deg, #4a8c4a, #6ab56a);
  --ink: #1a2e1a;
  --text-muted: #4a6040;
}

/* Buz (Ice) — Soğuk maviler, kristal netliği */
[data-theme="ice"] {
  --sky-start: #0a2040;
  --sky-end: #1e4a80;
  --mario-red: #f06060;
  --mario-green: #20c997;
  --mario-yellow: #ffd43b;
  --mario-yellow-bright: #ffeaa0;
  --mario-blue: #60b8ff;
  --mario-brick: #3a80cc;
  --pixel-white: #f0f7ff;
  --pixel-surface: #deeeff;
  --pixel-surface-elev: #c8e4ff;
  --panel-bg: linear-gradient(180deg, #deeeff 0%, #c8e4ff 100%);
  --energy-fill: linear-gradient(90deg, #1e4a80, #60b8ff);
  --ink: #08203a;
  --text-muted: #2a5a90;
}

/* Ateş (Fire) — Sıcak turuncu/bakır tonlar, göz yormaz */
[data-theme="fire"] {
  --sky-start: #3d1200;
  --sky-end: #6b2400;
  --mario-red: #ff4500;
  --mario-green: #ffd600;
  --mario-yellow: #ffb300;
  --mario-yellow-bright: #ffea00;
  --mario-blue: #ff7722;
  --mario-brick: #c0390a;
  --panel-bg: linear-gradient(180deg, #5a2000 0%, #3d1200 100%);
  --energy-fill: linear-gradient(90deg, #c0390a, #ffb300);
  --pixel-white: #2d1200;
  --pixel-surface: #3d1800;
  --pixel-surface-elev: #4e2000;
  --ink: #ffecd2;
  --text-muted: #ffa070;
}

/* Bir tık büyük temel: rem ölçüleri hafifçe artar (≈ 17px) */
html {
  font-size: 106.25%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(40, 35, 30, 0.12);
  scrollbar-gutter: stable; /* Prevents layout jump when scrollbar appears */
}

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

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--sky-start); /* Prevent white flash before BG layers load */
  color: var(--ink);
  overflow-x: hidden;
  text-size-adjust: 100%;
  padding-top: 15px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* ── PARALLAX BACKDROP ── */
.world-bg {
  position: fixed; inset: 0; z-index: -5;
  background: linear-gradient(
    175deg,
    var(--sky-start) 0%,
    var(--sky-end) 100%
  );
  animation: sky-shift 20s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
  height: 120vh; /* Address bar expansion safety */
}
@keyframes sky-shift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(8deg) brightness(1.05); }
  100% { filter: hue-rotate(-5deg) brightness(0.95); }
}

/* Siberpunk Şehir Silüeti */
.layer-city {
  position: fixed; inset: 0; z-index: -4; pointer-events: none;
  background: url('../img/cyberpunk_city_pixel.png') bottom center / cover no-repeat;
  opacity: 0.15;
  mix-blend-mode: luminosity; /* Adapts to the active theme's colors perfectly */
  transform: translate3d(0, 0, 0);
}

/* Yıldızlar — parlak ve belirgin */
.layer-clouds {
  position: fixed; inset: 0; z-index: -4; pointer-events: none;
  transform: translate3d(0, 0, 0);
  height: 120vh;
  background-image:
    radial-gradient(2px 2px at  8% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 22% 28%, rgba(200,220,255,0.9), transparent),
    radial-gradient(2.5px 2.5px at 38%  8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 52% 42%, rgba(255,200,150,0.7), transparent),
    radial-gradient(2px 2px at 68% 18%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 82% 55%, rgba(200,220,255,0.8), transparent),
    radial-gradient(2px 2px at 12% 58%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 33% 72%, rgba(200,200,255,0.7), transparent),
    radial-gradient(2px 2px at 58% 62%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 78%, rgba(255,220,180,0.8), transparent),
    radial-gradient(1.5px 1.5px at  4% 88%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 46% 32%, rgba(200,230,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 90% 10%, #fff, transparent),
    radial-gradient(2px 2px at 28% 92%, rgba(255,255,200,0.6), transparent),
    radial-gradient(2.5px 2.5px at 72% 5%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.5px 1.5px at 16% 38%, #fff, transparent),
    radial-gradient(2px 2px at 95% 70%, rgba(200,220,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 44% 82%, rgba(255,255,255,0.5), transparent);
  animation: stars-twinkle 4s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
}
@keyframes stars-twinkle {
  0%   { opacity: 0.4; }
  50%  { opacity: 1; }
  100% { opacity: 0.5; }
}

/* Perspektif ızgara deseni — siber/retro hissi */
.layer-mountains {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 40vh;
  z-index: -3; pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(100,140,200,0.06) 0px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(100,140,200,0.06) 0px,
      transparent 1px,
      transparent 40px
    );
  mask-image: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 100%);
  animation: grid-scroll 30s linear infinite;
  transform: translate3d(0, 0, 0);
}
@keyframes grid-scroll {
  from { background-position: 0 0; }
  to   { background-position: 0 40px; }
}

/* Alt ufuk — ince parlayan çizgi + sis */
.layer-trees {
  position: fixed; bottom: 0; left: 0; width: 100%; height: 15vh;
  z-index: -2; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(100,140,200,0.08) 0px, transparent 2px),
    linear-gradient(0deg, rgba(15, 20, 30, 0.5) 0%, transparent 100%);
  transform: translate3d(0, 0, 0);
}

#bgParticles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


/* ── GRID CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 320px 1fr; gap: var(--section-stack-gap); position: relative; align-items: start; }

/* ── THE PIXEL BOX ── */
.pixel-box { background: var(--pixel-black); border: 5px solid var(--pixel-black); padding: 0; margin: 0; box-shadow: 8px 8px 0px rgba(0,0,0,0.32); position: relative; }
.box-label { background: var(--pixel-black); color: #fff; font-family: var(--font-retro); font-weight: 700; letter-spacing: 0.06em; font-size: 0.7rem; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; }
.box-content { padding: 25px; background: var(--pixel-white); color: var(--ink); transition: background-color 0.4s ease, color 0.4s ease; }

/* ── SIDEBAR HUD ── */
.sidebar {
  position: sticky;
  top: 40px;
  height: fit-content;
  backface-visibility: hidden;
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  gap: var(--section-stack-gap);
  min-width: 0;
}
/* Masaüstü: sarmalayıcı düzeni değiştirmez; mobilde ızgara ile yan yana (avatar + istatistik) */
.sidebar-hud__body { display: flex; flex-direction: column; min-width: 0; align-items: stretch; gap: 0; }
/* Siyah bant: avatar’da değil stats’ta; sticky kaydırmada iki blok arasına 1px “çatlak” görünmesin */
.avatar-frame {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 1;
  border-bottom: 0;
  overflow: hidden;
  background: var(--pixel-surface-elev);
  line-height: 0;
  flex-shrink: 0;
  isolation: isolate;
  contain: layout;
}
.avatar-frame img,
.avatar-frame video.avatar-frame__media {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: calc(100% + 2px);
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
  display: block;
  margin: 0;
  padding: 0;
  transform: translate3d(0, 0, 0);
}
.avatar-frame video.avatar-frame__media {
  pointer-events: none;
}
#matrixCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8; /* Biraz şeffaflık ile resmi çok kapatmasın */
}
.avatar-ping {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 8;
  display: grid;
  grid-template-columns: 14px max-content minmax(56px, max-content);
  column-gap: 6px;
  row-gap: 4px;
  align-items: center;
  padding: 6px 8px 6px;
  background: rgba(0, 0, 0, 0.62);
  border-left: 3px solid var(--mario-green);
  box-shadow: 0 0 12px rgba(0,0,0,0.35);
  color: #fff;
  font-family: var(--font-retro);
  font-size: 0.54rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.95), 0 0 8px rgba(0,0,0,0.9);
  pointer-events: none;
}
.avatar-ping__sep {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 2px 0 1px;
  height: 0;
  align-self: center;
}
.avatar-ping__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mario-green);
  box-shadow: 0 0 8px var(--mario-green);
  animation: ping-dot-live 1.2s ease-in-out infinite;
  justify-self: center;
}
.avatar-ping__arrow {
  font-size: 0.44rem;
  line-height: 1;
  color: var(--mario-green);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.85), 0 0 6px color-mix(in srgb, var(--mario-green) 55%, transparent);
  justify-self: center;
}
.avatar-ping__label {
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}
.avatar-ping__value {
  color: var(--mario-green);
  text-align: right;
  justify-self: stretch;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.9), 0 0 8px var(--mario-green);
}
.avatar-ping.is-syncing {
  border-left-color: var(--mario-yellow);
}
.avatar-ping.is-syncing .avatar-ping__dot,
.avatar-ping.is-syncing .avatar-ping__value {
  color: var(--mario-yellow);
  background: var(--mario-yellow);
  box-shadow: 0 0 8px var(--mario-yellow);
}
.avatar-ping.is-syncing .avatar-ping__value {
  background: transparent;
}
.avatar-ping.is-syncing .avatar-ping__arrow {
  color: var(--mario-yellow);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.85), 0 0 6px color-mix(in srgb, var(--mario-yellow) 55%, transparent);
}
.avatar-ping.is-offline {
  border-left-color: var(--mario-red);
}
.avatar-ping.is-offline .avatar-ping__dot,
.avatar-ping.is-offline .avatar-ping__value {
  color: var(--mario-red);
  background: var(--mario-red);
  box-shadow: 0 0 8px var(--mario-red);
}
.avatar-ping.is-offline .avatar-ping__value {
  background: transparent;
}
.avatar-ping.is-offline .avatar-ping__arrow {
  color: var(--mario-red);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.85), 0 0 6px color-mix(in srgb, var(--mario-red) 55%, transparent);
}
@keyframes ping-dot-live {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.12); }
}
.stats-bar {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  padding: 16px 14px 18px;
  background: var(--pixel-white);
  border-top: 5px solid var(--pixel-black);
  font-family: var(--font-retro);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 1.02em;
  flex: 0 0 auto;
}
.bar-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.bar-block:last-of-type { margin-bottom: 0; }
.bar-block-head {
  display: flex;
  align-items: center;
  min-height: 1.1em;
}
.bar-block-title { font-family: var(--font-retro); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; }
.bar-block--en { margin-top: 8px; }

.hud-bar-ico {
  margin-right: 6px;
  opacity: 0.95;
  font-size: 0.85em;
  vertical-align: -0.08em;
}

.hp-gauge, .energy-gauge { 
  height: 18px; 
  border: 3px solid var(--pixel-black); 
  background: rgba(0,0,0,0.55); 
  margin: 0; 
  position: relative; 
  overflow: hidden; 
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

/* Glass highlight for all gauges */
.hp-gauge::before, .energy-gauge::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 40%;
  background: rgba(255,255,255,0.15);
  z-index: 2;
  pointer-events: none;
}

.hp-fill, .energy-fill { 
  height: 100%; 
  max-width: 100%; 
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  align-items: center;
}

/* Segmented pattern overlay */
.hp-fill::before, .energy-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 10% 100%; /* Creates 10 segments */
  z-index: 1;
}

.hp-fill { 
  background: linear-gradient(180deg, #ff5f57 0%, #ff2d55 50%, #d4143a 100%);
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.3);
}

.energy-fill { 
  background: linear-gradient(180deg, #4dabf7 0%, #00d2ff 50%, #00a8cc 100%);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

/* Shimmer effect refined */
.hp-fill::after, .energy-fill::after {
  content: ""; 
  position: absolute; 
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: bar-shimmer 3s infinite linear;
  z-index: 3;
}

.bar-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-family: var(--font-retro);
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 
    1px 1px 0 #000, 
    -1px 1px 0 #000, 
    1px -1px 0 #000, 
    -1px -1px 0 #000,
    0 1px 2px rgba(0,0,0,0.8);
  letter-spacing: 0.08em;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
}

.hp-line { color: var(--mario-red); text-shadow: 0 0 4px rgba(255,45,85,0.2); }
.energy-line { color: var(--mario-blue); text-shadow: 0 0 4px rgba(0,210,255,0.2); }

@keyframes bar-shimmer { 
  0% { transform: translateX(-100%) skewX(-15deg); } 
  30%, 100% { transform: translateX(250%) skewX(-15deg); } 
}

/* Hover effects for bars */
.bar-block:hover .hp-fill, .bar-block:hover .energy-fill { 
  filter: brightness(1.2) saturate(1.2); 
  box-shadow: 0 0 15px currentColor;
}
.player-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 3px solid var(--pixel-black);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.stat-line {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: baseline;
  column-gap: 10px;
  font-size: 0.62rem;
  line-height: 1.4;
}
.stat-key {
  font-family: var(--font-retro);
  font-weight: 700;
  font-size: 0.52rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 2px 0;
}
.stat-val {
  font-family: var(--font-retro);
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--ink);
  word-break: break-word;
  min-width: 0;
}
.stat-val--sub {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
}
@keyframes pulse-light { 
  0% { opacity: 0.6; box-shadow: 0 0 2px rgba(255,255,255,0.4); } 
  100% { opacity: 1; box-shadow: 0 0 8px rgba(255,255,255,0.9); } 
}

/* ── JOB AVAILABILITY BANNER (QUEST BOARD) ── */
.job-availability-box {
  background: var(--pixel-white) !important;
  transition: background-color 0s !important;
}

.job-availability-box .box-content {
  background: transparent !important;
  transition: background-color 0s !important;
}

.job-availability-box .box-label {
  transition: background-color 0s !important;
}

.hire-me-banner {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 14px 18px;
  background: var(--pixel-white);
  border: none;
  outline: none;
  cursor: pointer !important;
  text-align: left;
  transition:
    transform 0.2s ease-out,
    background-color 0.2s ease,
    box-shadow 0.2s ease-out;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

/* Neon köşe L-çizgileri (4 köşe) — metnin altında, arka plan üstünde */
.hire-me-banner::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 200, 170, 0.95) 0 16px, transparent 16px) left top / 48px 2px no-repeat,
    linear-gradient(180deg, rgba(0, 200, 170, 0.95) 0 16px, transparent 16px) left top / 2px 48px no-repeat,
    linear-gradient(270deg, rgba(200, 80, 200, 0.92) 0 16px, transparent 16px) right top / 48px 2px no-repeat,
    linear-gradient(180deg, rgba(200, 80, 200, 0.92) 0 16px, transparent 16px) right top / 2px 48px no-repeat,
    linear-gradient(90deg, rgba(200, 160, 60, 0.9) 0 16px, transparent 16px) left bottom / 48px 2px no-repeat,
    linear-gradient(0deg, rgba(200, 160, 60, 0.9) 0 16px, transparent 16px) left bottom / 2px 48px no-repeat,
    linear-gradient(270deg, rgba(0, 200, 170, 0.95) 0 16px, transparent 16px) right bottom / 48px 2px no-repeat,
    linear-gradient(0deg, rgba(0, 200, 170, 0.95) 0 16px, transparent 16px) right bottom / 2px 48px no-repeat;
  filter: drop-shadow(0 0 4px rgba(0, 220, 190, 0.35));
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.hire-me-banner:hover::after {
  opacity: 1;
}

.hire-me-banner:focus-visible::after {
  opacity: 1;
}

.hire-me-banner--closed::after {
  filter: drop-shadow(0 0 3px rgba(140, 140, 150, 0.25));
  background:
    linear-gradient(90deg, rgba(120, 125, 135, 0.95) 0 16px, transparent 16px) left top / 48px 2px no-repeat,
    linear-gradient(180deg, rgba(120, 125, 135, 0.95) 0 16px, transparent 16px) left top / 2px 48px no-repeat,
    linear-gradient(270deg, rgba(120, 125, 135, 0.95) 0 16px, transparent 16px) right top / 48px 2px no-repeat,
    linear-gradient(180deg, rgba(120, 125, 135, 0.95) 0 16px, transparent 16px) right top / 2px 48px no-repeat,
    linear-gradient(90deg, rgba(120, 125, 135, 0.95) 0 16px, transparent 16px) left bottom / 48px 2px no-repeat,
    linear-gradient(0deg, rgba(120, 125, 135, 0.95) 0 16px, transparent 16px) left bottom / 2px 48px no-repeat,
    linear-gradient(270deg, rgba(120, 125, 135, 0.95) 0 16px, transparent 16px) right bottom / 48px 2px no-repeat,
    linear-gradient(0deg, rgba(120, 125, 135, 0.95) 0 16px, transparent 16px) right bottom / 2px 48px no-repeat;
}

[data-theme="neon"] .hire-me-banner--open::after,
[data-theme="fire"] .hire-me-banner--open::after {
  filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.55)) drop-shadow(0 0 6px rgba(255, 0, 180, 0.35));
}

/* scale kullanma: ikon–metin gap’i vb. görsel olarak büyüyüp küçülüyor */
.hire-me-banner:hover {
  transform: translateY(-2px);
}


.hire-me-icon {
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  z-index: 1;
}

.quest-marker {
  width: 44px;
  height: 44px;
  background: var(--mario-yellow);
  color: #000;
  font-family: var(--font-retro);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: quest-float 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.quest-marker i {
  animation: quest-spin 4s linear infinite;
}

@keyframes quest-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.quest-marker--locked {
  background: #9e9e9e;
  font-size: 1rem;
  animation: none;
}

@keyframes quest-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); filter: brightness(1.2); }
}

.hire-me-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  min-width: 0;
  z-index: 1;
  contain: layout;
}

.hire-me-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  min-height: 0;
}

.hire-title {
  font-family: var(--font-retro);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.hire-desc {
  display: block;
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: var(--ink);
  opacity: 0.85;
  font-weight: 500;
  line-height: 1.32;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.hire-me-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-family: var(--font-retro);
  font-size: 0.6rem;
  font-weight: 900;
  border: 2px solid #000;
  background: var(--pixel-surface-elev);
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.05em;
  box-shadow: 2px 2px 0 #000;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.quest-ready {
  background: var(--mario-green);
  color: #000;
  border-color: var(--pixel-black);
}

.hire-me-banner--open {
  background: linear-gradient(135deg, var(--pixel-white) 0%, var(--pixel-surface) 100%);
  border: none !important;
  box-shadow: inset 0 0 20px rgba(0, 230, 118, 0.05);
}

[data-theme="neon"] .hire-me-banner--open {
  background: linear-gradient(135deg, rgba(26, 26, 56, 0.8) 0%, rgba(18, 18, 42, 0.9) 100%);
  border: none !important;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.1);
}

.hire-me-banner--open:hover {
  box-shadow: inset 0 0 30px rgba(0, 230, 118, 0.1);
  transform: translateY(-2px);
}

[data-theme="neon"] .hire-me-banner--open:hover {
  box-shadow: inset 0 0 40px rgba(0, 230, 118, 0.15);
}

.quest-busy {
  background: var(--mario-red);
  color: #fff;
  border-color: #000;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #fff;
  animation: pulse-light 1s infinite alternate;
}

@media (max-width: 600px) {
  .hire-me-banner { padding: 12px 12px; }
  .hire-me-icon { width: 42px; height: 42px; margin-right: 10px; margin-top: 1px; }
  .quest-marker { width: 36px; height: 36px; font-size: 1rem; border-width: 3px; }
  .hire-title { font-size: 1rem; }
  .hire-desc { font-size: 0.8rem; }
}

/* ── CREATIVE MISSION ENHANCEMENTS ── */

.quest-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--mario-yellow) 0%, transparent 70%);
  opacity: 0.28;
  filter: blur(6px);
  z-index: -1;
  animation: quest-glow-pulse 2.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes quest-glow-pulse {
  from { transform: scale(1); opacity: 0.18; }
  to { transform: scale(1.12); opacity: 0.32; }
}

.mission-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
  margin-top: 0;
  padding-top: 6px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 520px) {
  .mission-meta {
    grid-template-columns: 1fr;
  }
}

[data-theme="neon"] .mission-meta,
[data-theme="fire"] .mission-meta {
  border-top-color: rgba(255,255,255,0.1);
}

.mission-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-family: var(--font-retro);
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-retro);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mario-blue);
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

.stat-value i {
  font-size: 0.65rem;
  margin-right: 1px;
}

/* Progress Bar for Closed Status */
.mission-progress-wrap {
  margin-top: 15px;
  width: 100%;
}

.mission-progress-label {
  font-family: var(--font-retro);
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.mission-progress-bar {
  height: 12px;
  background: rgba(0,0,0,0.1);
  border: 2px solid var(--pixel-black);
  position: relative;
  overflow: hidden;
}

[data-theme="neon"] .mission-progress-bar {
  background: rgba(255,255,255,0.05);
}

.mission-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mario-green), #a8e063);
  position: relative;
  transition: width 1s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
}

.mission-progress-percent {
  font-family: var(--font-retro);
  font-size: 0.5rem;
  font-weight: 900;
  color: #000;
  text-shadow: 0 0 2px rgba(255,255,255,0.5);
}

.mission-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: bar-shimmer 2s infinite linear;
}




/* ── ACHIEVEMENTS ── */
.achievements-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 3px solid var(--pixel-black);
}
.ach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ach-title {
  font-size: 0.58rem;
  font-family: var(--font-retro);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.ach-count {
  font-size: 0.52rem;
  font-family: var(--font-retro);
  font-weight: 700;
  color: var(--mario-green);
  letter-spacing: 0.03em;
}
.ach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: var(--pixel-surface);
  border: 2px solid var(--pixel-black);
  transition: transform 0.12s, box-shadow 0.12s;
}
.ach-item:hover {
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 var(--pixel-black);
}
.ach-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(0,0,0,0.2);
}
.ach-label {
  font-size: 0.52rem;
  font-family: var(--font-retro);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
/* Renk varyantları */
.ach--gold .ach-icon  { background: var(--mario-yellow); }
.ach--green .ach-icon { background: var(--mario-green); }
.ach--blue .ach-icon  { background: var(--mario-blue); }
.ach--red .ach-icon   { background: var(--mario-red); }

/* ── GRID CONTENT ── */
.main-content { display: flex; flex-direction: column; gap: var(--section-stack-gap); min-width: 0; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
/* Aynı satırdaki kartlar eşit yükseklikte; butonlar altta, tam genişlik, hizalı */
.project-card {
  border: 3px solid var(--pixel-black);
  background: var(--pixel-surface-elev);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  height: 100%;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  overflow: hidden;
}
/* Neon virüs overlay’i mutlak konumlar — kutunun içinde kayar */
.project-card,
.blog-block-item,
.hire-me-banner {
  position: relative;
}

.mission-text { font-size: 1rem; line-height: 1.65; font-weight: 500; padding: 18px; }
.mission-text--syslog {
  padding: 12px 14px;
  background: var(--pixel-white);
  color: var(--ink);
  box-shadow: none;
  overflow: hidden;
}
.syslog-body {
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.62;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.syslog-line {
  margin: 0;
  display: block;
  padding: 2px 0;
  opacity: 0;
  transform: translateY(2px);
  animation: syslog-line-in 0.45s ease forwards;
  animation-delay: calc(var(--line-order, 0) * 0.1s);
}
.syslog-time {
  color: var(--mario-blue);
  font-weight: 800;
  white-space: nowrap;
  margin-right: 8px;
}
.syslog-level {
  display: inline;
  color: var(--mario-green);
  font-family: var(--font-retro);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 0 0 7px color-mix(in srgb, var(--mario-green) 55%, transparent);
  margin-right: 8px;
}
.syslog-level::before {
  content: "●";
  display: inline-block;
  margin-right: 5px;
  color: var(--mario-yellow);
  text-shadow: 0 0 8px var(--mario-yellow);
  animation: syslog-live-dot 1.1s ease-in-out infinite;
}
.syslog-msg {
  display: inline;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-weight: 600;
  min-width: 0;
}
.syslog-typeout {
  color: var(--ink);
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.syslog-typeout.is-selecting {
  background: color-mix(in srgb, var(--mario-blue) 28%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mario-blue) 40%, transparent);
}
.syslog-line.is-last .syslog-msg::after {
  content: "";
  display: inline-block;
  width: 0.58em;
  height: 1.08em;
  margin-left: 4px;
  background: var(--mario-yellow);
  box-shadow: 0 0 8px color-mix(in srgb, var(--mario-yellow) 60%, transparent);
  vertical-align: -0.18em;
  animation: syslog-block-caret 0.95s steps(1, end) infinite;
}
@media (max-width: 600px) {
  .mission-text--syslog { padding: 10px 12px; }
  .syslog-body { font-size: 0.75rem; }
  .syslog-level {
    font-size: 0.56rem;
    margin-right: 6px;
  }
  .syslog-time { margin-right: 6px; }
}
/* ── Bağlantılar kutusu (yan sütun) — gölge binmesi yok, listeli düzen ── */
.pixel-box--links { overflow: hidden; }
.pixel-box--links .box-content.social-panel { padding: 0; }
.social-panel {
  background: var(--panel-bg);
  border-top: 3px solid #000;
}
.social-list {
  list-style: none;
  margin: 0;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.social-list__item {
  margin: 0;
  padding: 0;
}
.social-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
  font-family: var(--font-retro);
  font-weight: 600;
  font-size: 0.6rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  color: #0a0a0a;
  background: var(--mario-yellow);
  border: 3px solid var(--pixel-black);
  box-shadow: 4px 4px 0px var(--pixel-black);
  transition: background 0.12s, filter 0.12s, transform 0.08s, box-shadow 0.1s;
  box-sizing: border-box;
}
.social-link:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--pixel-black);
}
.social-link__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
  flex-shrink: 0;
}
.social-link__text {
  flex: 0 1 auto;
  text-align: center;
  max-width: 100%;
  word-break: break-word;
}
.social-empty {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  padding: 18px 12px 20px;
  line-height: 1.45;
  background: var(--panel-bg);
  border-top: 3px solid var(--pixel-black);
}
.pixel-box-footer { 
  padding: 18px 14px 22px; 
  border-top: 3px solid var(--pixel-black); 
  background: var(--panel-bg);
  display: flex;
  justify-content: center;
}
.pixel-box-footer .btn-pixel {
  width: 100%;
  background: var(--mario-yellow);
  color: #000;
  box-shadow: 4px 4px 0 #000;
  border-width: 3px;
  font-size: 0.72rem;
}
.pixel-box-footer .btn-pixel:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}
.sidebar-to-blog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #0a0a0a;
  padding: 10px 12px;
  border: 3px solid var(--pixel-black);
  background: var(--mario-yellow);
  box-shadow: 3px 3px 0 var(--pixel-black);
  transition: background 0.12s, filter 0.12s, transform 0.08s;
  box-sizing: border-box;
}
.sidebar-to-blog:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--pixel-black); }
.sidebar-to-blog__ar { display: inline-block; margin-left: 2px; }
.pixel-box-footer .btn-pixel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.pixel-box-footer .sidebar-btn-home {
  margin-top: 10px;
}
.hp-line { color: var(--mario-red); }
.sidebar .box-label { text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar .box-label > span:only-child { width: 100%; text-align: left; }
.level-browser { display: flex; align-items: center; gap: 8px; background: var(--pixel-black); color: #fff; font-family: var(--font-retro); font-weight: 600; font-size: 0.5rem; padding: 8px 10px; border-bottom: 3px solid var(--pixel-black); }
.level-dots { display: flex; gap: 4px; }
.level-dots span { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.level-dots span:nth-child(2) { background: #febc2e; }
.level-dots span:nth-child(3) { background: #28c840; }
.level-url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.9; }
.level-preview { min-height: 150px; background: var(--pixel-surface-elev); position: relative; border-bottom: 3px solid var(--pixel-black); overflow: hidden; isolation: isolate; }
.level-preview-cover { width: 100%; height: 150px; background-size: cover; background-position: center top; }
.level-iframe { width: 100%; height: 150px; border: 0; display: block; background: var(--pixel-white); }
.level-iframe-note { position: absolute; bottom: 0; left: 0; right: 0; z-index: 9; background: rgba(0,0,0,0.75); color: #fff; font-size: 0.55rem; font-weight: 500; font-family: var(--font-main); padding: 4px 6px; line-height: 1.35; }

/* ── Cyberpunk HUD overlay: dijital bilgi + neon köşe brackets ── */
.level-preview::before {
  display: none; /* scanner kaldırıldı */
}
.level-preview::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(rgba(0,255,255,0.95),rgba(0,255,255,0.95))   0    0    / 20px 2px  no-repeat,
    linear-gradient(rgba(0,255,255,0.95),rgba(0,255,255,0.95))   0    0    / 2px  20px no-repeat,
    linear-gradient(rgba(255,0,180,0.95),rgba(255,0,180,0.95))   100% 0    / 20px 2px  no-repeat,
    linear-gradient(rgba(255,0,180,0.95),rgba(255,0,180,0.95))   100% 0    / 2px  20px no-repeat,
    linear-gradient(rgba(255,238,0,0.90),rgba(255,238,0,0.90))   0    100% / 20px 2px  no-repeat,
    linear-gradient(rgba(255,238,0,0.90),rgba(255,238,0,0.90))   0    100% / 2px  20px no-repeat,
    linear-gradient(rgba(0,255,255,0.95),rgba(0,255,255,0.95))   100% 100% / 20px 2px  no-repeat,
    linear-gradient(rgba(0,255,255,0.95),rgba(0,255,255,0.95))   100% 100% / 2px  20px no-repeat;
  filter:
    drop-shadow(0 0 7px rgba(0,255,255,0.82))
    drop-shadow(0 0 8px rgba(255,0,180,0.50));
  transition: opacity 0.2s ease, filter 0.2s ease;
}
/* Dijital bilgi paneli */
.level-hud {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 10px 12px 11px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 6, 18, 0.72) 48%,
    rgba(0, 6, 18, 0.90) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.hud-line {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: rgba(0, 230, 190, 0.92);
  text-shadow: 0 0 7px rgba(0, 255, 200, 0.75);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.hud-label {
  color: rgba(255, 238, 0, 0.80);
  text-shadow: 0 0 6px rgba(255, 238, 0, 0.60);
  font-size: 0.50rem;
  letter-spacing: 0.10em;
  margin-bottom: 1px;
}
.hud-tech {
  color: rgba(0, 230, 190, 0.95);
  text-shadow: 0 0 7px rgba(0, 255, 200, 0.80);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-status { color: rgba(180, 200, 220, 0.80); text-shadow: none; font-size: 0.52rem; }
.hud-status b { color: rgba(0, 255, 160, 0.95); text-shadow: 0 0 8px rgba(0, 255, 140, 0.70); font-style: normal; }
.hud-status b[data-offline] { color: rgba(255, 80, 100, 0.95); text-shadow: 0 0 8px rgba(255, 60, 80, 0.70); }
@media (hover: hover) and (pointer: fine) {
  .project-card.visible:hover .level-preview::after {
    opacity: 1;
    animation: cyber-bracket-pulse 1.6s ease-in-out infinite;
  }
  .project-card.visible:hover .level-hud {
    opacity: 1;
  }
  .project-card.visible:hover .hud-line {
    opacity: 1;
    transform: translateY(0);
  }
  .project-card.visible:hover .hud-line:nth-child(1) { transition-delay: 0.04s; }
  .project-card.visible:hover .hud-line:nth-child(2) { transition-delay: 0.11s; }
  .project-card.visible:hover .hud-line:nth-child(3) { transition-delay: 0.18s; }
}
@keyframes cyber-bracket-pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 5px rgba(0,255,255,0.65))
      drop-shadow(0 0 6px rgba(255,0,180,0.40));
  }
  50% {
    filter:
      drop-shadow(0 0 13px rgba(0,255,255,0.98))
      drop-shadow(0 0 12px rgba(255,0,180,0.68));
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-card.visible:hover .level-preview::after { animation: none !important; }
}

.level-preview-fav { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; gap: 8px; padding: 10px; }
.fav-ico { width: 48px; height: 48px; image-rendering: auto; }
.fav-ico.placeholder { display: flex; align-items: center; justify-content: center; background: var(--pixel-surface-elev); border: 3px solid #000; font-size: 1.2rem; }
.host-line { font-family: var(--font-main); font-weight: 500; font-size: 0.8rem; text-align: center; word-break: break-all; color: var(--ink); }
.level-title, .level-desc, .level-tech { padding: 0 12px; }
/* Butonu olmayan kartlarda ızgara yüksekliğini doldurur; metin yukarıda kalır */
.level-card__fill { flex: 1 1 auto; min-height: 0; width: 100%; margin: 0; }
.level-title { font-family: var(--font-retro); font-weight: 700; font-size: 0.68rem; color: var(--mario-brick); margin-top: 12px; }
.level-desc { font-size: 0.9rem; font-weight: 500; color: var(--ink); line-height: 1.5; margin-top: 6px; flex: 0 0 auto; }
.level-tech { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-top: 6px; flex: 0 0 auto; }
/* Aynı satırdaki kartlarda eşit yükseklik: margin-top: auto + grid stretch */
.level-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  margin: 0;
  margin-top: auto;
  padding: 12px;
  border-top: 3px solid var(--pixel-black);
  background: var(--pixel-surface);
  flex: 0 0 auto;
}
.level-actions .btn-pixel {
  width: 100%;
  max-width: none;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  margin: 0;
}
.level-actions a.btn-pixel { text-decoration: none; }
.empty-levels { text-align: center; padding: 1rem; font-size: 0.95rem; font-weight: 500; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-msg { margin-top: 10px; text-align: center; font-family: var(--font-main); font-weight: 500; font-size: 0.85rem; }

/* ── THEME SWITCHER UI ── */
.theme-selector {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  border: 2px solid #000;
  z-index: 10;
}
.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { transform: scale(1.3); box-shadow: 0 0 8px rgba(255,255,255,0.8); }
.theme-dot::after {
  content: attr(data-name);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 0.6rem;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 5px;
}
.theme-dot:hover::after { opacity: 1; }

.theme-dot[data-theme="default"] { background: #5a6578; }
.theme-dot[data-theme="neon"]    { background: #6c2eb5; }
.theme-dot[data-theme="forest"]  { background: #3a6b3a; }
.theme-dot[data-theme="ice"]     { background: #a5d8ff; }
.theme-dot[data-theme="fire"]    { background: #ff4500; }

/* ── BUTTONS (hover: bağlantı kutusundaki .social-link ile aynı mantık) ── */
.btn-pixel {
  font-family: var(--font-retro);
  font-weight: 700;
  font-size: 0.64rem;
  min-height: 48px;
  padding: 12px 14px;
  border: 4px solid var(--pixel-black);
  background: var(--mario-green);
  color: #000;
  text-align: center;
  text-decoration: none;
  display: block;
  box-shadow: 4px 4px 0px var(--pixel-black);
  transition: background 0.12s, filter 0.12s, transform 0.08s, box-shadow 0.1s;
  cursor: pointer;
}
.btn-pixel:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px var(--pixel-black); }
.btn-yellow { background: var(--mario-yellow); color: #000; }

/* ── BLOG (liste ana sayfada) ── */
section#blog { scroll-margin-top: 1.25rem; }
.blog-block-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-block-list__item { margin: 0; }
.blog-block-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: stretch;
  justify-items: stretch;
  gap: 0;
  text-decoration: none;
  color: var(--ink);
  background: var(--pixel-surface-elev);
  border: 3px solid #000;
  padding: 0;
  min-height: 120px;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  overflow: hidden;
}
.blog-block-item > .blog-block-item__media {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.blog-block-item > .blog-block-item__text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.blog-block-item__media {
  flex: 0 0 120px;
  width: 120px;
  min-width: 120px;
  align-self: stretch;
  min-height: 120px;
  position: relative;
  background: var(--pixel-surface-elev);
  border-right: 3px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-block-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  /* width/height HTML attribute’larından gelen aspect-ratio kart yüksekliğini küçültmesin */
  aspect-ratio: auto;
}
.blog-block-item__ph {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  flex: 1 1 auto;
  align-self: stretch;
  height: auto;
  color: var(--text-muted);
  font-size: 1.5rem;
}
.blog-block-item__text {
  min-width: 0;
  padding: 12px 14px 12px 14px;
  display: flex;
  flex-direction: column;
}
.blog-block-item__head {
  display: block;
  min-width: 0;
}
.blog-block-item__title {
  font-family: var(--font-retro);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--mario-brick);
  min-width: 0;
}
/* Liste / slider kartları: en fazla 2 satır başlık (detay sayfasındaki h1 etkilenmez) */
a.blog-block-item .blog-block-item__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-block-item__time {
  font-family: var(--font-main);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.blog-block-item__excerpt {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-block-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  flex-shrink: 0;
  min-width: 0;
}
.blog-block-item__cta {
  display: block;
  font-family: var(--font-retro);
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--mario-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-block-item__arrow { transition: transform 0.1s; }
/* blog yazı detayı: ana ızgarayla aynı (sol sütun + sağ) */
.body-blog-article .container { align-items: start; }
.main-content--blog { min-width: 0; }
.blog-article { margin-bottom: 0; }
.blog-article .box-content { display: flex; flex-direction: column; }
/* Yazı üstü: ana sayfa blog kartı ile aynı yatay kutu (görsel | başlık + tarih + okuma) */
.blog-article__lead {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  background: var(--pixel-surface-elev);
  border: 3px solid #000;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  margin: 0 0 1.25rem 0;
  min-height: 120px;
  overflow: hidden;
}
.blog-article__lead .blog-block-item__head h1.blog-article__title {
  margin: 0;
}
.blog-article__lead .blog-article__title {
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 800;
}
.blog-article__lead-text {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.blog-article__metabar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
  padding: 0.5rem 0.65rem;
  background: var(--pixel-surface-elev);
  border: 2px solid var(--text-muted);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.blog-article__metabit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.blog-article__metabit i {
  color: var(--text-muted);
  font-size: 0.75em;
  opacity: 0.9;
}
.blog-article__metasep {
  color: var(--text-muted);
  font-weight: 700;
  user-select: none;
  padding: 0 0.1rem;
}
.blog-body { font-size: 1.02rem; line-height: 1.75; color: var(--ink); margin-top: 0; word-wrap: break-word; overflow-wrap: break-word; }
.blog-body img, .blog-body video { max-width: 100%; height: auto; }
.blog-body iframe { max-width: 100%; }
.blog-body p { margin: 0 0 1em; }
.blog-body p:last-child { margin-bottom: 0; }
.blog-body h1, .blog-body h2, .blog-body h3 { font-family: var(--font-retro); font-size: 0.95rem; font-weight: 700; margin: 1.25em 0 0.5em; color: var(--ink); }
.blog-body a { color: var(--mario-blue); font-weight: 600; text-decoration: underline; }
.blog-body ul, .blog-body ol { margin: 0 0 1em 1.25em; }
.blog-article__tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 6px; }
.blog-article__tag {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.72rem;
  padding: 3px 8px;
  background: var(--pixel-surface-elev);
  border: 2px solid #000;
  color: #1a1a1a;
}
/* ── MODAL CONTACT ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
  z-index: 999999; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content { width: 100%; max-width: 600px; transform: scale(0.9); transition: 0.3s; }
.modal-overlay.active .modal-content { transform: scale(1); }

.close-btn { 
  background: var(--mario-red); color: #f5f0ea; border: 3px solid #000; 
  min-width: 40px; min-height: 40px; padding: 6px 10px; font-family: var(--font-retro); font-weight: 700; font-size: 0.6rem; 
  cursor: pointer; line-height: 1; 
}

/* ── FORMS ── */
input, textarea { width: 100%; border: 3px solid #000; padding: 12px; font-family: var(--font-main); font-weight: 500; font-size: 1.05rem; margin-bottom: 15px; }

/* ── GLOBAL HUD TOPBAR ── */
.blog-topbar {
  max-width: 1100px;
  margin: 0 auto var(--section-stack-gap);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 5px solid var(--pixel-black);
  box-shadow: 8px 8px 0px rgba(0,0,0,0.3);
  font-family: var(--font-retro);
  position: relative;
  overflow: hidden;
}

/* ── BACK TO TOP PROGRESS ── */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--pixel-black);
  border: 3px solid var(--pixel-black);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-to-top i {
  color: #fff;
  font-size: 1.2rem;
  z-index: 2;
}
.scroll-to-top__progress {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.scroll-to-top__progress circle {
  fill: none;
  stroke: var(--mario-yellow);
  stroke-width: 4;
  stroke-dasharray: 132; /* 2 * PI * r (r = 21) */
  stroke-dashoffset: 132;
  stroke-linecap: square;
  transition: stroke-dashoffset 0.1s linear;
  transform: rotate(-90deg);
  transform-origin: center;
}
.scroll-to-top:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}


.blog-topbar__title {
  color: var(--mario-yellow);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(160,143,90,0.5);
  text-align: center;
  white-space: nowrap;
}

.blog-topbar__link {
  justify-self: start;
}

.blog-topbar__right {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.blog-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.55rem;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.blog-topbar__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.blog-topbar__active {
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
  border-color: var(--mario-yellow) !important;
  box-shadow: inset 0 0 10px rgba(160,143,90,0.2);
}

.blog-topbar i {
  font-size: 0.65rem;
}

.blog-topbar__label {
  display: inline;
}

@media (max-width: 1140px) {
  .blog-topbar { margin-left: 0; margin-right: 0; }
}

@media (max-width: 850px) {
  .blog-topbar { box-shadow: 5px 5px 0 rgba(0,0,0,0.2); }
}

@media (max-width: 700px) {
  .blog-topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    max-width: none;
  }
  .blog-topbar__spacer {
    display: none;
  }
  .blog-topbar > .blog-topbar__link:first-of-type {
    flex-shrink: 0;
  }
  .blog-topbar__right {
    justify-self: unset;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-end;
    gap: 6px;
  }
  /* Ana sayfa: yalnız ikon — Projeler / Blog yazılı kalır */
  .blog-topbar > .blog-topbar__link:first-of-type .blog-topbar__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .blog-topbar > .blog-topbar__link:first-of-type {
    position: relative;
    padding: 7px 11px;
    font-size: 0;
    letter-spacing: 0;
    gap: 0;
    min-height: 36px;
    min-width: 38px;
    justify-content: center;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }
  .blog-topbar > .blog-topbar__link:first-of-type i {
    font-size: 0.72rem;
  }
  .blog-topbar__right .blog-topbar__link {
    font-size: 0.5rem;
    letter-spacing: 0.05em;
    padding: 7px 10px;
    gap: 6px;
    min-height: 36px;
    align-self: stretch;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .blog-topbar__right .blog-topbar__link i {
    font-size: 0.62rem;
    flex-shrink: 0;
  }
  .blog-topbar__right .security-status {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 36px;
    padding: 7px 9px;
  }
}

@media (max-width: 600px) {
  .blog-topbar {
    margin-bottom: var(--section-stack-gap);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0,0,0,0.92);
    gap: 6px;
    padding: 8px 10px;
  }
  .blog-topbar__title { display: none; }
  .blog-topbar__right .blog-topbar__link {
    padding: 6px 8px;
    font-size: 0.48rem;
    gap: 5px;
    min-height: 34px;
  }
  .blog-topbar > .blog-topbar__link:first-of-type {
    min-height: 34px;
    padding: 6px 10px;
    min-width: 36px;
  }
  .blog-topbar__right .security-status {
    min-height: 34px;
    padding: 6px 8px;
  }
}

@media (max-width: 400px) {
  .blog-topbar > .blog-topbar__link:first-of-type {
    min-height: 38px;
    min-width: 40px;
    padding: 8px 11px;
  }
  .blog-topbar__right .blog-topbar__link {
    padding: 7px 9px;
    min-height: 38px;
    font-size: 0.47rem;
  }
  .blog-topbar__right .security-status {
    min-height: 38px;
    padding: 7px 8px;
  }
}

/* ── FOOTER ── */
.footer-brick { background: var(--mario-brick); border: 5px solid #000; padding: 20px; text-align: center; color: #f0ebe4; font-family: var(--font-retro); font-weight: 600; font-size: 0.6rem; margin: 0; box-shadow: 8px 8px 0px rgba(0,0,0,0.32); position: relative; }

/* Dokunmatikte “takılı kalan” hover; sadece fare/trackpad’de */
@media (hover: hover) and (pointer: fine) {
  .project-card.visible:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
    background: var(--pixel-white);
  }
  .blog-block-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
    background: var(--pixel-white);
  }
  .blog-block-item:hover .blog-block-item__arrow { transform: translateX(2px); display: inline-block; }
  .social-link:hover,
  .sidebar-to-blog:hover,
  .btn-pixel:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 var(--pixel-black);
  }
  .btn-yellow:hover,
  .social-link:hover,
  .sidebar-to-blog:hover {
    background: var(--mario-yellow-bright);
  }
  .blog-body a:hover { color: #2a3842; }
}

/* ── TABLET / KÜÇÜK EKRAN (≤900px) ── */
@media (max-width: 900px) {
  html { font-size: 100%; }
  .box-label {
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 10px;
  }
}

/* ── MOBİL (≤850px): Önce oyuncu + bağlantılar, sonra görev/projeler/blog; footer sonda (DOM) ── */
@media (max-width: 850px) {
  :root { --section-stack-gap: clamp(14px, 3.2vw, 20px); }
  body {
    padding: var(--space-page-mobile);
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .container {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--section-stack-gap);
  }
  .sidebar { order: 0; }
  .body-blog-article .sidebar { display: none; }
  .main-content { order: 1; }
  .main-content, .sidebar { min-width: 0; }
  .grid-2 { grid-template-columns: 1fr; gap: clamp(14px, 3vw, 18px); }
  /* Sticky yok: translateZ(0) kaydırmada ince beyaz titreme (WebKit) — kapat */
  .sidebar {
    position: static;
    width: 100%;
    transform: none;
    backface-visibility: visible;
  }
  /* Avatar tam genişlik (kompakt yan ızgara yok) */
  .sidebar-hud__body {
    display: flex;
    flex-direction: column;
  }
  .sidebar .avatar-frame {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border-bottom: 0;
    contain: none;
  }
  .sidebar .stats-bar {
    padding: 16px 14px 18px;
    margin-top: -1px;
  }
  .form-grid-2 { grid-template-columns: 1fr; }
  .box-content { padding: clamp(16px, 4.2vw, 22px) clamp(14px, 3.5vw, 18px); }
  .box-label { padding: 12px 14px; }
  .pixel-box { box-shadow: 5px 5px 0 rgba(0,0,0,0.2); }
  .mission-text { font-size: clamp(1rem, 2.6vw, 1.08rem); line-height: 1.68; }
  .level-browser { font-size: 0.52rem; min-height: 40px; padding: 9px 12px; }
  .level-preview, .level-preview-cover { min-height: 160px; }
  .level-preview-cover { height: 160px; }
  .level-iframe { height: 160px; min-height: 160px; }
  .level-title { font-size: 0.78rem; }
  .level-desc { font-size: 0.93rem; }
  .level-title, .level-desc, .level-tech { padding-left: clamp(12px, 3.5vw, 14px); padding-right: clamp(12px, 3.5vw, 14px); }
  .level-actions {
    padding-left: clamp(12px, 3.5vw, 14px);
    padding-right: clamp(12px, 3.5vw, 14px);
    padding-bottom: clamp(12px, 3.2vw, 14px);
  }
  .level-actions .btn-pixel { min-height: 48px; }
  .project-card { border-width: 3px; }
  .blog-block-list { gap: 14px; }
  .blog-block-item__text { padding: 14px 16px; }
  .blog-article__lead-text { padding: 14px 16px; }
  .blog-article__metabar { font-size: 0.75rem; }
  .footer-brick { padding: 18px 16px; line-height: 1.55; box-shadow: 5px 5px 0 rgba(0,0,0,0.2); }
  .modal-overlay {
    padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .modal-content { max-height: min(90vh, 100%); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .close-btn { min-width: 44px; min-height: 44px; padding: 6px 12px; }
  /* iOS: odak zoom’u engelle */
  input, textarea, select { font-size: max(1rem, 16px); }
  /* 2+ sosyal link: 2 sütun ızgaraya geç, dikey alan kazan */
  .social-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    padding: 10px 10px 12px;
  }
  .social-list__item { min-width: 0; }
  .social-link { min-height: 48px; }
}

/* ── TELEFON (≤600px) — blog kartı: kompakt; özet ile alt bilgi arasında gereksiz boşluk yok ── */
@media (max-width: 600px) {
  .container { gap: var(--section-stack-gap); }
  .box-label { font-size: 0.65rem; }
  .blog-block-item {
    -webkit-tap-highlight-color: transparent;
  }
  a.blog-block-item > .blog-block-item__text {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
  }
  a.blog-block-item .blog-block-item__excerpt {
    flex: 0 0 auto;
    margin-top: 6px;
    margin-bottom: 0;
  }
  a.blog-block-item .blog-block-item__foot {
    margin-top: 8px;
    flex-shrink: 0;
  }
  .blog-article__lead .blog-article__title {
    font-size: clamp(1.02rem, 3.8vw, 1.12rem);
  }
  .blog-article__metabar {
    padding: 0.55rem 0.7rem;
    width: 100%;
    box-sizing: border-box;
  }
  .blog-body { font-size: 1.03rem; line-height: 1.72; }
  .body-blog-article .sidebar, .body-archive .sidebar { display: none; }
  .body-blog-article .container, .body-archive .container { grid-template-columns: 1fr; }
  
  .scroll-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
  }
  .scroll-to-top i { font-size: 1rem; }
  .scroll-to-top__progress circle { stroke-width: 5; }
}

/* ── MODAL: Dar ekran — ortada, taşmada kaydır (alt “sheet” yok) ── */
@media (max-width: 520px) {
  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top) + 12px) max(16px, env(safe-area-inset-right) + 8px) max(20px, env(safe-area-inset-bottom) + 12px) max(16px, env(safe-area-inset-left) + 8px);
  }
  .modal-content {
    max-width: 100%;
    max-height: min(88dvh, 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Çok küçük ekran ── */
@media (max-width: 380px) {
  .pixel-box { border-width: 4px; }
  .box-content { padding: 14px 12px; }
  .mission-text { font-size: 0.98rem; }
  .level-preview, .level-preview-cover { min-height: 140px; }
  .level-preview-cover { height: 140px; }
  .level-iframe { height: 140px; min-height: 140px; }
}

/* ══════════════════════════════════════
   YENİ İYİLEŞTİRMELER
   ══════════════════════════════════════ */

@keyframes syslog-caret-char {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes syslog-block-caret {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@keyframes syslog-line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes syslog-live-dot {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.18); }
}
@keyframes syslog-led-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}


/* ── Step 2: Sayfa Yüklenme Animasyonu (Stagger) ── */
.anim-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  backface-visibility: hidden;
  will-change: opacity, transform;
}
.anim-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Animasyon gecikmeleri artık main.js üzerinden dinamik olarak yönetiliyor */


/* Sticky uyumluluğu için topbar'da transform'u devre dışı bırakıyoruz */
.blog-topbar.anim-in { transform: none !important; }
.blog-topbar.anim-in.visible { opacity: 1; transform: none !important; }


/* ── Step 4: Skeleton Loading ── */
.skeleton-img {
  background: linear-gradient(90deg, #c7bfb3 25%, #d8d2c8 50%, #c7bfb3 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.blog-block-item__img,
.level-preview-cover,
.avatar-frame img,
.avatar-frame video.avatar-frame__media {
  transition: opacity 0.4s ease;
}

/* ── Step 7: Blog Okuma Süresi ── */
.blog-block-item__read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-main);
  font-size: 0.62rem;
  font-weight: 500;
  color: #6a6a6a;
  white-space: nowrap;
}
.blog-block-item__read-time i {
  font-size: 0.58rem;
}
/* ── Projects Pagination ── */
.pagination-hud { display: flex; justify-content: center; gap: 10px; margin-top: 25px; }
.pagination-link {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--pixel-black); color: #fff; font-family: var(--font-retro);
  border: 3px solid #000; box-shadow: 3px 3px 0 #000; text-decoration: none; font-size: 0.8rem;
  transition: all 0.1s;
}
.pagination-link.active { background: var(--mario-yellow); color: #000; transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.pagination-link:hover:not(.active) { background: #444; transform: translateY(-2px); }

/* ── Blog Slider ── */
.blog-slider { position: relative; width: 100%; overflow: hidden; }
/* pan-y: sayfa dikey kayar; yatay jesti JS kaydırma için kullanır */
.blog-slider__viewport {
  overflow: hidden;
  border-radius: 4px;
  touch-action: pan-y;
}
.slider-track {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: stretch;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  padding: 0;
  margin: 0;
  list-style: none;
  will-change: transform;
}
.slider-slide {
  min-width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  /* Önceki slayttan 1px taşan gölge şeridini kapat */
  background: var(--pixel-white);
}
/* Slayt kartı satır yüksekliğini doldurur; margin: hover translate için iç boşluk (viewport padding yok — kaydırma hizası bozulmasın) */
.blog-slider .slider-slide > .blog-block-item {
  flex: 1 1 auto;
  width: auto;
  align-self: stretch;
  margin: 6px;
  box-sizing: border-box;
}
.blog-slider__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 20px; }
.slider-btn { 
  background: var(--pixel-black); color: #fff; border: 3px solid #000; 
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 3px 3px 0 #000; transition: all 0.1s;
}
.slider-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.slider-btn:hover { background: #333; }
.slider-dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; background: rgba(0,0,0,0.2); border: 2px solid #000; border-radius: 50%; cursor: pointer; transition: all 0.2s; }
.dot.active { background: var(--mario-yellow); transform: scale(1.2); box-shadow: 0 0 8px rgba(var(--mario-yellow-rgb, 160, 143, 90), 0.4); }

@media (max-width: 600px) {
  .blog-slider__controls { gap: 12px; }
  .slider-btn { width: 32px; height: 32px; }
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  border: 3px solid var(--pixel-black);
  background-color: var(--pixel-surface-elev);
  text-align: center;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 5px 5px 0 var(--pixel-black);
  border-color: var(--mario-yellow);
}

.service-cover {
  height: 120px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--pixel-black);
  position: relative;
}

.service-card-content {
  position: relative;
  z-index: 2;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.service-card.has-cover .service-card-content {
  padding-top: 30px;
}

.service-icon-wrap {
  font-size: 2rem;
  color: var(--mario-blue);
  transition: color 0.3s, transform 0.3s;
}

.service-card.has-cover .service-icon-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--pixel-surface-elev);
  color: var(--mario-yellow);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--pixel-black);
  box-shadow: 0 3px 0 var(--pixel-black);
  font-size: 1.5rem;
}

.service-card.has-cover:hover .service-icon-wrap {
  transform: translate(-50%, -65%);
  color: var(--mario-blue);
}

.service-title {
  font-family: var(--font-retro);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-desc {
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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




/* ── NEON BEAM ANIMATION ── */
.neon-beam {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: 
    0 0 4px #fff,
    0 0 10px #00ff00,
    0 0 20px #00ff00,
    0 0 35px #00ff00,
    0 0 50px #00ff00;
  border-radius: 10px;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease, width 0.3s ease, height 0.3s ease;
  will-change: left, top, width, height;
  filter: brightness(1.5);
}

.neon-beam.active {
  opacity: 1;
}


.neon-beam.neutralized {
  transition: none !important;
  box-shadow: 0 0 15px #ff0055, 0 0 30px #ff0055 !important;
  background: #ff0055 !important;
}
