/* =====================================================================
   GRAYHAT — ORTAK STYLESHEET
   Bu dosya HOME ve POST DETAIL sayfalarının İKİSİ tarafından da kullanılır.
   Rails tarafında: app/assets/stylesheets/grayhat.css (tek dosya, ikiye bölme)
   ===================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #0d1015;
  --bg2: #0b0d10;
  --text: #dcdfe3;
  --mid: #8d98a5;
  --low: #5b6470;
  --gold: #d6a24a;
  --danger: #d9584e;
  --online: #4bd07a;
  --offline: #6b7178;
  --gray-1: #1a1d23;
  --gray-2: #242832;
  --gray-3: #3a3f4a;
  --gray-text: #aeb4bd;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Inter", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

/* ── AYDINLATMA MODU (ışık butonu) — siteyi altın renkle aydınlatır ── */
:root.gray-mode {
  --bg: #d8d8d5;
  --bg2: #ccccca;
  --text: #1f1f1f;
  --mid: #555555;
  --low: #7a7a7a;
  --gold: #b8860b;
  --danger: #c0392b;
  --online: #2e8b57;
  --offline: #9b9b9b;
  --gray-1: #e2e2df;
  --gray-2: #d4d4d1;
  --gray-3: #b5b5b1;
  --gray-text: #4a4a4a;
}
:root.gray-mode body {
  background-image:
    radial-gradient(circle at 15% 0%, #ecece9 0%, transparent 42%),
    linear-gradient(var(--bg), var(--bg2));
}
:root.gray-mode .logo a,
:root.gray-mode .featured-body h1 a,
:root.gray-mode .title a,
:root.gray-mode .featured-body h1,
:root.gray-mode h1.post-title,
:root.gray-mode .weather-widget .temp,
:root.gray-mode .row .value,
:root.gray-mode .post-body h2,
:root.gray-mode .post-body strong {
  color: var(--text);
}
:root.gray-mode .logo a {
  text-shadow: 0 0 8px rgba(184, 134, 11, 0.55), 0 0 22px rgba(184, 134, 11, 0.3), 0 0 46px rgba(184, 134, 11, 0.18);
}
:root.gray-mode .logo span {
  text-shadow: 0 0 8px rgba(184, 134, 11, 0.85), 0 0 22px rgba(184, 134, 11, 0.5), 0 0 46px rgba(184, 134, 11, 0.3);
}
:root.gray-mode .logo span,
:root.gray-mode .section-label,
:root.gray-mode .category-tag,
:root.gray-mode .crumb a:hover {
  color: var(--gold);
}
:root.gray-mode header.site-header,
:root.gray-mode footer.site-footer,
:root.gray-mode .msg-popover {
  background: var(--gray-1);
  border-color: var(--gray-3);
}
:root.gray-mode .main-nav a {
  color: var(--text);
  font-weight: 700;
}
:root.gray-mode .main-nav a:hover {
  color: var(--gold);
}
:root.gray-mode .gh-search-input,
:root.gray-mode .gh-search-btn,
:root.gray-mode .btn,
:root.gray-mode .send-btn {
  background: var(--gray-1);
  border-color: var(--gray-3);
  color: var(--text);
}
:root.gray-mode .hero,
:root.gray-mode .cards,
:root.gray-mode .panel,
:root.gray-mode .card,
:root.gray-mode .cat-item,
:root.gray-mode .post-card {
  background: var(--gray-1);
  border-color: var(--gray-3);
}
:root.gray-mode .hero h2,
:root.gray-mode .card h3,
:root.gray-mode .card .read,
:root.gray-mode .featured-title,
:root.gray-mode .post-card h2 {
  color: var(--text);
}
:root.gray-mode .gh-feat-excerpt,
:root.gray-mode .card p,
:root.gray-mode .meta-text,
:root.gray-mode .foot-grid p,
:root.gray-mode .foot-grid h4,
:root.gray-mode .newsletter input,
:root.gray-mode .foot-bottom {
  color: var(--gray-text);
}
:root.gray-mode .newsletter input {
  background: var(--gray-2);
  border-color: var(--gray-3);
}
:root.gray-mode .newsletter button {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
:root.gray-mode .post-body {
  color: #3a352b;
}
:root.gray-mode .featured-thumb,
:root.gray-mode .thumb {
  background: linear-gradient(135deg, #c9c9c5, #b0b0ab);
}
:root.gray-mode .weather-widget {
  background: linear-gradient(160deg, #d4d4d1, var(--gray-1));
  border-color: var(--gray-3);
}
:root.gray-mode .weather-widget .card,
:root.gray-mode .weather-widget .card:hover {
  background: transparent;
  border-color: transparent;
}
:root.gray-mode .weather-widget .loc {
  color: var(--mid);
}
:root.gray-mode .weather-widget .temp {
  color: var(--text);
}
:root.gray-mode .weather-widget .meta,
:root.gray-mode .weather-widget .extra span b,
:root.gray-mode .weather-widget .day.today,
:root.gray-mode .weather-widget .day.today .hi {
  color: var(--gold);
}
:root.gray-mode .weather-widget .extra,
:root.gray-mode .weather-widget .forecast {
  border-top-color: var(--gray-3);
  color: var(--mid);
}
:root.gray-mode .weather-widget .day {
  color: var(--mid);
}
:root.gray-mode .weather-widget .day .hi {
  color: var(--text);
}
:root.gray-mode .weather-widget .day .lo {
  color: var(--low);
}
:root.gray-mode .featured-body h1,
:root.gray-mode .featured-body p {
  color: var(--text);
}
:root.gray-mode .row .label,
:root.gray-mode .row .unit {
  color: var(--mid);
}
:root.gray-mode .footer-links a,
:root.gray-mode .foot-links a {
  color: var(--gray-text);
}
:root.gray-mode .hero,
:root.gray-mode .cards,
:root.gray-mode .panel {
  background: var(--gray-1);
  border-color: var(--gray-3);
}
:root.gray-mode .post-body h1,
:root.gray-mode .post-body h3,
:root.gray-mode .post-body h4,
:root.gray-mode .post-body li {
  color: var(--text);
}
html {
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  background-image:
    radial-gradient(circle at 15% 0%, #17202d 0%, transparent 42%),
    linear-gradient(var(--bg), var(--bg2));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(/%23n)'/></svg>");
}

/* Footer'ı sayfanın en altına sabitle — boşluk kalmasın */
main {
  flex: 1 0 auto;
}
footer.site-footer {
  flex-shrink: 0;
}

/* ============ HEADER (her sayfada BİREBİR aynı olmalı) ============ */
header.site-header {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--gray-3);
  position: relative;
  z-index: 2;
}
.logo {
  font-family: var(--mono);
  letter-spacing: 8px;
  font-size: 22px;
  color: #fff;
  font-weight: 500;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.logo a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(214, 162, 74, 0.65), 0 0 22px rgba(214, 162, 74, 0.4), 0 0 46px rgba(214, 162, 74, 0.25);
}
.logo span {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(214, 162, 74, 0.9), 0 0 22px rgba(214, 162, 74, 0.6), 0 0 46px rgba(214, 162, 74, 0.4);
}
nav.main-nav {
  display: flex;
  gap: 28px;
}
nav.main-nav a {
  color: var(--gray-text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  font-family: var(--mono);
  white-space: nowrap;
}
nav.main-nav a:hover {
  color: var(--gold);
}

/* --- KATEGORİLER dropdown --- */
.nav-dropdown {
  position: relative;
}
.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-text);
  font-size: 12px;
  letter-spacing: 2px;
  font-family: var(--mono);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}
.nav-drop-btn:hover,
.nav-drop-btn:focus {
  color: var(--gold);
}
.nav-caret {
  font-size: 10px;
  color: var(--gold);
}
.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  max-width: 360px;
  background: var(--bg2);
  border: 1px solid var(--gray-3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 10px 0;
  z-index: 2000;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cat-group {
  padding: 4px 0;
}
.cat-group-title {
  padding: 6px 18px 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  border-bottom: 1px solid var(--gray-3);
}
.cat-link {
  display: block;
  padding: 8px 18px;
  color: var(--gray-text);
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.cat-link:hover {
  color: var(--gold);
  background: var(--gray-1);
}
.cat-empty {
  display: block;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gray-text);
}
:root.gray-mode .nav-drop-btn {
  color: var(--text);
  font-weight: 700;
}
:root.gray-mode .nav-drop-btn:hover,
:root.gray-mode .nav-drop-btn:focus {
  color: var(--gold);
}
:root.gray-mode .nav-drop-panel {
  background: var(--gray-1);
  border-color: var(--gray-3);
}
:root.gray-mode .cat-link {
  color: var(--text);
}
:root.gray-mode .cat-link:hover {
  color: var(--gold);
  background: var(--gray-2);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  justify-content: flex-end;
}

/* --- ADMIN: SECURE butonu + online/offline durum chip'i --- */
.btn-secure {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gray-text);
  border: 1px solid var(--gray-3);
  background: var(--gray-1);
  padding: 7px 14px;
  cursor: pointer;
  text-decoration: none;
}
.btn-secure:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.admin-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--gray-3);
  background: var(--gray-1);
  padding: 7px 12px;
  letter-spacing: 0.5px;
}
.admin-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* durum: ONLINE — tıklanabilir, mesaj formu açar */
.admin-status.is-online {
  color: var(--gray-text);
  cursor: pointer;
}
.admin-status.is-online:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.admin-status.is-online .dot {
  background: var(--online);
  box-shadow: 0 0 8px var(--online);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* durum: OFFLINE — tıklanamaz, soluk */
.admin-status.is-offline {
  color: var(--low);
  cursor: default;
}
.admin-status.is-offline .dot {
  background: var(--offline);
}

.msg-popover {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  width: 270px;
  z-index: 20;
  background: var(--gray-1);
  border: 1px solid var(--gray-3);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.msg-popover.open {
  display: block;
}
.msg-popover h5 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.msg-popover .sub {
  font-size: 11px;
  color: var(--gray-text);
  margin-bottom: 12px;
}
.msg-popover .mp-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.msg-popover input {
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  padding: 9px;
}
.msg-popover textarea {
  width: 100%;
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12px;
  padding: 9px;
  resize: none;
  height: 64px;
  margin-bottom: 10px;
  margin-top: 8px;
}
.msg-popover button {
  width: 100%;
  background: var(--gold);
  color: #0d1015;
  border: none;
  padding: 9px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

/* ============ FLOATING WIDGETS: GEO + HAVA (her sayfada aynı) ============ */
.floating-widgets {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 44px;
  position: relative;
  height: 300px;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 44px;
}
.geo-widget {
  width: 280px;
  margin-top: 24px;
  flex-shrink: 0;
  flex-grow: 0;
  background: var(--gray-1);
  border: 1px solid var(--gray-3);
  border-radius: 8px;
  padding: 18px;
}
.geo-widget .live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-text);
  margin-bottom: 10px;
}
.geo-widget .live .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 6px var(--online);
  animation: pulse 1.6s infinite;
}
.geo-widget .count {
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  font-family: var(--serif);
}
.geo-widget .count small {
  font-size: 12px;
  color: var(--gray-text);
  font-family: var(--sans);
  font-weight: 400;
  margin-left: 4px;
}
.geo-loc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-3);
  font-family: var(--mono);
}
.geo-loc .loc-flag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.geo-loc .loc-flag img {
  width: 18px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: block;
}
.geo-loc .loc-code {
  font-size: 10px;
  color: var(--gray-text);
  letter-spacing: 1px;
}
.geo-loc .loc-flag.own .loc-code {
  color: var(--gold);
}
.geo-loc .loc-cnt {
  font-size: 9px;
  color: var(--low);
  line-height: 1;
}
.geo-loc .loc-sep {
  color: var(--gray-3);
  font-size: 9px;
  line-height: 1;
}
.geo-widget .loc {
  margin-top: 10px;
  font-size: 11px;
  color: var(--gray-text);
  font-family: var(--mono);
}

