/* SymDevAI · Adım adım kurulum sayfaları (windows.html, macos.html, linux.html) */
:root {
  --bg: #060d08;
  --bg2: #0b160d;
  --surface: #0f1f12;
  --surface2: #162218;
  --border: rgba(74, 222, 128, 0.12);
  --border-bright: rgba(74, 222, 128, 0.32);
  --green: #4ade80;
  --green-dim: #22c55e;
  --lime: #a3e635;
  --white: #f0fdf4;
  --text: #d6eedc;
  --muted: #8db89a;
  --amber: #fbbf24;
  --red: #f87171;
  --glow: rgba(74, 222, 128, 0.22);
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --top-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before { /* yumuşak arka plan ışıması */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(74, 222, 128, .10), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(96, 165, 250, .07), transparent 60%);
}
a { color: var(--green); }
img { max-width: 100%; display: block; }
strong { color: var(--white); }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: rgba(6, 13, 8, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { font: 800 21px var(--font-display); color: var(--white); text-decoration: none; white-space: nowrap; }
.brand .d { color: #60a5fa; } .brand .a { color: var(--green); }
.os-tabs { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.os-tabs a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px; padding: 6px 14px; border-radius: 999px; display: flex; align-items: center; gap: 7px; transition: .2s; }
.os-tabs a:hover { color: var(--white); }
.os-tabs a.on { background: var(--green); color: #052e16; }
.spacer { flex: 1; }
.pdf-btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap;
  font-weight: 700; font-size: 14px; color: #052e16; background: var(--green);
  padding: 9px 16px; border-radius: 10px; box-shadow: 0 0 0 0 var(--glow); transition: .2s;
}
.pdf-btn:hover { box-shadow: 0 0 0 6px var(--glow); transform: translateY(-1px); }

/* ---------- İlerleme ---------- */
.progress-wrap { position: sticky; top: var(--top-h); z-index: 40; height: 4px; background: rgba(74, 222, 128, .08); }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--lime)); box-shadow: 0 0 12px var(--glow); transition: width .6s cubic-bezier(.2, .8, .2, 1); }

.os-hint {
  position: relative; z-index: 1; max-width: 1240px; margin: 14px auto 0; padding: 10px 16px;
  border: 1px solid rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); color: #fde68a;
  border-radius: 12px; font-size: 14px; display: none; align-items: center; gap: 10px;
}
.os-hint.show { display: flex; }
.os-hint a { color: var(--amber); font-weight: 700; }

/* ---------- Yerleşim ---------- */
.layout {
  position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 22px 24px 60px;
  display: grid; grid-template-columns: 290px 1fr; gap: 26px; align-items: start;
}

