/* ============================================================
   spooorts.club Documentation – WebHelp Stylesheet
   Color: #30498c  |  Font: Poppins
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #30498c;
  --blue-dark:   #243669;
  --blue-light:  #e8edf7;
  --blue-mid:    #5571a8;
  --accent:      #f0a500;
  --text:        #1a1a2e;
  --text-muted:  #6b7280;
  --border:      #dde3ef;
  --bg:          #f5f7fc;
  --sidebar-w:   300px;
  --topbar-h:    56px;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(48,73,140,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

/* ── Layout Shell ─────────────────────────────────────────── */
.docs-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Topbar ───────────────────────────────────────────────── */
.docs-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--blue);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
}

.docs-topbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.3px;
  text-decoration: none;
}

.docs-topbar .logo span { color: rgba(255,255,255,.65); font-weight: 400; }

.docs-topbar .lang-switch {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.docs-topbar .lang-switch a {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.25);
  transition: all .2s;
  text-decoration: none;
}

.docs-topbar .lang-switch a:hover,
.docs-topbar .lang-switch a.active {
  background: rgba(255,255,255,.2);
  color: white;
  border-color: rgba(255,255,255,.5);
}

.docs-topbar .menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: white;
}

.docs-topbar .menu-toggle svg { display: block; }

/* ── Sidebar ──────────────────────────────────────────────── */
.docs-sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  background: white;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
}

.docs-sidebar::-webkit-scrollbar { width: 5px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* sidebar header */
.sidebar-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.sidebar-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* nav tree */
.docs-nav {
  padding: 12px 0 24px;
  flex: 1;
}

.docs-nav ul { list-style: none; }

.docs-nav .nav-section {
  padding: 12px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--blue);
  opacity: .7;
}

.docs-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: all .15s;
  text-decoration: none;
}

.docs-nav li a:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-left-color: var(--blue-mid);
}

.docs-nav li a.active {
  background: var(--blue-light);
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: 600;
}

.docs-nav li a .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .65;
}

.docs-nav li a.active .nav-icon { opacity: 1; }

/* sidebar footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-footer a { color: var(--text-muted); }
.sidebar-footer a:hover { color: var(--blue); }

/* ── Main Content Area ────────────────────────────────────── */
.docs-main {
  margin-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  flex: 1;
  min-width: 0;
}

/* breadcrumb */
.docs-breadcrumb {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px 48px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-breadcrumb a { color: var(--text-muted); }
.docs-breadcrumb a:hover { color: var(--blue); }
.docs-breadcrumb .sep { opacity: .4; }
.docs-breadcrumb .current { color: var(--blue); font-weight: 500; }

/* article */
.docs-article {
  max-width: 820px;
  padding: 48px 48px 80px;
}

.docs-article h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
  line-height: 1.25;
}

.docs-article .shortdesc {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.6;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

/* sections */
.docs-article section {
  margin-bottom: 48px;
}

.docs-article h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-article h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.docs-article p { margin-bottom: 12px; }

/* lists */
.docs-article ul, .docs-article ol {
  padding-left: 0;
  margin: 10px 0 16px;
  list-style: none;
}

.docs-article ul li, .docs-article ol li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 14.5px;
}

.docs-article ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 13px;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  opacity: .5;
}

.docs-article ol { counter-reset: ol-counter; }
.docs-article ol li { counter-increment: ol-counter; }
.docs-article ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-article li b { color: var(--blue-dark); }

/* code */
.docs-article code {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Tables ───────────────────────────────────────────────── */
.docs-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.docs-table thead tr {
  background: var(--blue);
  color: white;
}

.docs-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
}

.docs-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.docs-table thead th:last-child  { border-radius: 0 var(--radius) 0 0; }

.docs-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.docs-table tbody tr:hover { background: var(--blue-light); }
.docs-table tbody tr:last-child { border-bottom: none; }

.docs-table tbody td {
  padding: 11px 16px;
  vertical-align: top;
}

.docs-table tbody td:first-child { font-weight: 600; }

/* ── Notes & Tips ─────────────────────────────────────────── */
.docs-note {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

.docs-note .note-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.docs-note.note-tip    { background: #eefaf3; border-left: 4px solid #22c55e; }
.docs-note.note-note   { background: #eff6ff; border-left: 4px solid var(--blue); }
.docs-note.note-important { background: #fff7ed; border-left: 4px solid var(--accent); }
.docs-note.note-warning   { background: #fef2f2; border-left: 4px solid #ef4444; }

.docs-note.note-tip .note-label    { color: #16a34a; font-weight: 700; }
.docs-note.note-note .note-label   { color: var(--blue); font-weight: 700; }
.docs-note.note-important .note-label { color: #b45309; font-weight: 700; }
.docs-note.note-warning .note-label   { color: #dc2626; font-weight: 700; }

/* ── Prev / Next navigation ───────────────────────────────── */
.docs-pager {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.docs-pager a {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .2s;
}

.docs-pager a:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.docs-pager .pager-dir {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.docs-pager .pager-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.docs-pager a.pager-next { text-align: right; }

/* ── Welcome / Index page ─────────────────────────────────── */
.docs-welcome { padding: 48px 48px 80px; max-width: 900px; }

.docs-welcome h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}

.docs-welcome .lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.docs-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  text-decoration: none;
}

.docs-card .card-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.docs-card .card-icon svg { color: var(--blue); }

.docs-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

.docs-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Lang selector page ───────────────────────────────────── */
.lang-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  gap: 32px;
  padding: 40px;
}

.lang-page .brand {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
}

.lang-page .brand span { color: var(--text-muted); font-weight: 400; }

.lang-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.lang-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 36px 48px;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
  min-width: 200px;
}

.lang-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(48,73,140,.15);
  transform: translateY(-4px);
}

.lang-card .flag { font-size: 48px; margin-bottom: 12px; }

.lang-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.lang-card p { font-size: 13px; color: var(--text-muted); }

/* ── Responsive / Mobile ──────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 280px; }

  .docs-topbar .menu-toggle { display: flex; align-items: center; }

  .docs-sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }

  .docs-sidebar.open { transform: translateX(0); }

  .docs-main { margin-left: 0; }

  .docs-article, .docs-welcome { padding: 24px 20px 60px; }
  .docs-breadcrumb { padding: 10px 20px; }

  .docs-pager { flex-direction: column; }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 90;
  }

  .sidebar-overlay.show { display: block; }
}

@media (max-width: 480px) {
  .docs-article h1 { font-size: 22px; }
  .docs-card-grid { grid-template-columns: 1fr; }
}
