/* =============================================================================
   Cyfendo Developer Guide & CLI Reference Styling
   ============================================================================= */

:root {
  --docs-bg: #030712;
  --docs-surface: rgba(15, 23, 42, 0.75);
  --docs-surface-hover: rgba(30, 41, 59, 0.85);
  --docs-border: rgba(255, 255, 255, 0.08);
  --docs-border-accent: rgba(0, 229, 255, 0.35);
  --accent-cyan: #00E5FF;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #EF4444;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

.docs-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 80px 24px;
}

.docs-hero {
  text-align: center;
  padding: 48px 20px 40px 20px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--docs-border);
  margin-bottom: 40px;
  border-radius: 16px;
}

.docs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 9999px;
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.docs-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.docs-title-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.docs-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Two-Column Docs Layout (Sidebar Nav + Main Content)
   ----------------------------------------------------------------------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 90px;
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  padding: 20px 16px;
  backdrop-filter: blur(16px);
}

.sidebar-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px 4px 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  font-weight: 600;
  border-left: 3px solid var(--accent-cyan);
}

/* -----------------------------------------------------------------------------
   Main Docs Content Styling
   ----------------------------------------------------------------------------- */
.docs-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.docs-section {
  background: var(--docs-surface);
  border: 1px solid var(--docs-border);
  border-radius: 16px;
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  scroll-margin-top: 100px;
}

.section-header-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--docs-border);
}

.section-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Step list */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 20px 0;
}

.step-card {
  display: flex;
  gap: 18px;
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  padding: 20px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0099FF 100%);
  color: #030712;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.step-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Callouts / Alerts */
.docs-callout {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-info {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #E2F8FF;
}

.callout-info svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #DCFCE7;
}

.callout-tip svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* -----------------------------------------------------------------------------
   Ubuntu Terminal Theme & Code Syntax Highlighting
   ----------------------------------------------------------------------------- */
.code-block-wrap {
  background: #181424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  margin: 18px 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: #241D30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terminal-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dot.dot-red { background: #E95420; }
.terminal-dot.dot-yellow { background: #F57900; }
.terminal-dot.dot-green { background: #73D216; }

.code-lang-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #CBD5E1;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.btn-code-copy {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #CBD5E1;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-code-copy:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
}

.code-block-pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Ubuntu Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #F8FAFC;
  background: #181424;
}

/* Ubuntu Syntax Highlighting Tokens */
.sh-comment {
  color: #94A3B8; /* High-contrast readable comment */
  font-style: italic;
  font-weight: 500;
}

.sh-prompt {
  color: #8AE234; /* Ubuntu green prompt */
  font-weight: 700;
  user-select: none;
  margin-right: 4px;
}

.sh-cmd {
  color: #8AE234; /* Ubuntu Bright Green */
  font-weight: 700;
}

.sh-subcmd {
  color: #FFFFFF; /* Crisp White */
  font-weight: 600;
}

.sh-flag {
  color: #729FCF; /* Ubuntu Blue / Cyan */
  font-weight: 600;
}

.sh-str {
  color: #FCE94F; /* Ubuntu Warm Yellow */
  font-weight: 500;
}

.sh-path {
  color: #E2E8F0;
  font-weight: 500;
}

.sh-env {
  color: #AD7FA8; /* Ubuntu Purple / Lavender */
  font-weight: 700;
}

.sh-op {
  color: #FF79C6; /* Magenta Pipe / Operator */
  font-weight: 700;
}

/* YAML Syntax */
.yml-key {
  color: #729FCF;
  font-weight: 600;
}

.yml-val {
  color: #FCE94F;
}

.yml-str {
  color: #8AE234;
}

/* Cheat Sheet Table */
.cheat-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  margin: 20px 0;
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.cheat-table th {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.9);
  color: #94A3B8;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--docs-border);
}

.cheat-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.cheat-table tr:last-child td {
  border-bottom: none;
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 3px 8px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  white-space: nowrap;
}

/* -----------------------------------------------------------------------------
   Responsive Breakpoints
   ----------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-sidebar {
    position: static;
    margin-bottom: 16px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .docs-wrapper {
    padding: 16px 12px 60px 12px;
  }

  .docs-section {
    padding: 24px 16px;
  }

  .docs-title {
    font-size: 1.85rem;
  }
}
