* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0c1a2a 0%, #020b16 100%);
  color: #e7f6ff;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Aurora BG + Snow */
#aurora-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(50,200,255,0.15), rgba(0,50,100,0.4), rgba(20,120,200,0.2));
  background-size: 400% 400%;
  animation: aurora 20s infinite alternate;
  z-index: -3;
}
@keyframes aurora {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
#snowCanvas {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255,255,255,0.15);
  padding: 2rem 1.5rem;
  position: fixed;
  height: 100%;
  overflow-y: auto;
}
.sidebar h2 {
  color: #b0e9ff;
  margin-bottom: 1.5rem;
}
.sidebar nav a {
  display: block;
  padding: 0.7rem 1rem;
  margin-bottom: 0.3rem;
  border-radius: 0.5rem;
  color: #dff5ff;
  text-decoration: none;
  transition: all 0.2s;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Main Content */
main {
  margin-left: 260px;
  padding: 2rem 3rem;
  flex: 1;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}
header h1 {
  font-size: 2rem;
  color: #bdefff;
}
header p {
  font-size: 1rem;
  color: #aad3e9;
}

/* Sections */
section {
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(80,180,255,0.08);
}
section h2 {
  margin-bottom: 1rem;
  color: #b8f2ff;
}
pre {
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  color: #e8faff;
}

/* Code Tabs */
.code-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.code-tabs button {
  flex: 1;
  border: none;
  background: rgba(255,255,255,0.1);
  padding: 0.6rem;
  border-radius: 0.4rem;
  color: #aee7ff;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}
.code-tabs button.active {
  background: linear-gradient(90deg, #5ef, #8ff);
  color: #013;
}
.code-block.hidden {
  display: none;
}

/* Endpoint Styling */
.endpoint {
  margin: 1rem 0;
}
.endpoint h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.method {
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  font-weight: 600;
}
.method.get { background: rgba(0,255,200,0.3); color: #001; }
.method.post { background: rgba(0,150,255,0.3); color: #001; }
.method.delete { background: rgba(255,0,120,0.3); color: #fff; }

/* Highlight box */
.highlight-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

/* FAQ */
details {
  margin-bottom: 1rem;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: #bdefff;
}
details p {
  margin-top: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #bdefff;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 850px) {
  .sidebar {
    display: none;
  }
  main {
    margin-left: 0;
    padding: 1.5rem;
  }
}
