/* =========================================================================
   ÇARK DEFTERİ — bölüm bölüm yeniden kurulmuş tasarım katmanı
   Dünya: maun çark ve çuha serilmiş masa. Pirinç fret, fildişi bilye,
   kırmızı/siyah cepler. Ritim: ÇUHA (masa) ↔ MAUN (çark gövdesi).
   ========================================================================= */

:root {
  --mah-1: #43190F;
  --mah-2: #2C0F08;
  --mah-3: #170704;
  --baize-1: #10493C;
  --baize-2: #0A3024;
  --baize-3: #061C16;
  --brass: #D6AE57;
  --brass-hi: #FBEBB6;
  --brass-lo: #7A5A14;
  --pocket-red: #C0392B;
  --pocket-black: #14161A;
  --pocket-green: #1E8A5F;
  --ivory: #F6F1E2;

  --baize-tex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/></filter><rect width='140' height='140' filter='url(%23b)'/></svg>");
  --wood: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='0.004 0.09' numOctaves='4'/><feColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.09 0 0 0 0 0.04 0 0 0 0.5 0'/></filter><rect width='300' height='300' filter='url(%23w)'/></svg>");
  /* SAYFA ARTIK KOYU: temel jetonlar baştan yeniden tanımlanıyor,
     yoksa açık tema mürekkebi çuhanın üstünde okunmuyor. */
  --bg: #0A3024;
  --ink: #F7EFDC;
  --ink-soft: #DCCEB2;
  --ink-faint: #B6A58A;
  --surface: rgba(246,241,226,.07);
  --surface-2: rgba(246,241,226,.12);
  --surface-3: #0A2219;
  --line: rgba(247,239,220,.2);
  --line-strong: rgba(247,239,220,.34);
  --accent-text: #FF9E8E;
  --accent2-text: #8FD9C0;
  --grid-fine: rgba(247,239,220,.05);
  --grid-bold: rgba(247,239,220,.1);
  --grid-blue: rgba(143,217,192,.14);

  /* pirinç fret şeridi — çarkın ayırıcıları gibi */
  --frets: repeating-linear-gradient(90deg,
      var(--brass-lo) 0 2px, var(--brass) 2px 5px, var(--brass-hi) 5px 6px,
      transparent 6px 34px);
}

/* ============================================================ MASA */
body {
  background-color: var(--baize-3);
  background-image:
    radial-gradient(60% 40% at 50% 0%, rgba(214,174,87,.16), transparent 64%),
    radial-gradient(85% 55% at 50% 45%, rgba(22,110,88,.45), transparent 72%),
    var(--baize-tex),
    linear-gradient(180deg, var(--baize-1), var(--baize-2) 58%, var(--baize-3));
  background-size: auto, auto, 140px 140px, auto;
  background-attachment: fixed;
}

/* ====================================================== BÖLÜM RİTMİ */
main > section { position: relative; isolation: isolate; }

/* — ÇUHA bölümü: içerik pirinç çerçeveli bir levha üstünde */
main > section:not(.hero) > .container {
  position: relative;
  padding-top: clamp(40px, 5vw, 62px);
  padding-bottom: clamp(32px, 4vw, 54px);
}
main > section:not(.hero) > .container::before {
  content: "";
  position: absolute;
  inset: 14px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(246,241,226,.055), rgba(0,0,0,.22));
  box-shadow:
    inset 0 0 0 1px rgba(214,174,87,.4),
    inset 0 0 0 4px rgba(10,48,36,.6),
    inset 0 0 0 5px rgba(214,174,87,.22),
    0 34px 64px -46px #000;
  pointer-events: none;
  z-index: 0;
}
main > section:not(.hero) > .container > * { position: relative; z-index: 1; }

/* — MAUN bandı: .band ve simülatör çarkın gövdesinde durur */
.band, .sim {
  background-color: var(--mah-2) !important;
  background-image:
    radial-gradient(70% 50% at 50% 0%, rgba(214,174,87,.2), transparent 66%),
    var(--wood),
    linear-gradient(180deg, var(--mah-1), var(--mah-2) 60%, var(--mah-3)) !important;
  background-size: auto, 300px 300px, auto;
  --ink: #F7EFDC;
  --ink-soft: #D8C6A6;
  --ink-faint: #B6A58A;
  --line: rgba(247,239,220,.2);
  --line-strong: rgba(247,239,220,.34);
  --surface: #3A1510;
  --surface-2: #2A0E09;
  --accent-text: #F0B9A9;
  --accent2-text: #8FD9C0;
  color: var(--ink);
  box-shadow:
    inset 0 4px 0 var(--brass-lo), inset 0 7px 0 var(--brass), inset 0 9px 0 var(--brass-hi),
    inset 0 -4px 0 var(--brass-lo), inset 0 -7px 0 var(--brass), inset 0 -9px 0 var(--brass-hi);
}
.band > .container::before, .sim > .container::before {
  background: linear-gradient(180deg, rgba(246,241,226,.06), rgba(0,0,0,.3));
  box-shadow:
    inset 0 0 0 1px rgba(251,235,182,.4),
    inset 0 0 0 4px rgba(44,15,8,.7),
    inset 0 0 0 5px rgba(214,174,87,.25),
    0 34px 64px -46px #000;
}

