/* MC Utility — Block World UI */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #0a0e0c;
  --dirt: #5a3d28;
  --dirt-dark: #3d291c;
  --grass: #3d9a4a;
  --grass-light: #5ecf6a;
  --stone: #6b6b6b;
  --stone-dark: #4a4a4a;
  --wood: #c68a3c;
  --wood-dark: #8b5a2b;
  --surface: #1a221c;
  --surface-2: #243028;
  --text: #eef5ee;
  --muted: #9bb09e;
  --accent: #3d9a4a;
  --accent-dim: #2d7a38;
  --accent-bright: #5ecf6a;
  --border: #2f3d32;
  --warn: #d4a017;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-pixel: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --shadow-block: 4px 4px 0 #000;
  --max: 1120px;
  --header-h: 3.6rem;
  --scroll-y: 0px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.block-world {
  background: #070a08;
}

img, canvas, svg { max-width: 100%; height: auto; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* —— World backdrop —— */
.world-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #1a3d24 0%, transparent 55%),
    linear-gradient(180deg, #0c1410 0%, #0a0e0c 40%, #071008 100%);
}

.world-grid {
  position: fixed;
  inset: -20% 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(94, 207, 106, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 207, 106, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: translate3d(0, calc(var(--scroll-y) * -0.12), 0);
  will-change: transform;
}

.world-blocks {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.world-block {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25), inset 2px 2px 0 rgba(255, 255, 255, 0.12);
  image-rendering: pixelated;
  opacity: 0.55;
  will-change: transform;
}

.world-block--grass {
  background: linear-gradient(180deg, var(--grass-light) 0 28%, var(--dirt) 28% 100%);
}

.world-block--dirt { background: var(--dirt); }
.world-block--stone { background: linear-gradient(135deg, var(--stone), var(--stone-dark)); }
.world-block--wood { background: linear-gradient(90deg, var(--wood-dark), var(--wood), var(--wood-dark)); }

/* —— Header (hotbar strip) —— */
.site-header {
  border-bottom: 4px solid #1a120c;
  background:
    linear-gradient(180deg, #3a2a1c 0%, #2a1e14 100%);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 0 #000;
}

.site-header__inner {
  max-width: min(100%, calc(var(--max) + 2.5rem));
  margin: 0 auto;
  padding: 0.7rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: nowrap;
  min-height: var(--header-h);
}

.site-announcements {
  display: grid;
  gap: 0;
  border-bottom: 4px solid #1a120c;
  overflow: hidden;
}

.site-announcement {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1.15rem;
  text-align: center;
  overflow: hidden;
  animation: announcement-in 0.55s ease-out both;
}

.site-announcement__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: announcement-shine 4.5s ease-in-out infinite;
}

.site-announcement__text {
  position: relative;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  z-index: 1;
}

.site-announcement__text.is-bold {
  font-weight: 700;
}

.site-announcement--size-sm .site-announcement__text {
  font-size: 0.85rem;
}

.site-announcement--size-md .site-announcement__text {
  font-size: 0.95rem;
}

.site-announcement--size-lg .site-announcement__text {
  font-size: 1.1rem;
}

.site-announcement__close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  z-index: 2;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: 2px solid currentColor;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.site-announcement__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
}

.site-announcement__link {
  position: relative;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border: 2px solid currentColor;
  background: rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}

.site-announcement__link:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.28);
}

.site-announcement--info {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(120, 190, 255, 0.35), transparent 55%),
    linear-gradient(90deg, #102536 0%, #1a3a52 50%, #102536 100%);
  color: #d7ecff;
  border-bottom: 2px solid #3d7eb0;
}

.site-announcement--success {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(110, 230, 140, 0.28), transparent 55%),
    linear-gradient(90deg, #0f2216 0%, #1a3d28 50%, #0f2216 100%);
  color: #b8ffc8;
  border-bottom: 2px solid #3d9a6a;
}

.site-announcement--warning {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 200, 80, 0.28), transparent 55%),
    linear-gradient(90deg, #2a1c08 0%, #3d2e12 50%, #2a1c08 100%);
  color: #ffe4a3;
  border-bottom: 2px solid #c9a227;
}

