/* ClaudeWar docs — layout on top of cw-marketing.css */

.cw-docs-page {
  padding-bottom: 48px;
}

.cw-docs-topbar {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(8, 10, 12, 0.97);
  border-bottom: 1px solid rgba(255, 69, 0, 0.25);
  backdrop-filter: blur(8px);
}

.cw-docs-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-docs-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 4px;
  color: #FF4500;
  line-height: 1;
}

.cw-docs-brand-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 10px;
}

.cw-docs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cw-docs-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.cw-docs-sidebar {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  background: #111;
  border: 1px solid #1d1d1d;
  border-radius: 6px;
  border-left: 3px solid #FF4500;
}

.cw-docs-sidebar-hdr {
  padding: 16px 14px 10px;
  border-bottom: 1px solid #1d1d1d;
}

.cw-docs-sidebar-hdr a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.cw-docs-sidebar-hdr a:hover {
  color: #FF4500;
}

.cw-docs-sidebar-nav {
  padding: 8px 0 12px;
}

.cw-docs-sidebar-nav a {
  display: block;
  padding: 8px 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
  border-left: 2px solid transparent;
}

.cw-docs-sidebar-nav a:hover,
.cw-docs-sidebar-nav a.active {
  color: #FF4500;
  border-left-color: #FF4500;
  background: rgba(255, 69, 0, 0.05);
}

.cw-docs-main {
  min-width: 0;
  padding: 28px 0 64px;
}

.cw-docs-hero {
  grid-column: 1 / -1;
  padding: 36px 0 28px;
  border-bottom: 1px solid rgba(255, 69, 0, 0.2);
  margin-bottom: 8px;
}

.cw-docs-hero-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: #FF4500;
  margin-bottom: 8px;
}

.cw-docs-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.05;
}

.cw-docs-hero-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

.cw-docs-page-meta {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.cw-docs-definition-list {
  display: grid;
  grid-template-columns: minmax(110px, 0.3fr) minmax(0, 1fr);
  gap: 8px 18px;
  margin: 0;
}

.cw-docs-definition-list dt {
  color: #ff7a3d;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
}

.cw-docs-definition-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.cw-docs-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}

.cw-docs-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.cw-docs-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00FF41;
  box-shadow: 0 0 8px #00FF41;
}

.cw-docs-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5em;
  color: #00FF41;
  letter-spacing: 2px;
}

.cw-docs-stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
}

.cw-docs-section {
  margin-bottom: 32px;
  background: #111;
  border: 1px solid #1d1d1d;
  border-radius: 6px;
  overflow: hidden;
}

.cw-docs-section-hdr {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #1d1d1d;
  border-left: 3px solid #FF4500;
}

.cw-docs-section-body {
  padding: 18px 20px 20px;
}

.cw-docs-section-body p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin: 0 0 14px;
  font-size: 14px;
}

.cw-docs-section-body p:last-child {
  margin-bottom: 0;
}

.cw-docs-search-form label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 600;
}

.cw-docs-search-row {
  display: flex;
  gap: 10px;
}

.cw-docs-search-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: #090a0c;
  color: #fff;
  font: 16px 'Inter', sans-serif;
}

.cw-docs-search-row input:focus {
  border-color: #ff7a3d;
  outline: 2px solid rgba(255, 122, 61, 0.22);
  outline-offset: 1px;
}

.cw-docs-search-status {
  margin-top: 16px !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

.cw-docs-search-result {
  padding: 16px 0;
  border-top: 1px solid #242424;
}

.cw-docs-search-result h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.cw-docs-search-result h3 a {
  color: #ff7a3d;
}

.cw-docs-search-result p {
  margin: 0;
}

.cw-docs-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15em;
  letter-spacing: 0.08em;
  color: #FF4500;
  margin: 22px 0 10px;
}

.cw-docs-subtitle:first-child {
  margin-top: 0;
}

.cw-docs-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.cw-docs-list li {
  padding: 8px 12px;
  border-left: 2px solid #222;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

.cw-docs-list li:hover {
  border-left-color: rgba(255, 69, 0, 0.5);
}

.cw-docs-list ol,
.cw-docs-section-body ol {
  margin: 0 0 14px 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.75;
}

.cw-docs-table-wrap {
  overflow-x: auto;
  margin: 12px 0 4px;
  -webkit-overflow-scrolling: touch;
}

.cw-docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 520px;
}

.cw-docs-table th {
  text-align: left;
  color: #FF4500;
  padding: 10px 12px;
  border-bottom: 2px solid #FF4500;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  white-space: nowrap;
}

.cw-docs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #1a1a1a;
  color: rgba(255, 255, 255, 0.78);
  vertical-align: top;
}

.cw-docs-table tr:hover td {
  background: rgba(255, 69, 0, 0.03);
}

.cw-docs-table .cat-row td {
  background: #0d0f11;
  color: #FF4500;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 8px 12px;
}

.cw-docs-table a {
  color: #FF4500;
}

.cw-docs-table a:hover {
  color: #ff6633;
}

.cw-docs-callout {
  background: rgba(255, 69, 0, 0.06);
  border: 1px solid rgba(255, 69, 0, 0.25);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin: 12px 0;
}

.cw-docs-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .cw-docs-tier-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cw-docs-tier-card {
  background: #0d0f11;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding: 12px 14px;
}

.cw-docs-tier-card .tier-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.cw-docs-tier-card .tier-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.tier-globe .tier-name { color: #00FF41; }
.tier-dev .tier-name { color: #FF4500; }
.tier-pro .tier-name { color: #8888ff; }
.tier-ent .tier-name { color: #aaa; }

.cw-docs-faq-q {
  color: #FF4500;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.cw-docs-faq-a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.cw-docs-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #1d1d1d;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
}

.cw-docs-footer a {
  color: #FF4500;
}

.cw-docs-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.cw-docs-hamburger {
  display: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background: #111;
  color: #FF4500;
  cursor: pointer;
}

.cw-docs-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 48;
}

@media (max-width: 900px) {
  .cw-docs-layout {
    grid-template-columns: 1fr;
  }

  .cw-docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 88vw);
    height: 100vh;
    max-height: none;
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    border-radius: 0;
  }

  .cw-docs-sidebar.open {
    transform: translateX(0);
  }

  .cw-docs-overlay.show {
    display: block;
  }

  .cw-docs-hamburger {
    display: inline-block;
  }

  .cw-docs-main {
    padding-top: 8px;
  }

  .cw-docs-search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cw-docs-definition-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cw-docs-definition-list dd {
    margin: 0 0 10px;
  }
}