.weather-widget {
  /* ==== KONUM: GEO ile aynı satırda/hizada, sağda ==== */
  position: absolute !important;
  top: 24px !important;
  right: 44px !important;
  left: auto !important;

  /* ==== BOYUT: kompakt, okunur, post kutusuna değmez ==== */
  width: 300px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  /* ==== HİÇBİR ŞEKİLDE ESNEMESİN / UZAMASIN ==== */
  flex: none !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  align-self: flex-start !important;
  display: block !important;

  /* görünüm (renk/border mevcut) */
  box-sizing: border-box !important;
  background: linear-gradient(160deg, #1c2b3d, var(--gray-1));
  border: 1px solid var(--gray-3);
  border-radius: 8px;
  padding: 8px 12px;
}
.weather-widget .card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  padding: 0;
}
.weather-widget .card:hover {
  border-color: transparent;
}
.weather-widget .loc {
  font-size: 13px;
  color: #c3c8ce;
  font-family: "IBM Plex Mono";
  font-weight: 500;
  text-align: right;
  margin-bottom: 1px;
  letter-spacing: 0.3px;
}
.weather-widget .loc .approx {
  font-size: 9px;
  color: #d6a24a;
  opacity: 0.85;
  letter-spacing: 0.5px;
}
.weather-widget .now {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: -2px;
}
.weather-widget .icon {
  font-size: 40px;
  line-height: 1;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
.weather-widget .temp {
  font-size: 30px;
  font-weight: 600;
  font-family: "Source Serif 4";
  color: #fff;
}
.weather-widget .meta {
  font-size: 11px;
  color: #d6a24a;
  font-family: "IBM Plex Mono";
  margin-top: 1px;
  display: block;
  align-items: normal;
  justify-content: normal;
  gap: normal;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.weather-widget .extra {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  padding-top: 3px;
  border-top: 1px solid #3a3f4a;
  font-size: 11px;
  color: #8d98a5;
  font-family: "IBM Plex Mono";
}
.weather-widget .extra span b {
  color: #d6a24a;
}
.weather-widget .forecast {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid #3a3f4a;
}
.weather-widget .day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.3;
  font-family: "IBM Plex Mono";
  font-size: 11px;
  color: #8d98a5;
}
.weather-widget .day .ic {
  font-size: 19px;
  line-height: 1.1;
  margin: 1px 0;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
.weather-widget .day .hi {
  color: #e6e7ea;
  font-weight: 600;
}
.weather-widget .day .lo {
  color: #5b6470;
}
.weather-widget .day.today {
  color: #d6a24a;
}
.weather-widget .day.today .hi {
  color: #d6a24a;
}

/* ============ HOME: hero / featured post / cards ============ */
.hero {
  max-width: 1400px;
  margin: auto;
  padding: 70px 44px 120px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--mono);
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 12px;
  margin-bottom: 18px;
}
.featured {
  border: 1px solid var(--gray-3);
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-1);
}
.featured-thumb {
  height: 260px;
  background: linear-gradient(135deg, #1e2937, #10141b);
  position: relative;
  overflow: hidden;
}
.featured-thumb .thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.featured-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 15, 0.9));
}
.featured-thumb .sev {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid rgba(217, 88, 78, 0.4);
  color: var(--danger);
  background: rgba(13, 16, 21, 0.7);
}
.featured-thumb .cat {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
}
.featured-body {
  padding: 26px 28px 30px;
}
.featured-body h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.28;
  color: #fff;
  margin-bottom: 14px;
  max-width: 22ch;
}
.featured-body h1 a {
  color: #fff;
  text-decoration: none;
}
.featured-body p {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.8;
  max-width: 56ch;
  margin-bottom: 22px;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-text);
  font-family: var(--mono);
  margin-bottom: 22px;
}
.buttons {
  display: flex;
  gap: 16px;
}
.btn {
  padding: 13px 26px;
  border: 1px solid var(--gray-3);
  background: var(--gray-2);
  color: var(--text);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
}
.btn:hover {
  border-color: var(--gold);
}
.btn.primary {
  background: var(--gold);
  color: #0d1015;
  border-color: var(--gold);
  font-weight: 600;
}