.site-announcement--danger {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255, 100, 100, 0.28), transparent 55%),
    linear-gradient(90deg, #2a1010 0%, #4a1a1a 50%, #2a1010 100%);
  color: #ffc2c2;
  border-bottom: 2px solid #d64545;
}

.site-announcement.is-hiding {
  animation: announcement-out 0.4s ease-in forwards;
}

.site-announcement.is-rotated-out,
.site-announcement[hidden] {
  display: none !important;
}

/* Duyuru gizleme süresi popup */
.ann-dismiss-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ann-dismiss-modal[hidden] {
  display: none !important;
}

.ann-dismiss-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.72);
}

.ann-dismiss-modal__panel {
  position: relative;
  z-index: 1;
  width: min(22rem, 100%);
  padding: 1.25rem 1.15rem 1rem;
  border: 3px solid #1a120c;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(120, 190, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #1a2430 0%, #121820 100%);
  color: #e8f0f8;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.ann-dismiss-modal__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffd978;
}

.ann-dismiss-modal__text {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #c5d4e4;
}

.ann-dismiss-modal__options {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.ann-dismiss-modal__option,
.ann-dismiss-modal__cancel {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 2px solid #3d7eb0;
  background: rgba(0, 0, 0, 0.28);
  color: #d7ecff;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ann-dismiss-modal__option:hover,
.ann-dismiss-modal__option:focus-visible {
  background: rgba(61, 126, 176, 0.35);
  outline: none;
  transform: translateY(-1px);
}

.ann-dismiss-modal__cancel {
  border-color: #5a6570;
  color: #a8b4c0;
  font-size: 0.82rem;
}

.ann-dismiss-modal__cancel:hover,
.ann-dismiss-modal__cancel:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

@keyframes announcement-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes announcement-out {
  to {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-8px);
  }
}

@keyframes announcement-shine {
  0% { background-position: 120% 0; }
  45% { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .site-announcement,
  .site-announcement__glow {
    animation: none;
  }
}

.site-logo {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f0e6c8;
  text-decoration: none;
  border: 3px solid #1a120c;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(180deg, #5a8f3a 0%, #3d6b28 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 3px 3px 0 #000;
}

.site-logo:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.site-menu-toggle {
  display: none;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  border: 3px solid #1a120c;
  background: linear-gradient(180deg, #6b6b6b, #4a4a4a);
  color: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.site-nav a {
  font-family: var(--font-pixel);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #d8c9a8;
  padding: 0.55rem 0.55rem;
  border: 3px solid transparent;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #fff;
  border-color: #1a120c;
  background: rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.site-nav__user {
  font-family: var(--font-pixel);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #d8c9a8;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  line-height: 1.2;
}

.site-nav__admin {
  color: #9dffb0 !important;
  border-color: #2d7a38 !important;
}

.site-nav__logout {
  display: inline;
  margin: 0;
}

.site-nav__btn {
  font-family: var(--font-pixel);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #d8c9a8;
  padding: 0.55rem 0.55rem;
  border: 3px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.site-nav__btn:hover {
  color: #fff;
  border-color: #1a120c;
  background: rgba(0, 0, 0, 0.25);
}

/* —— Main / footer —— */
.site-main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
}

.site-footer {
  border-top: 4px solid #1a120c;
  background: linear-gradient(180deg, #2a1e14, #1a120c);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1rem;
  text-align: center;
}

.site-footer__brand {
  margin: 0 0 0.4rem;
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--grass-light);
}

.site-footer__copy {
  margin: 0;
  color: #9a8b72;
  font-size: 0.85rem;
}

/* —— Buttons (piston / block) —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.15rem;
  border: 3px solid #1a120c;
  background: linear-gradient(180deg, #6b6b6b, #4a4a4a);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 4px 4px 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translate(-1px, -1px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 5px 5px 0 #000;
  filter: brightness(1.06);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.25), 1px 1px 0 #000;
}

.btn--primary {
  background: linear-gradient(180deg, #5ecf6a 0%, #2d7a38 100%);
  color: #06140c;
}

.btn--primary:hover { filter: brightness(1.08); }

.btn--ghost {
  background: linear-gradient(180deg, #3a2a1c, #2a1e14);
  color: #f0e6c8;
}

.btn--sm {
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 2px 2px 0 #000;
}

.btn--piston {
  position: relative;
  padding-left: 2.4rem;
}

.btn--piston::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #c9c9c9, #7a7a7a);
  border: 2px solid #1a120c;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.35);
}

/* —— Hero (terrain strip) —— */
.hero {
  position: relative;
  margin: 0 0 2.25rem;
  padding: 1.75rem 1.25rem 1.85rem;
  border: 4px solid #1a120c;
  background:
    linear-gradient(180deg, rgba(10, 20, 14, 0.55) 0%, rgba(10, 20, 14, 0.75) 100%),
    repeating-linear-gradient(90deg, #3d9a4a 0 32px, #358a42 32px 64px);
  box-shadow: 6px 6px 0 #000;
  overflow: hidden;
  animation: hero-rise 0.7s ease both;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--dirt) 0 32px, var(--dirt-dark) 32px 64px);
  border-top: 3px solid #1a120c;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #b8f5c0;
  text-shadow: 2px 2px 0 #000;
  animation: flicker 3.5s ease-in-out infinite;
}

.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-pixel);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 14ch;
  text-shadow: 3px 3px 0 #000;
}

.hero__lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  color: #d8e8da;
  line-height: 1.55;
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  text-shadow: 1px 1px 0 #000;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  padding-bottom: 0.35rem;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 1; }
  50% { opacity: 0.72; }
  52% { opacity: 1; }
}

/* —— Sections —— */
.section { margin-top: 0.5rem; }

.section__head { margin-bottom: 1.15rem; }

.section__title,
.page-header__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-pixel);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.section__lead,
.page-header__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 40rem;
}

