/* ============================================================
   TOBB ETÜ Sport — loyiha taqdimoti
   Umumiy uslub fayli (barcha sahifalar shu faylni ulaydi)
   ============================================================ */

:root {
  --navy-950: #0a1128;
  --navy-900: #101a3a;
  --navy-800: #16244d;
  --navy-700: #1f3163;
  --royal-600: #3b5bdb;
  --royal-500: #5472e4;
  --crimson-600: #d6336c;
  --crimson-500: #e64980;
  --amber-400: #ffc94a;
  --amber-500: #f4a800;
  --emerald-500: #2dbb7a;
  --ink: #101a2e;
  --muted: #6b7590;
  --line: rgba(16, 26, 46, 0.09);
  --bg: #f6f7fb;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(16, 26, 62, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 26, 62, 0.28);
  --maxw: 980px;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-950);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: #2b334a; }
a { color: var(--royal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Shell layout ---------- */
.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  color: #fff;
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  text-decoration: none;
}
.sidebar-brand .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--crimson-600), var(--royal-600));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px; color: #fff; flex-shrink: 0;
}
.sidebar-brand .txt { line-height: 1.15; }
.sidebar-brand .txt b { display: block; font-size: 15px; color: #fff; }
.sidebar-brand .txt span { font-size: 11px; color: #9aa6c9; letter-spacing: 0.06em; text-transform: uppercase; }

.sidebar-sub {
  font-size: 12.5px;
  color: #8b96bd;
  margin: 14px 2px 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.nav-group-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6f7bab;
  font-weight: 700;
  margin: 18px 8px 8px;
}
.nav-group-label:first-of-type { margin-top: 0; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #c3ccec;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-list a .num {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 800; flex-shrink: 0;
}
.nav-list a:hover { background: rgba(255,255,255,0.07); color: #fff; text-decoration: none; }
.nav-list a.active {
  background: linear-gradient(90deg, rgba(214,51,108,0.35), rgba(59,91,219,0.35));
  color: #fff;
}
.nav-list a.active .num { background: var(--amber-400); color: var(--navy-950); }

.sidebar-live {
  margin-top: 22px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.sidebar-live p { font-size: 12px; color: #aab4d6; margin: 0 0 8px; }
.sidebar-live a.btn-live {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(90deg, var(--crimson-600), var(--royal-600));
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 12px; border-radius: 10px; text-decoration: none;
}

/* ---------- Main content ---------- */
main {
  flex: 1;
  min-width: 0;
  padding: 56px 48px 90px;
}
.page-wrap { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--crimson-600);
  margin-bottom: 14px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--crimson-600); }

h1.page-title { font-size: 2.5rem; margin-bottom: 0.3em; }
.page-lede { font-size: 1.15rem; color: var(--muted); max-width: 700px; margin-bottom: 2.4em; }

section.block { margin-bottom: 3em; }
section.block h2 { font-size: 1.55rem; margin-top: 0; }
section.block h2 .idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; margin-right: 10px;
  background: var(--navy-950); color: #fff; font-size: 15px; vertical-align: middle;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 26px 28px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* analogy callout */
.analogy {
  display: flex; gap: 14px;
  background: linear-gradient(135deg, rgba(59,91,219,0.07), rgba(214,51,108,0.06));
  border: 1px dashed rgba(59,91,219,0.35);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 18px 0;
}
.analogy .emoji { font-size: 26px; line-height: 1; flex-shrink: 0; }
.analogy b { color: var(--navy-950); }
.analogy p:last-child { margin-bottom: 0; }

.callout-warn {
  background: rgba(244, 168, 0, 0.09);
  border: 1px solid rgba(244, 168, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.95rem;
}
.callout-warn b { color: #7a5300; }

.callout-fix {
  background: rgba(45, 187, 122, 0.09);
  border: 1px solid rgba(45, 187, 122, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.95rem;
}
.callout-fix b { color: #146c46; }

/* tech pill badges */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--navy-950); color: #fff;
  font-size: 12.5px; font-weight: 700;
}
.pill.alt { background: rgba(59,91,219,0.1); color: var(--royal-600); }
.pill.crimson { background: rgba(214,51,108,0.1); color: var(--crimson-600); }
.pill.amber { background: rgba(244,168,0,0.14); color: #8a5c00; }

/* step list */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 22px 46px;
  border-left: 2px solid var(--line);
  margin-left: 17px;
}
.steps li:last-child { border-left: 2px solid transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: -18px; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson-600), var(--royal-600));
  color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps li b { display: block; color: var(--navy-950); margin-bottom: 3px; font-size: 1.02rem; }
.steps li span.small { font-size: 0.9rem; color: var(--muted); }

/* diagram boxes */
.flow {
  display: flex; align-items: stretch; gap: 0; flex-wrap: wrap;
  margin: 22px 0;
}
.flow .fbox {
  flex: 1; min-width: 150px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; text-align: center; box-shadow: var(--shadow);
}
.flow .fbox .ic { font-size: 26px; margin-bottom: 8px; }
.flow .fbox b { display: block; font-size: 0.95rem; }
.flow .fbox span { font-size: 0.78rem; color: var(--muted); }
.flow .arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px; font-size: 22px; color: var(--muted); flex-shrink: 0;
}
@media (max-width: 720px) {
  .flow { flex-direction: column; }
  .flow .arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* feature link cards */
.feat-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.feat-card .feat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.feat-card h3 { font-size: 1.05rem; margin: 0; }
.feat-card .live-tag {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--emerald-500); display: inline-flex; align-items: center; gap: 4px;
}
.feat-card .live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-500); }
.feat-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* code-ish tag */
code {
  background: rgba(16,26,46,0.06); padding: 2px 7px; border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.86em; color: var(--navy-950);
}

table.def-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.94rem; }
table.def-table th, table.def-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.def-table th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* progress footer nav */
.page-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line);
}
.page-nav a {
  flex: 1; max-width: 320px;
  display: block; padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
}
.page-nav a:hover { border-color: var(--royal-500); text-decoration: none; }
.page-nav a.next { text-align: right; margin-left: auto; }
.page-nav .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.page-nav .ttl { font-size: 0.98rem; font-weight: 800; color: var(--navy-950); margin-top: 2px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.stat-box {
  flex: 1; min-width: 130px; text-align: center;
  background: var(--navy-950); color: #fff; border-radius: var(--radius-sm); padding: 18px 10px;
}
.stat-box b { display: block; font-size: 1.6rem; font-weight: 900; background: linear-gradient(90deg, var(--amber-400), var(--crimson-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box span { font-size: 0.78rem; color: #b7c0e2; }

.hero-cover {
  border-radius: var(--radius);
  background: radial-gradient(circle at 20% 20%, rgba(214,51,108,0.5), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(59,91,219,0.5), transparent 55%),
              var(--navy-950);
  color: #fff; padding: 50px 44px; margin-bottom: 44px; position: relative; overflow: hidden;
}
.hero-cover h1 { color: #fff; font-size: 2.7rem; }
.hero-cover p { color: #c7cfef; font-size: 1.12rem; max-width: 620px; }
.hero-cover .pill { background: rgba(255,255,255,0.12); }

.toc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 10px; }
@media (max-width: 720px) { .toc-grid { grid-template-columns: 1fr; } }
.toc-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.toc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.toc-card .n {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--crimson-600), var(--royal-600));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.toc-card h3 { font-size: 1rem; margin: 0 0 3px; }
.toc-card p { font-size: 0.86rem; color: var(--muted); margin: 0; }

.mobile-topbar { display: none; }
@media (max-width: 980px) {
  .shell { flex-direction: column; }
  .sidebar { position: relative; height: auto; width: 100%; padding: 18px 20px; }
  main { padding: 34px 22px 70px; }
  h1.page-title { font-size: 2rem; }
}

::selection { background: rgba(214,51,108,0.25); }