.panel {
  background: var(--gray-1);
  border: 1px solid var(--gray-3);
  padding: 28px;
  border-radius: 10px;
  height: fit-content;
}
.panel h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 22px;
  border-bottom: 1px solid var(--gray-3);
  padding-bottom: 14px;
}
.row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-2);
  font-size: 13px;
}
.row:last-child {
  border-bottom: none;
}
.row span:first-child {
  color: var(--gray-text);
}
.row .value {
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
}
.row .value.live {
  color: var(--gold);
}
.row .value.live::before {
  content: "● ";
  font-size: 9px;
}

.section-label {
  max-width: 1400px;
  margin: 0 auto 48px;
  padding: 0 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gray-text);
  position: relative;
  z-index: 1;
}
.cards {
  max-width: 1400px;
  margin: auto;
  padding: 42px 44px 170px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  position: relative;
  z-index: 1;
}
.card {
  background: var(--gray-1);
  border: 1px solid var(--gray-3);
  border-radius: 10px;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(214, 162, 74, 0.45);
}
.thumb {
  height: 140px;
  background: linear-gradient(135deg, #1e2937, #10141b);
  position: relative;
  overflow: hidden;
}
.thumb .thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb .fake-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}
.thumb .sev {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 1px solid var(--gray-3);
  color: var(--gray-text);
  background: var(--gray-2);
}
.info {
  padding: 20px;
}
.category {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--gold);
  letter-spacing: 2px;
}
.title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.title a {
  color: #fff;
  text-decoration: none;
}
.desc {
  margin-top: 10px;
  color: var(--gray-text);
  line-height: 1.7;
  font-size: 13px;
}
.read {
  margin-top: 16px;
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
}
.stats {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--gray-text);
  font-family: var(--mono);
  border-top: 1px solid var(--gray-2);
  padding-top: 12px;
}