.section__more { margin: 1.5rem 0 0; }

.page-header { margin-bottom: 1.5rem; }

.page-header__eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grass-light);
  text-shadow: 2px 2px 0 #000;
}

.page-header__title {
  font-size: clamp(1.45rem, 4vw, 2rem);
}

/* —— Tool grid / chest cards —— */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.tool-card {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  perspective: 800px;
  animation: card-pop 0.55s ease both;
}

.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }
.tool-card:nth-child(7) { animation-delay: 0.35s; }
.tool-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes card-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tool-card__link,
.tool-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1rem 1.2rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
  position: relative;
  border: 4px solid #1a120c;
  background:
    linear-gradient(180deg, #d4a04a 0 22%, #a8722e 22% 28%, #8b5a2b 28% 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 220, 150, 0.25),
    inset 0 -4px 0 rgba(0, 0, 0, 0.2),
    5px 5px 0 #000;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-style: preserve-3d;
}

.tool-card__link::before,
.tool-card__body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.55rem;
  width: 1.1rem;
  height: 0.55rem;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f0d080, #c9a040);
  border: 2px solid #1a120c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tool-card:not(.tool-card--soon) .tool-card__link:hover {
  text-decoration: none;
  transform: translateY(-6px) rotateX(4deg);
  box-shadow:
    inset 0 3px 0 rgba(255, 220, 150, 0.3),
    inset 0 -4px 0 rgba(0, 0, 0, 0.2),
    8px 12px 0 #000;
}

.tool-card__link:hover { text-decoration: none; }

.tool-card__title {
  margin: 0.55rem 0 0;
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a120c;
  text-shadow: 1px 1px 0 rgba(255, 230, 180, 0.35);
}

.tool-card__desc {
  margin: 0;
  color: #2a1c10;
  font-size: 0.9rem;
  line-height: 1.45;
  flex: 1;
}

.tool-card__badge {
  align-self: flex-start;
  margin-top: 0.25rem;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.35rem 0.45rem;
  border: 2px solid #1a120c;
  color: #1a120c;
  background: var(--warn);
  box-shadow: 2px 2px 0 #000;
}

.tool-card--soon {
  opacity: 0.78;
  filter: grayscale(0.25);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}

