/**
 * Documentation Page Styles
 * © 2025 Ophraxx
 */

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #0a0a0f;
  color: #fff;
  overflow-x: hidden;
}

/* Animated Background */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(88, 101, 242, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(114, 137, 218, 0.15) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(88, 101, 242, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(88, 101, 242, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(88, 101, 242, 0.1);
  z-index: 1000;
}

.logo {
  font-size: 1.8em;
  font-weight: 800;
  background: linear-gradient(135deg, #5865f2, #7289da);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

.nav-btn {
  padding: 10px 25px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 0.95em;
}

.nav-btn:hover {
  background: rgba(88, 101, 242, 0.2);
  transform: translateY(-2px);
}

.nav-btn.primary {
  background: linear-gradient(135deg, #5865f2, #7289da);
  border: none;
}

.nav-btn.primary:hover {
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

/* Container */
.container {
  display: flex;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  width: 280px;
  position: fixed;
  height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(88, 101, 242, 0.15);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(88, 101, 242, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 101, 242, 0.5);
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-title {
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  color: #7289da;
  padding: 0 25px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.sidebar-link {
  display: block;
  padding: 10px 25px;
  color: #b9bbbe;
  text-decoration: none;
  font-size: 0.95em;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(88, 101, 242, 0.1);
  color: #fff;
  border-left-color: #5865f2;
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.2), transparent);
  color: #fff;
  border-left-color: #5865f2;
}

/* Content */
.content {
  margin-left: 280px;
  padding: 60px 80px;
  max-width: 1400px;
  width: 100%;
}

h1 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #7289da);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(88, 101, 242, 0.3);
}

.hero-subtitle {
  font-size: 1.2em;
  color: #8e9297;
  margin-bottom: 50px;
  line-height: 1.7;
}

h2 {
  font-size: 2.2em;
  font-weight: 700;
  color: #fff;
  margin-top: 60px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(88, 101, 242, 0.2);
}

h3 {
  font-size: 1.6em;
  color: #7289da;
  margin-top: 35px;
  margin-bottom: 18px;
}

p {
  margin-bottom: 18px;
  color: #b9bbbe;
  line-height: 1.8;
  font-size: 1.05em;
}

/* Info Boxes */
.info-box {
  background: rgba(88, 101, 242, 0.1);
  border-left: 4px solid #5865f2;
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 8px;
  transition: all 0.3s;
}

.info-box:hover {
  background: rgba(88, 101, 242, 0.15);
  box-shadow: 0 5px 20px rgba(88, 101, 242, 0.2);
}

.warning-box {
  background: rgba(250, 166, 26, 0.1);
  border-left: 4px solid #faa61a;
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 8px;
  transition: all 0.3s;
}

.warning-box:hover {
  background: rgba(250, 166, 26, 0.15);
  box-shadow: 0 5px 20px rgba(250, 166, 26, 0.2);
}

.info-box strong,
.warning-box strong {
  color: #fff;
  font-size: 1.1em;
}

.info-box ul,
.warning-box ul {
  margin-top: 15px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

th {
  background: linear-gradient(135deg, #5865f2, #7289da);
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #fff;
}

td {
  padding: 15px;
  border-bottom: 1px solid rgba(88, 101, 242, 0.1);
  color: #b9bbbe;
}

tr:hover {
  background: rgba(88, 101, 242, 0.05);
}

tr:last-child td {
  border-bottom: none;
}

code {
  background: rgba(88, 101, 242, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  color: #7289da;
  font-size: 0.9em;
}

ul,
ol {
  margin-left: 30px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 10px;
  color: #b9bbbe;
  line-height: 1.7;
}

a {
  color: #5865f2;
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: #7289da;
}

/* Footer */
.footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 2px solid rgba(88, 101, 242, 0.2);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #8e9297;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer p {
  color: #8e9297;
  font-size: 0.95em;
}

/* Scroll Progress Bar */
.progress-bar {
  position: fixed;
  top: 80px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #5865f2, #7289da);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 15px 25px;
  }

  .logo {
    font-size: 1.4em;
  }

  .nav-buttons {
    gap: 8px;
  }

  .nav-btn {
    padding: 8px 15px;
    font-size: 0.85em;
  }

  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(88, 101, 242, 0.2);
  }

  .content {
    margin-left: 0;
    padding: 40px 25px;
  }

  .container {
    flex-direction: column;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.6em;
  }

  h3 {
    font-size: 1.3em;
  }
}
