/* FILE: bot/styles.css */
/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0e1a;
  --bg-light: #f5f6fa;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted-dark: #6b7280;
  --text-muted-light: #9ca3af;
  --primary: #5865F2;
  --primary-hover: #4752c4;
  --card-bg-dark: rgba(255, 255, 255, 0.05);
  --card-bg-light: rgba(0, 0, 0, 0.03);
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
  --shadow-light: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  body {
    background: var(--bg-dark);
    color: var(--text-light);
  }

  .card,
  .feature-card,
  .doc-toc {
    background: var(--card-bg-dark);
    border-color: var(--border-dark);
  }

  .text-muted {
    color: var(--text-muted-light);
  }
}

@media (prefers-color-scheme: light) {
  body {
    background: var(--bg-light);
    color: var(--text-dark);
  }

  .card,
  .feature-card,
  .doc-toc {
    background: var(--card-bg-light);
    border-color: var(--border-light);
  }

  .text-muted {
    color: var(--text-muted-dark);
  }

  .logo {
    color: var(--text-dark);
  }

  .nav a {
    color: var(--text-dark);
  }

  .hero h1,
  .hero-subtitle {
    color: var(--text-dark);
  }

  footer {
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border-light);
  }
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 26, 0.8);
  border-bottom: 1px solid var(--border-dark);
}

@media (prefers-color-scheme: light) {
  #header {
    background: rgba(245, 246, 250, 0.9);
    border-bottom: 1px solid var(--border-light);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 20px;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--primary);
}

.lang-toggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: 2px solid var(--border-dark);
  color: var(--text-light);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }

  .nav.active {
    display: flex;
  }
}

/* ===== Hero ===== */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), #7289da);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-muted-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ===== Features ===== */
.features {
  padding: 4rem 0;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  background: var(--card-bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(88, 101, 242, 0.2);
  border-color: var(--primary);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: transform 0.4s;
  filter: drop-shadow(0 4px 8px rgba(88, 101, 242, 0.3));
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotateY(10deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.feature-card p {
  position: relative;
  z-index: 1;
  line-height: 1.7;
  color: var(--text-muted-light);
}

.feature-card p {
  color: var(--text-muted-light);
}

/* ===== Footer ===== */
#footer {
  padding: 2rem 0;
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-dark);
}

.footer-content {
  text-align: center;
}

.footer-content p {
  margin: 0.5rem 0;
  color: var(--text-muted-light);
  font-size: 0.9rem;
}

.footer-owner {
  font-size: 0.95rem;
}

.footer-owner strong {
  color: var(--primary);
}

.footer-disclaimer {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== Document Pages ===== */
.doc-page {
  background: var(--bg-dark);
}

.doc-main {
  padding: 2rem 0;
  min-height: 60vh;
}

.doc-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 100px;
  padding: 1.5rem;
  background: var(--card-bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  box-shadow: 0 2px 10px var(--shadow-dark);
}

.doc-toc::-webkit-scrollbar {
  width: 6px;
}

.doc-toc::-webkit-scrollbar-track {
  background: transparent;
}

.doc-toc::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 3px;
}

.doc-toc::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.doc-toc h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-dark);
}

.doc-toc ul {
  list-style: none;
}

.doc-toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.doc-toc ol li {
  counter-increment: toc-counter;
  position: relative;
}

.doc-toc ol li::before {
  content: counter(toc-counter) ".";
  color: var(--primary);
  font-weight: 600;
  margin-right: 0.5rem;
}

.doc-toc li {
  margin: 0.75rem 0;
}

.doc-toc a {
  text-decoration: none;
  color: var(--text-muted-light);
  font-size: 0.95rem;
  transition: all 0.3s;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  position: relative;
}

.doc-toc a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: height 0.3s;
}

.doc-toc a:hover {
  color: var(--primary);
  background: var(--card-bg-dark);
  padding-left: 1rem;
}

.doc-toc a:hover::before {
  height: 100%;
}

.doc-toc li.toc-h3 {
  padding-left: 1rem;
  font-size: 0.85rem;
}

.doc-content {
  max-width: 850px;
}

.doc-content h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.doc-meta {
  color: var(--text-muted-light);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-dark);
  font-weight: 500;
}

.effective-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--card-bg-dark);
  border-radius: 6px;
  border: 1px solid var(--border-dark);
  font-size: 0.9rem;
  color: var(--text-muted-light);
  margin-bottom: 2rem;
}

.doc-content h2 {
  font-size: 1.9rem;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  position: relative;
  scroll-margin-top: 100px;
}

.doc-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 60px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.doc-content h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-light);
}

.doc-content p {
  margin-bottom: 1.25rem;
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--text-light);
  opacity: 0.95;
}

.doc-content ul,
.doc-content ol {
  margin: 1.5rem 0 1.5rem 2.5rem;
  line-height: 2;
}

.doc-content li {
  margin: 0.75rem 0;
  padding-left: 0.5rem;
  font-size: 1.02rem;
}

.doc-content ul li {
  position: relative;
}

.doc-content ul li::marker {
  color: var(--primary);
}

.doc-content ol li::marker {
  color: var(--primary);
  font-weight: 600;
}

.doc-content strong {
  color: var(--primary);
  font-weight: 600;
}

.doc-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  transition: all 0.3s;
  font-weight: 500;
}

.doc-content a:hover {
  border-bottom-color: transparent;
  background: var(--card-bg-dark);
  padding: 0.1rem 0.3rem;
  margin: -0.1rem -0.3rem;
  border-radius: 3px;
}

.doc-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  overflow: hidden;
}

.doc-content th,
.doc-content td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-dark);
}

.doc-content th {
  background: var(--card-bg-dark);
  font-weight: 600;
  color: var(--primary);
  border-right: 1px solid var(--border-dark);
}

.doc-content td {
  border-right: 1px solid var(--border-dark);
}

.doc-content th:last-child,
.doc-content td:last-child {
  border-right: none;
}

.doc-content tr:last-child td {
  border-bottom: none;
}

.contact-box {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--card-bg-dark), rgba(88, 101, 242, 0.05));
  border: 2px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.15);
}

.contact-box p {
  margin-bottom: 0.75rem;
}

.contact-box strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--primary);
}

@media (max-width: 968px) {
  .doc-container {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: relative;
    top: 0;
    max-height: none;
  }
}

@media (max-width: 600px) {
  .doc-content h1 {
    font-size: 2rem;
  }

  .doc-content h2 {
    font-size: 1.5rem;
  }

  .doc-content h3 {
    font-size: 1.2rem;
  }
}

/* ===== Utility ===== */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted-light);
}

#current-year::before {
  content: "2026";
}