.guide-card {
  border: 3px solid #1a120c;
  background: linear-gradient(165deg, rgba(28, 38, 48, 0.92), rgba(14, 18, 24, 0.95));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.guide-card__link {
  display: block;
  padding: 1.25rem 1.15rem 1.35rem;
  color: inherit;
  text-decoration: none;
}

.guide-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #ffd978;
}

.guide-card__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #c5d4e4;
}

.guide-empty {
  color: #a8b4c0;
  font-size: 0.95rem;
}

/* Forum tarzı rehber listesi */
.forum-board {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  border: 3px solid #1a120c;
  background: linear-gradient(180deg, rgba(36, 28, 18, 0.95), rgba(18, 14, 10, 0.98));
  box-shadow: 4px 4px 0 #000;
}

.forum-board__head {
  display: none;
  grid-template-columns: minmax(0, 1fr) 7.5rem 9.5rem;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  border-bottom: 2px solid #1a120c;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a8b72;
}

@media (min-width: 800px) {
  .forum-board__head {
    display: grid;
  }
}

.forum-row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.65rem 0.75rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-bottom: 2px solid rgba(26, 18, 12, 0.9);
  background: rgba(255, 232, 180, 0.04);
  transition: background 0.15s ease;
}

.forum-row:nth-child(even) {
  background: rgba(255, 232, 180, 0.07);
}

.forum-row:hover {
  background: rgba(255, 217, 120, 0.1);
}

.forum-row.is-pinned {
  background: rgba(255, 217, 120, 0.12);
}

.forum-row:last-child {
  border-bottom: 0;
}

.forum-row__icon {
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a120c;
  background: linear-gradient(145deg, #3d2e12, #2a1e14);
  box-shadow: 2px 2px 0 #000;
}

.forum-row__glyph {
  color: #ffd978;
  font-size: 1rem;
  line-height: 1;
}

.forum-row__main {
  min-width: 0;
}

.forum-row__title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.3rem;
}

.forum-badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border: 2px solid #1a120c;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
  box-shadow: 1px 1px 0 #000;
}

.forum-badge--guide {
  background: #2f6fad;
  color: #e8f4ff;
}

.forum-badge--pin {
  background: #c9a227;
  color: #1a120c;
}

.forum-row__title {
  color: #ffe9a8;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.forum-row__title:hover {
  color: #fff6d0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forum-row__meta {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #9a8b72;
}

.forum-row__mobile-stats {
  display: inline;
  color: #9a8b72;
}

@media (min-width: 800px) {
  .forum-row__mobile-stats {
    display: none;
  }
}

.forum-row__summary {
  color: #7a6e5c;
}

.forum-row__stats,
.forum-row__last {
  display: none;
}

@media (min-width: 800px) {
  .forum-row {
    grid-template-columns: 2.6rem minmax(0, 1fr) 7.5rem 9.5rem;
    align-items: center;
  }

  .forum-row__stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
  }

  .forum-row__last {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    text-align: right;
  }
}

.forum-stat {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.2;
}

.forum-stat__label {
  font-size: 0.68rem;
  color: #9a8b72;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-stat__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffe9a8;
  min-width: 2rem;
}

.forum-row__last-time {
  font-size: 0.78rem;
  color: #c5b89a;
}

.forum-row__last-user {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffd978;
}

.forum-row__last-user--muted {
  font-weight: 400;
  color: #7a6e5c;
}

.forum-row__avatar {
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a120c;
  border-radius: 50%;
  background: #3d2e12;
  color: #ffd978;
  font-size: 0.7rem;
  font-weight: 700;
}

@media (max-width: 799px) {
  .forum-row__meta .forum-row__summary {
    display: none;
  }

  .forum-row__main::after {
    content: attr(data-mobile-stats);
  }
}

/* Geniş, okunaklı rehber detay */
.guide-layout {
  max-width: 52rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.guide-layout__header {
  margin-bottom: 1.75rem;
}

.guide-layout__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  color: #ffd978;
  text-shadow: 2px 2px 0 #000;
}

.guide-layout__lead {
  margin: 0;
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #c5d4e4;
}

.guide-layout__stats {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: #9a8b72;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.guide-article__body {
  max-width: none;
  margin: 0 0 1.5rem;
}