/* ============ FOOTER (her sayfada BİREBİR aynı) ============ */
footer.site-footer {
  border-top: 1px solid var(--gray-3);
  padding: 18px 50px 14px;
  background: var(--gray-1);
  position: relative;
  z-index: 1;
}
.foot-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 22px;
}
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gray-text);
  margin-bottom: 8px;
}
.foot-grid p {
  color: var(--gray-text);
  font-size: 12px;
  line-height: 1.6;
  max-width: 38ch;
}
.foot-links a {
  display: block;
  color: var(--gray-text);
  text-decoration: none;
  font-size: 12px;
  padding: 4px 0;
}
.foot-links a:hover {
  color: var(--gold);
}
.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.newsletter input {
  flex: 1;
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  padding: 8px 12px;
  color: var(--text);
  font-size: 12px;
}
.newsletter button {
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  color: var(--text);
  padding: 0 14px;
  font-size: 12px;
  cursor: pointer;
}
.foot-bottom {
  max-width: 1180px;
  margin: 16px auto 0;
  padding-top: 10px;
  border-top: 1px solid var(--gray-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-text);
  letter-spacing: 1px;
}

/* ============ POST DETAIL sayfası ============ */
.wrap {
  max-width: 1400px;
  margin: auto;
  padding: 44px 40px 100px;
  position: relative;
  z-index: 1;
}
.crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--low);
  margin-bottom: 22px;
}
.crumb a {
  color: var(--low);
  text-decoration: none;
}
.crumb a:hover {
  color: var(--gold);
}
.crumb .cur {
  color: var(--mid);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
.category-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}
h1.post-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.28;
  max-width: 20ch;
  color: #fff;
  margin-bottom: 22px;
}
.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 32px;
  background: var(--gray-1);
  border: 1px solid var(--gray-3);
  border-radius: 6px;
}
.meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gray-3), var(--gray-1));
  border: 1px solid var(--gray-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
}
.meta-text {
  font-size: 13px;
  color: var(--gray-text);
}
.meta-text b {
  color: var(--text);
  font-weight: 500;
}
.meta-text .dot {
  margin: 0 8px;
  color: var(--gray-3);
}
.read-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gray-text);
  border: 1px solid var(--gray-3);
  padding: 5px 10px;
  border-radius: 3px;
  background: var(--gray-2);
}
.hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--gray-3);
  position: relative;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) brightness(0.92);
}
.post-body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  color: #c8ccd2;
  max-width: 72ch;
}
.post-body p {
  margin-bottom: 22px;
}
.post-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 56px;
  float: left;
  line-height: 0.8;
  padding: 6px 8px 0 0;
  color: var(--gold);
  font-weight: 600;
}
.post-body h2 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 38px 0 14px;
}
.post-body strong {
  color: #fff;
  font-weight: 600;
}
.post-body pre,
.post-body code {
  font-family: var(--mono);
}
.post-body pre {
  overflow-x: auto;
  max-width: 100%;
}
.post-body table {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.post-body th,
.post-body td {
  padding: 8px 12px;
  border: 1px solid var(--gray-3);
  text-align: left;
}
.post-body img {
  max-width: 100%;
  height: auto;
}
.pull {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 22px;
  margin: 30px 0;
  font-size: 15px;
  color: var(--gray-text);
  font-style: italic;
  max-width: 52ch;
}
.tags {
  margin-top: 34px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tags span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-text);
  border: 1px solid var(--gray-3);
  background: var(--gray-1);
  padding: 5px 11px;
  border-radius: 3px;
}
.share-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-3);
}
.share-row span.lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-text);
  letter-spacing: 2px;
}
.share-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-3);
  background: var(--gray-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  cursor: pointer;
  font-size: 12px;
  border-radius: 4px;
}

