/* EZTalent Docs - Dark Theme Styles */
:root {
  --bg: #0d0d14;
  --bg-card: #13131f;
  --bg-sidebar: #0a0a10;
  --text: #f5f5f7;
  --text-muted: #9898a6;
  --primary: #8b5cf6;
  --primary-hover: #a78bfa;
  --border: #1f1f2e;
  --border-hover: #2e2e42;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 20, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-btn {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
}

.nav-btn:hover {
  background: var(--primary-hover) !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  padding: 12px 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.hero {
  text-align: center;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(to right, #a78bfa, #8b5cf6, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }
}

/* Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  color: var(--text);
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

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

/* Sections */
section {
  margin-bottom: 60px;
}

section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

section h3 {
  font-size: 20px;
  margin: 32px 0 16px;
}

section p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

section ul, section ol {
  margin: 16px 0;
  padding-left: 24px;
}

section li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

section li strong {
  color: var(--text);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.feature p {
  font-size: 14px;
  margin: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}

th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text);
}

td {
  color: var(--text-muted);
}

tr:nth-child(even) td {
  background: rgba(19, 19, 31, 0.5);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Sidebar Layout (for sub-pages) */
.docs-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 64px;
}

.sidebar {
  width: 280px;
  min-width: 280px;
  height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  overflow-y: auto;
  padding: 24px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sidebar a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 14px;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: all 0.2s;
}

.sidebar a:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text);
}

.sidebar a.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary);
}

.docs-content {
  flex: 1;
  padding: 40px 60px;
  max-width: 900px;
}

@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }

  .docs-content {
    padding: 24px;
    max-width: 100%;
  }
}

/* Article Styles */
.docs-content h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.docs-content h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.docs-content h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.docs-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.docs-content ul, .docs-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.docs-content li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.docs-content strong {
  color: var(--text);
}

.docs-content code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Monaco', 'Menlo', monospace;
}

.docs-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin: 20px 0;
}

.docs-content pre code {
  background: none;
  padding: 0;
}

/* Callouts */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  border-left: 4px solid;
}

.callout.info {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

.callout.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.callout p {
  margin: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

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

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

/* Page Navigation */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.page-nav a {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.2s;
  max-width: 45%;
}

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

.page-nav .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.page-nav .title {
  font-weight: 500;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-sidebar);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Selection */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text);
}