/* pirinç fret şeridi — her bölümün üst kenarında */
main > section:not(.hero)::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 9px;
  background: var(--frets), linear-gradient(180deg, #0C2A21, #061711);
  background-size: 34px 9px, auto;
  opacity: .95;
  z-index: 2;
  pointer-events: none;
}
.band::before, .sim::before { background: var(--frets), linear-gradient(180deg, #3A1510, #1C0905) !important; background-size: 34px 9px, auto !important; height: 9px !important; inset: 0 0 auto 0 !important; }

/* cep numarası — kırmızı/siyah dönüşümlü */
main { counter-reset: cep; }
main > section:not(.hero) { counter-increment: cep; }
main > section:not(.hero) > .container::after {
  content: counter(cep);
  position: absolute;
  top: 26px; right: clamp(4px, 1vw, 10px);
  width: 36px; height: 48px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--ivory);
  background: linear-gradient(180deg, #2A2D33, var(--pocket-black));
  border: 1px solid var(--brass-lo);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 14px -8px #000;
  z-index: 2;
}
main > section:nth-of-type(odd) > .container::after {
  background: linear-gradient(180deg, #D64B3C, var(--pocket-red));
}

/* ====================================================== BAŞLIKLAR */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1E1403;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 50%, var(--brass-lo));
  padding: 5px 13px;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 5px 14px -7px rgba(0,0,0,.9);
}
.eyebrow::before { content: none; }
.section-head { max-width: 72ch; }
.section-head h2, .hero h1 {
  font-family: var(--serif);
  color: #FBF6E8;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 0 40px rgba(0,0,0,.6);
}
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-top: 16px; }
.section-head h2::after {
  content: "";
  display: block;
  width: 180px; height: 9px;
  margin-top: 16px;
  background: var(--frets);
  background-size: 34px 9px;
  mask-image: linear-gradient(90deg, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
}
.lede { color: #E4D9C0; }

/* ====================================================== HERO = ÇARK */
.hero {
  background:
    radial-gradient(48% 48% at 50% 44%, rgba(214,174,87,.22), transparent 70%),
    radial-gradient(90% 70% at 50% 100%, rgba(22,110,88,.4), transparent 70%),
    linear-gradient(180deg, #0D3A2E, #082A20 60%, #04120E) !important;
  border-bottom: 0;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 11px;
  background: var(--frets), linear-gradient(180deg, #3A1510, #190703);
  background-size: 34px 11px, auto;
  z-index: 3;
}
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 4.6rem); }
.hero .lede { color: #DCD0B4; }

/* ====================================================== PANELLER */
.panel, .sys-card, .photo, .answer {
  background: linear-gradient(180deg, rgba(246,241,226,.07), rgba(0,0,0,.26));
  border: 1px solid rgba(214,174,87,.34);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(251,235,182,.2), 0 24px 48px -34px #000;
  color: var(--ink);
}
.band .panel, .sim .panel, .band .sys-card { background: linear-gradient(180deg, rgba(246,241,226,.08), rgba(0,0,0,.34)); }
.sys-card .no {
  font-family: var(--mono);
  color: var(--ivory);
  background: linear-gradient(180deg, #D64B3C, var(--pocket-red));
  border: 1px solid var(--brass-lo);
  border-radius: 3px;
  width: 34px; height: 44px;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.sys-card:nth-child(even) .no { background: linear-gradient(180deg, #2A2D33, var(--pocket-black)); }
.sys-formula {
  font-family: var(--mono);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(214,174,87,.3);
  border-left: 3px solid var(--brass);
  border-radius: 3px;
  color: #F3E7C8;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(214,174,87,.14);
  border: 1px solid rgba(214,174,87,.45);
  color: #F2DFAE;
  border-radius: 2px;
  padding: 4px 10px;
}
.trust-badge { color: #DCD0B4; }
.trust-badge::before { background: var(--pocket-green); box-shadow: 0 0 10px rgba(30,138,95,.9); }
.photo .corner { border-color: var(--brass) !important; }
.fig-note { color: #C8BC9F; }

/* ====================================================== DÜĞMELER */
.btn { border-radius: 3px; font-weight: 700; }
.btn-primary, .btn.primary {
  background: linear-gradient(180deg, #D64B3C, var(--pocket-red) 50%, #7E2014);
  color: #FFF2EC;
  border: 1px solid #5E1409;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 26px -14px rgba(0,0,0,.95);
}
.btn-ghost, .btn.ghost {
  background: rgba(214,174,87,.12);
  border: 1px solid rgba(214,174,87,.55);
  color: #F3E7C8;
}

/* ====================================================== ÜST / ALT */
.site-header,
.site-header.is-scrolled {
  background: linear-gradient(180deg, rgba(10,28,22,.97), rgba(10,28,22,.9));
  border-bottom: 0;
  box-shadow: inset 0 -4px 0 var(--brass-lo), inset 0 -7px 0 var(--brass), 0 10px 28px -22px #000;
}
.site-header .brand, .site-header .brand:hover { color: #F7EFDC; }
.site-header nav a, .site-header .nav a { color: #E6DBC2; }
.brand .brand-mark {
  width: 36px; height: 36px;
  border-radius: 0 !important;
  background: url("../images/mark.svg") center/contain no-repeat !important;
  border: 0 !important;
  box-shadow: none;
}
.brand .brand-mark::before, .brand .brand-mark::after { content: none; }

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0A2219, #05120D);
  color: #E8DDC4;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 9px;
  background: var(--frets), linear-gradient(180deg, #3A1510, #190703);
  background-size: 34px 9px, auto;
}
.site-footer > .container { padding-top: 32px; }

@media (max-width: 760px) {
  main > section:not(.hero) > .container::before { inset: 10px 0; }
  main > section:not(.hero) > .container::after { display: none; }
}

/* styles.css'te "color: var(--surface)" kalıbı vardı: jetonlar koyuya dönünce
   metin saydamlaştı. Üst menü ve çekmece düğmesi artık pirinç plaka. */
.nav-desktop a.nav-cta,
header a.nav-cta,
.btn.drawer-cta {
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 50%, var(--brass-lo)) !important;
  color: #1E1403 !important;
  border: 1px solid #5B430C;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 10px 22px -12px rgba(0,0,0,.9);
  font-weight: 700;
}
.nav-desktop a.nav-cta:hover,
header a.nav-cta:hover,
.btn.drawer-cta:hover {
  background: linear-gradient(180deg, #FFF6D6, #E8C068 50%, #8E6A18) !important;
  color: #1E1403 !important;
}
.hero-figure {
  background: linear-gradient(180deg, rgba(246,241,226,.08), rgba(0,0,0,.3));
  border-color: rgba(214,174,87,.4);
  box-shadow: inset 0 1px 0 rgba(251,235,182,.2), 0 30px 60px -42px #000;
}
.hero-figure .fig-label {
  background: #0B2A20;
  border-color: rgba(214,174,87,.4);
  color: #E3D6B6;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(214,174,87,.22) !important;
  color: #FFF4D8 !important;
  border-color: var(--brass) !important;
}

/* çerez düğmeleri ve atlama bağlantısı da jeton değişiminden etkilendi:
   zemin --ink (krem) kaldı, metin beyaz. İkisini de açıkça yazıyoruz. */
.skip-link {
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 50%, var(--brass-lo)) !important;
  color: #1E1403 !important;
  font-weight: 700;
}
.cookie-banner {
  background: linear-gradient(180deg, #0F3428, #081F18) !important;
  border: 1px solid rgba(214,174,87,.45);
  color: #EFE5CC;
  box-shadow: 0 -16px 40px -24px #000, inset 0 2px 0 var(--brass);
}
.cookie-banner h4 { color: #FBF6E8; }
.cookie-actions button[data-consent="accept"] {
  background: linear-gradient(180deg, #3FBE8E, var(--pocket-green) 55%, #0C5B3C) !important;
  color: #04170F !important;
  border: 1px solid #0A4630 !important;
}
.cookie-actions button[data-consent="reject"] {
  background: linear-gradient(180deg, #D64B3C, var(--pocket-red) 55%, #7E2014) !important;
  color: #FFF2EC !important;
  border: 1px solid #5E1409 !important;
}
.cookie-actions button[data-consent="settings"] {
  background: rgba(214,174,87,.14) !important;
  color: #F3E7C8 !important;
  border: 1px solid rgba(214,174,87,.5) !important;
}