.guide-article__body p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: #dce6f0;
  font-size: 1.05rem;
}

.guide-md h2,
.guide-md h3,
.guide-md h4 {
  margin: 1.75rem 0 0.7rem;
  color: #ffd978;
  line-height: 1.3;
}

.guide-md h2 { font-size: 1.45rem; }
.guide-md h3 { font-size: 1.22rem; }
.guide-md h4 { font-size: 1.1rem; color: #e8c86a; }

.guide-md p {
  margin: 0 0 1.05rem;
  line-height: 1.7;
  color: #dce6f0;
  font-size: 1.05rem;
}

.guide-md strong { color: #fff6d8; font-weight: 700; }
.guide-md em { font-style: italic; color: #e8eef5; }

.guide-md a {
  color: #7ec8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-md a:hover { color: #b6e0ff; }

.guide-inline-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border: 1px solid rgba(255, 217, 120, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #ffe6a0;
}

.guide-code {
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 2px solid #1a120c;
  background: #0a0e14;
  color: #d7ecff;
  font-size: 0.85rem;
  line-height: 1.5;
  position: relative;
}

.guide-code code {
  font-family: ui-monospace, Consolas, monospace;
  white-space: pre;
}

.guide-code code[data-lang]::before {
  content: attr(data-lang);
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8aa0b5;
}

.guide-list {
  margin: 0 0 1.15rem 1.15rem;
  padding: 0;
  color: #dce6f0;
  line-height: 1.55;
}

.guide-list li { margin-bottom: 0.35rem; }

.guide-quote {
  margin: 0 0 1.15rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid #c9a227;
  background: rgba(201, 162, 39, 0.1);
  color: #ffe4a3;
}

.guide-quote p { margin: 0 0 0.4rem; color: inherit; }
.guide-quote p:last-child { margin-bottom: 0; }

.guide-hr {
  border: 0;
  border-top: 2px solid rgba(255, 217, 120, 0.25);
  margin: 1.5rem 0;
}

.guide-callout {
  margin: 0 0 1.15rem;
  padding: 0.8rem 1rem;
  border: 2px solid #1a120c;
}

.guide-callout p { margin: 0; line-height: 1.5; }

.guide-callout--info {
  background: rgba(61, 126, 176, 0.18);
  border-color: #3d7eb0;
  color: #d7ecff;
}

.guide-callout--success {
  background: rgba(61, 154, 106, 0.18);
  border-color: #3d9a6a;
  color: #b8ffc8;
}

.guide-callout--warning {
  background: rgba(201, 162, 39, 0.16);
  border-color: #c9a227;
  color: #ffe4a3;
}

.guide-callout--danger {
  background: rgba(214, 69, 69, 0.16);
  border-color: #d64545;
  color: #ffc2c2;
}

/* Rehber yorumları */
.guide-comments {
  max-width: 52rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 3px solid #1a120c;
}

.guide-comments__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.guide-comments__title {
  margin: 0;
  font-size: 1.25rem;
  color: #ffd978;
}

.guide-comments__count {
  margin: 0;
  font-size: 0.85rem;
  color: #8aa0b5;
}

.guide-comments__flash {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid #3d9a6a;
  background: rgba(61, 154, 106, 0.15);
  color: #b8ffc8;
}

.guide-comments__error {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border: 2px solid #d64545;
  background: rgba(214, 69, 69, 0.15);
  color: #ffc2c2;
}

.guide-comments__login-gate {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 2px solid #3d7eb0;
  background: rgba(61, 126, 176, 0.12);
  color: #d7ecff;
}

.guide-comments__login-gate p {
  margin: 0 0 0.55rem;
  line-height: 1.45;
}

.guide-comments__login-gate .btn {
  margin: 0.35rem 0.4rem 0 0;
}

.guide-comment-form {
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.guide-comment-form__label {
  font-size: 0.9rem;
  color: #c5d4e4;
}

.guide-comment-form__input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid #1a120c;
  background: rgba(0, 0, 0, 0.35);
  color: #e8f0f8;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  min-height: 5.5rem;
}

.guide-comment-form__input:focus {
  outline: 2px solid #3d7eb0;
  outline-offset: 1px;
}

.guide-comment-form__hint {
  font-size: 0.8rem;
  color: #ff9b9b;
}

.guide-comments__empty {
  color: #8aa0b5;
  font-size: 0.95rem;
}

.guide-comments__empty.is-hidden {
  display: none;
}

.guide-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.guide-comment {
  padding: 0.85rem 1rem;
  border: 2px solid #1a120c;
  background: rgba(14, 18, 24, 0.85);
}

.guide-comment--new {
  animation: guide-comment-in 0.4s ease both;
}

@keyframes guide-comment-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.guide-comment__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.guide-comment__who {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.guide-comment__user {
  font-weight: 700;
  color: #ffd978;
}

.profile-avatar {
  --avatar-size: 96px;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border: 3px solid #1a120c;
  background: #2a1e14;
  box-shadow: 2px 2px 0 #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: #ffd978;
  font-weight: 700;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar--nav {
  --avatar-size: 1.65rem;
  border-width: 2px;
  font-size: 0.7rem;
}

.profile-avatar--sm {
  --avatar-size: 2rem;
  border-width: 2px;
  font-size: 0.75rem;
}

.site-nav__profile {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  max-width: 11rem;
  min-width: 0;
}

.site-nav__profile:hover .site-nav__user {
  color: #fff;
}

.guide-comment__time {
  font-size: 0.78rem;
  color: #8aa0b5;
}

.guide-comment__body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  color: #dce6f0;
}

.page-header__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.page-header__eyebrow a:hover {
  color: #ffd978;
}

.tool-icon {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 0.35rem;
  border: 3px solid #1a120c;
  image-rendering: pixelated;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25), inset 2px 2px 0 rgba(255, 255, 255, 0.15), 2px 2px 0 #000;
  background: linear-gradient(135deg, var(--surface-2), var(--border));
}

.tool-icon--gradient { background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1); }
.tool-icon--colors { background: linear-gradient(135deg, #e74c3c, #f1c40f, #2ecc71, #3498db); }
.tool-icon--motd { background: linear-gradient(135deg, #1a1a2e, #3d9a6a); }
.tool-icon--yaml { background: linear-gradient(135deg, #c9a227, #2c3642); }
.tool-icon--lp { background: linear-gradient(135deg, #e67e22, #8e44ad); }
.tool-icon--uuid { background: linear-gradient(135deg, #3498db, #2c3e50); }
.tool-icon--server { background: linear-gradient(135deg, #3fb950, #58a6ff); }
.tool-icon--menu { background: linear-gradient(135deg, #c68a3c, #1a1a1a 55%, #8b8b8b); }

/* —— Tool form controls (shared) —— */
.form-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 3px solid #1a120c;
  background: #0c120e;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-input--mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 4.5rem;
  cursor: pointer;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.form-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.tool-output-wrap {
  display: grid;
  gap: 0.65rem;
}

.copy-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.9rem 1.1rem;
  border: 3px solid #1a120c;
  background: linear-gradient(180deg, #5ecf6a, #2d7a38);
  color: #06140c;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
  box-shadow: 4px 4px 0 #000;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .world-grid,
  .world-block {
    transform: none !important;
  }
}

/* —— Narrow desktop: slightly tighter nav —— */
@media (max-width: 980px) {
  .site-nav a,
  .site-nav__btn {
    padding-inline: 0.4rem;
  }

  .site-header__inner {
    padding-inline: 0.85rem;
    gap: 0.5rem;
  }
}

/* —— Mobile —— */
@media (max-width: 640px) {
  .site-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 0.35rem;
    border-top: 3px solid #1a120c;
  }

  body.nav-open .site-nav { display: flex; }

  .site-nav a {
    padding: 0.8rem 0.35rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.35);
    white-space: normal;
  }

  .site-nav__user {
    max-width: none;
  }

  .tool-grid { grid-template-columns: 1fr; }

  .guide-grid { grid-template-columns: 1fr; }

  .forum-board {
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .hero__title { max-width: none; }

  .site-main { padding: 1.25rem 0.85rem 2.25rem; }

  .world-block { opacity: 0.28; }
}