.comments {
  margin-top: 56px;
}
.comments h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 20px;
}
.empty-state {
  border: 1px dashed var(--gray-3);
  background: var(--gray-1);
  padding: 36px;
  text-align: center;
  color: var(--gray-text);
  font-size: 13px;
  font-family: var(--mono);
  border-radius: 6px;
}
.comment-form {
  margin-top: 28px;
  background: var(--gray-1);
  border: 1px solid var(--gray-3);
  padding: 26px;
  border-radius: 8px;
}
.comment-form .step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--gray-text);
}
.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-3);
  color: var(--gray-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
}
.step-num.active {
  background: var(--gold);
  color: #0d1015;
}
.step-num.done {
  background: var(--online);
  color: #0d1015;
}
.stage {
  display: none;
}
.stage.active {
  display: block;
}
.stage-note {
  font-size: 11px;
  color: var(--gray-text);
  font-family: var(--mono);
  margin-bottom: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--low);
  letter-spacing: 1px;
  margin-bottom: 7px;
}
.form-row input {
  width: 100%;
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  padding: 11px 13px;
  color: var(--text);
  font-size: 13px;
}
.code-input {
  width: 140px;
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 6px;
  text-align: center;
  margin-bottom: 14px;
}
.comment-text {
  width: 100%;
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  padding: 12px 13px;
  color: var(--text);
  font-size: 13px;
  min-height: 90px;
  resize: none;
  margin-bottom: 14px;
}
.send-btn {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: #0d1015;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.side-panel {
  background: var(--gray-1);
  border: 1px solid var(--gray-3);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 22px;
}
.side-panel h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gray-text);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-3);
  padding-bottom: 12px;
}
.pop-item {
  font-size: 13px;
  color: var(--gray-text);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-2);
  line-height: 1.5;
}
.cat-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-text);
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-2);
}
.cat-item .n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray-text);
  background: var(--gray-2);
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--gray-3);
}
.nl-input {
  width: 100%;
  background: var(--gray-2);
  border: 1px solid var(--gray-3);
  padding: 11px 13px;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 10px;
  margin-top: 10px;
}
.nl-btn {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 1px;
  cursor: pointer;
}