/* Sol: adım listesi */
.nav {
  position: sticky; top: calc(var(--top-h) + 20px); max-height: calc(100vh - var(--top-h) - 40px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 12px;
}
.nav-head { display: flex; align-items: center; gap: 12px; padding: 0 6px 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.ring { width: 46px; height: 46px; flex: none; }
.ring circle { fill: none; stroke-width: 5; }
.ring .bgc { stroke: rgba(74, 222, 128, .12); }
.ring .fgc { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset .6s; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { fill: var(--white); font: 800 10.5px var(--font-display); }
.nav-head b { display: block; color: var(--white); font: 800 15px var(--font-display); }
.nav-head span { color: var(--muted); font-size: 12.5px; }
.nav-part { color: var(--green); font: 800 11px var(--font-display); letter-spacing: .08em; text-transform: uppercase; padding: 12px 8px 4px; }
.nav button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  background: none; border: 0; color: var(--muted); font: 500 13.5px var(--font-body); padding: 7px 8px; border-radius: 9px; transition: .15s;
}
.nav button:hover { background: var(--surface2); color: var(--white); }
.nav button .dot {
  width: 22px; height: 22px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 800 11px var(--font-display); border: 1.5px solid rgba(141, 184, 154, .45); color: var(--muted);
}
.nav button.done .dot { background: var(--green-dim); border-color: var(--green-dim); color: #052e16; }
.nav button.done .dot::after { content: "✓"; }
.nav button.done .dot span { display: none; }
.nav button.cur { background: rgba(74, 222, 128, .10); color: var(--white); }
.nav button.cur .dot { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 4px var(--glow); }

/* Sağ: adım kartı */
.stage { min-width: 0; }
.kstep { display: none; }
.kstep.active { display: block; animation: stepIn .45s cubic-bezier(.2, .8, .2, 1); }
.kstep.active.back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.step-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.step-no { font: 800 12px var(--font-display); letter-spacing: .08em; color: #052e16; background: var(--green); padding: 3px 10px; border-radius: 999px; }
.step-part { font: 700 12px var(--font-display); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.chip { font: 800 11px var(--font-display); letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-bright); color: var(--green); background: rgba(74, 222, 128, .08); }
.chip.red { color: var(--red); border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .08); }
.kstep h1 { font: 900 30px/1.2 var(--font-display); color: var(--white); margin-bottom: 10px; }
.kstep p { margin: 8px 0; }
.kstep ol, .kstep ul.plain { margin: 8px 0 8px 22px; }
.kstep li { margin: 4px 0; }
.ui { color: var(--white); font-weight: 700; }
kbd { font: 700 12.5px var(--font-body); color: var(--white); background: var(--surface2); border: 1px solid var(--border-bright); border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px; }

/* Bilgi kutuları */
.note { border: 1px solid var(--border-bright); background: rgba(74, 222, 128, .06); border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.note.warn { border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .07); }
.note.stop { border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .07); }
.note b.t { display: block; color: var(--white); margin-bottom: 2px; }
.note ul { margin: 6px 0 0 18px; }

/* Gereksinim listesi (animasyonlu tikler) */
.checks { list-style: none; margin: 14px 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; opacity: 0; transform: translateY(8px); }
.kstep.active .checks li { animation: rise .45s forwards; }
.kstep.active .checks li:nth-child(2) { animation-delay: .08s; } .kstep.active .checks li:nth-child(3) { animation-delay: .16s; }
.kstep.active .checks li:nth-child(4) { animation-delay: .24s; } .kstep.active .checks li:nth-child(5) { animation-delay: .32s; }
.checks .ic { width: 26px; height: 26px; flex: none; border-radius: 8px; background: rgba(74, 222, 128, .14); color: var(--green); display: flex; align-items: center; justify-content: center; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Sihirbaz adımları (Next / Install / Finish) */
.mini { list-style: none; counter-reset: m; margin: 10px 0; display: grid; gap: 8px; }
.mini li { counter-increment: m; position: relative; padding: 9px 12px 9px 46px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; }
.mini li::before { content: counter(m); position: absolute; left: 12px; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #052e16; font: 800 12px var(--font-display); display: flex; align-items: center; justify-content: center; }
.btnlike { display: inline-block; font: 600 13px "Segoe UI", system-ui, sans-serif; color: #111; background: #f3f4f6; border: 1px solid #c4c9d0; border-radius: 5px; padding: 0 9px; line-height: 22px; }

/* ---------- Ekran görüntüsü + animasyonlu işaretler ---------- */
.shot { position: relative; margin: 18px auto 8px; border-radius: 12px; cursor: zoom-in; }
.shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.shot.w40 { width: 40%; } .shot.w50 { width: 50%; } .shot.w60 { width: 60%; } .shot.w70 { width: 70%; } .shot.w80 { width: 80%; } .shot.w90 { width: 90%; }
.hot { position: absolute; border-radius: 9px; border: 3px solid var(--green); box-shadow: 0 0 0 3px rgba(6, 13, 8, .55), 0 0 18px var(--glow); opacity: 0; transform: scale(.92); pointer-events: none; }
.kstep.active .hot { animation: hotIn .45s forwards, hotPulse 1.8s ease-in-out .6s infinite; }
.kstep.active .hot:nth-of-type(2) { animation-delay: .35s, .95s; } .kstep.active .hot:nth-of-type(3) { animation-delay: .7s, 1.3s; }
.kstep.active .hot:nth-of-type(4) { animation-delay: 1.05s, 1.65s; }
@keyframes hotIn { to { opacity: 1; transform: none; } }
@keyframes hotPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(6, 13, 8, .55), 0 0 0 0 rgba(74, 222, 128, .55); } 50% { box-shadow: 0 0 0 3px rgba(6, 13, 8, .55), 0 0 0 10px rgba(74, 222, 128, 0); } }
.hot::before { /* harf rozeti */
  content: attr(data-k); position: absolute; top: -13px; left: -13px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #052e16; font: 900 13px var(--font-display); display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg); box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.hot.r::before { left: auto; right: -13px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 4px; justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); font-size: 14px; }
.legend i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #052e16; font: 900 12px var(--font-display); display: inline-flex; align-items: center; justify-content: center; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.card, .stage { min-width: 0; overflow-wrap: anywhere; }
.two .shot { margin-top: 10px; }

/* Örnek istek */
.example { margin: 14px 0; background: var(--bg2); border: 1px dashed var(--border-bright); border-radius: 12px; padding: 12px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--white); }
.example small { display: block; font: 800 11px var(--font-display); letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }

table.req { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
table.req th, table.req td { text-align: left; border: 1px solid var(--border); padding: 8px 12px; vertical-align: top; }
table.req th { background: var(--bg2); color: var(--white); }
table.req td:first-child { color: var(--white); font-weight: 600; width: 34%; }

/* SSS (akordeon) */
details { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; margin: 8px 0; }
summary { cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 700; color: var(--white); display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font: 900 18px var(--font-display); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 16px 14px; color: var(--text); }

/* Alt gezinme */
.step-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font: 800 15px var(--font-display); border-radius: 12px; padding: 12px 20px; border: 1px solid var(--border-bright); background: transparent; color: var(--white); transition: .2s; text-decoration: none; }
.btn:hover { background: var(--surface2); }
.btn.primary { background: var(--green); color: #052e16; border-color: var(--green); }
.btn.primary:hover { background: #6ee79a; box-shadow: 0 0 0 6px var(--glow); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.step-count { color: var(--muted); font-size: 13.5px; margin: 0 auto; }
.keys { color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; }

/* Bitiş */
.finish { text-align: center; padding: 10px 0 6px; }
.finish .big { width: 86px; height: 86px; margin: 4px auto 10px; border-radius: 50%; background: rgba(74, 222, 128, .14); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 42px; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }

/* Büyütme (lightbox) */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .86); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.show { display: flex; animation: fade .2s; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Mobil adım seçici */
.mobile-steps { display: none; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 40px; gap: 14px; }
  .brand { font-size: 18px; }
  .os-tabs a { padding: 6px 10px; }
  .pdf-btn { padding: 9px 12px; }
  .step-nav { flex-wrap: wrap; }
  .step-nav .btn.primary { flex: 1; justify-content: center; }
  .nav { display: none; }
  .mobile-steps { display: block; width: 100%; background: var(--surface); color: var(--white); border: 1px solid var(--border-bright); border-radius: 12px; padding: 10px 12px; font: 600 14px var(--font-body); }
  .topbar { padding: 0 14px; gap: 10px; }
  .os-tabs a span { display: none; }
  .pdf-btn span { display: none; }
  .card { padding: 20px 16px 18px; }
  .kstep h1 { font-size: 24px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .shot.w40, .shot.w50, .shot.w60, .shot.w70, .shot.w80, .shot.w90 { width: 100%; }
  .os-hint { margin: 10px 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hot, .checks li { opacity: 1; transform: none; }
}