/* =====================================================================
   HAMBURGER (masaüstünde gizli)
   ===================================================================== */
.hamburger {
  display: none;
}

.mobile-menu {
  display: none;
}

/* =====================================================================
   MOBILE RESPONSIVE — 768px ve altı
   ===================================================================== */
@media (max-width: 768px) {

  /* ── Header: hamburger + ortada logo + sağda tema butonu ── */
  header.site-header {
    padding: 14px 16px;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
  }
  nav.main-nav {
    display: none;
  }
  .header-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .header-right .admin-status,
  .header-right .btn-secure,
  .header-right .msg-popover {
    display: none;
  }
  #gh-theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .logo {
    position: static;
    transform: none;
    font-size: 16px;
    letter-spacing: 5px;
    text-align: center;
  }
  .hamburger {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gray-1);
    border: 1px solid var(--gray-3);
    color: var(--gray-text);
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg2);
    border-bottom: 1px solid var(--gray-3);
    padding: 68px 16px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
  }
  .mobile-menu .m-logo {
    padding: 8px 12px 18px;
    font-family: var(--mono);
    font-size: 20px;
    letter-spacing: 6px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-bottom: 1px solid var(--gray-3);
    text-shadow: 0 0 8px rgba(214, 162, 74, 0.65), 0 0 22px rgba(214, 162, 74, 0.4), 0 0 46px rgba(214, 162, 74, 0.25);
  }
  .mobile-menu .m-logo span {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(214, 162, 74, 0.9), 0 0 22px rgba(214, 162, 74, 0.6), 0 0 46px rgba(214, 162, 74, 0.4);
  }
  :root.gray-mode .mobile-menu .m-logo {
    color: var(--text);
    text-shadow: 0 0 8px rgba(184, 134, 11, 0.55), 0 0 22px rgba(184, 134, 11, 0.3), 0 0 46px rgba(184, 134, 11, 0.18);
  }
  :root.gray-mode .mobile-menu .m-logo span {
    text-shadow: 0 0 8px rgba(184, 134, 11, 0.85), 0 0 22px rgba(184, 134, 11, 0.5), 0 0 46px rgba(184, 134, 11, 0.3);
  }
  .mobile-menu a {
    padding: 15px 12px;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--gray-text);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-2);
  }
  .mobile-menu a:hover {
    color: var(--gold);
  }
  :root.gray-mode .mobile-menu a {
    color: var(--text);
    font-weight: 600;
  }
  .mobile-menu .m-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 12px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--gray-text);
    border-bottom: 1px solid var(--gray-2);
  }
  .mobile-menu .m-admin .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--online);
    box-shadow: 0 0 8px var(--online);
    animation: pulse 1.6s infinite;
  }
  .mobile-menu .m-admin .dot.offline {
    background: var(--offline);
    box-shadow: none;
    animation: none;
  }
  .mobile-menu .m-secure {
    margin-top: 10px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-align: center;
    letter-spacing: 3px;
  }
  .mobile-menu .m-cat-label {
    padding: 18px 12px 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold);
    border-bottom: 1px solid var(--gray-3);
  }
  .mobile-menu .m-cat-sec {
    padding: 14px 12px 4px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
  }

  /* ── Widget'lar: stack ── */
  .floating-widgets {
    height: auto;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
    margin-top: 18px;
  }
  .geo-widget {
    width: 100%;
    margin-top: 0;
  }
  .weather-widget {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  /* ── Grid'ler: tek kolon ── */
  .hero,
  .cards,
  .grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 40px 16px 60px;
    gap: 36px;
  }
  .cards {
    padding: 26px 16px 80px;
    gap: 28px;
  }
  .wrap {
    padding: 28px 16px 60px;
  }
  .section-label {
    padding: 0 16px;
  }
  .grid {
    gap: 40px;
  }
  .panel {
    padding: 22px 18px;
  }

  /* ── Font boyutları ── */
  h1.post-title {
    font-size: 24px;
    max-width: 100%;
  }
  .featured-body h1 {
    font-size: 22px;
    max-width: 100%;
  }
  .post-body p:first-of-type::first-letter {
    font-size: 36px;
  }
  .post-body {
    font-size: 16px;
  }
  .featured-body p {
    font-size: 13px;
  }
  .featured-body {
    padding: 20px 18px 24px;
  }
  .featured-thumb {
    height: 200px;
  }
  .crumb {
    font-size: 10px;
    overflow-wrap: anywhere;
  }
  .meta {
    flex-wrap: wrap;
  }

  /* ── Taşma önleme ── */
  .side-panel,
  .msg-popover,
  .code-input {
    max-width: 100%;
  }
  .msg-popover {
    width: calc(100vw - 32px);
    right: 16px;
  }
  img {
    max-width: 100%;
  }
  .hero-img {
    aspect-ratio: 16/9;
  }

  /* ── Touch hedefleri ── */
  .share-btn {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }
  .btn {
    padding: 14px 22px;
    min-height: 48px;
  }
  .send-btn,
  .nl-btn {
    min-height: 48px;
  }
  .card .read {
    padding: 10px 0;
    font-size: 14px;
  }
  .pop-item,
  .cat-item {
    padding: 14px 0;
  }
  .read-badge {
    padding: 8px 12px;
  }

  /* ── Footer: tek sütun (mobil taşma düzeltmesi) ── */
  footer.site-footer {
    padding: 18px 16px 14px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .newsletter input {
    min-width: 0;
  }
  .foot-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ════════════════════════════════════════════════════════════════
   GRAYHAT — YASAL SAYFALAR (Hakkımızda / Gizlilik / İletişim)
   ════════════════════════════════════════════════════════════════ */
.legal-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 22px 60px;
}
.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.legal-head {
  border: 1px solid var(--gray-3);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--gray-1), var(--gray-2));
  padding: 30px 34px;
  margin-bottom: 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.legal-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.legal-head h1 {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.legal-lead {
  color: var(--gray-text);
  font-size: 15px;
  line-height: 1.7;
}
.legal-body h2 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold);
  margin: 28px 0 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-3);
}
.legal-body p {
  color: var(--mid);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-body ul {
  margin: 0 0 16px 20px;
  padding: 0;
}
.legal-body li {
  color: var(--mid);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-body li strong {
  color: var(--text);
}
.legal-body a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 162, 74, 0.35);
}
.legal-body a:hover {
  color: var(--text);
  border-bottom-color: var(--gold);
}
.legal-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--low);
  letter-spacing: 1px;
}
.legal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.legal-stat {
  border: 1px solid var(--gray-3);
  border-radius: 12px;
  background: var(--gray-1);
  padding: 18px 12px;
  text-align: center;
}
.legal-stat .n {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}
.legal-stat .l {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--low);
}
.contact-actions {
  margin: 18px 0 8px;
}
.contact-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.contact-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-2);
}
:root.gray-mode .legal-head {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
@media (max-width: 640px) {
  .legal-stats {
    grid-template-columns: 1fr;
  }
  .legal-head {
    padding: 22px 18px;
  }
  .legal-head h1 {
    font-size: 24px;
  }
}

