/* ============================================================
   AI Scenario — Documentation Hub Stylesheet
   Cohesive, premium glassmorphism dark-theme styling
   ============================================================ */

:root {
  --bg-base: #0b0b0b;
  --bg-panel: #121212;
  --bg-card: #161616;
  --bg-hover: #222222;
  --bg-code: #1a1a1a;
  
  --accent: #e8621a; /* Premium Orange */
  --accent-dim: rgba(232, 98, 26, 0.15);
  --accent-glow: rgba(232, 98, 26, 0.35);
  
  --accent2: #2ebdd9; /* Electric Cyan */
  --accent2-dim: rgba(46, 189, 217, 0.15);
  
  --border: #262626;
  --border-glow: rgba(232, 98, 26, 0.25);
  
  --text-primary: #ffffff;
  --text-secondary: #c0c0c0;
  --text-dim: #7f7f7f;
  
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius: 8px;
  --radius-lg: 14px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ===================== LAYOUT ===================== */
.docs-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Navigation */
.docs-sidebar {
  width: 290px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  padding: 24px;
}

.docs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  text-decoration: none;
}

.docs-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.docs-logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.docs-logo-text span {
  color: var(--accent);
}

.sidebar-nav-group {
  margin-bottom: 24px;
}

.sidebar-nav-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding-left: 8px;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  margin-bottom: 4px;
}

.sidebar-nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  padding-left: 18px;
}

.sidebar-nav-link.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
  border-left: 3px solid var(--accent);
}

.sidebar-nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Main Content Area */
.docs-main {
  flex: 1;
  margin-left: 290px;
  padding: 48px 64px 80px;
  max-width: 1060px;
}

@media (max-width: 1024px) {
  .docs-sidebar {
    width: 240px;
  }
  .docs-main {
    margin-left: 240px;
    padding: 36px 40px 64px;
  }
}

@media (max-width: 768px) {
  .docs-layout {
    flex-direction: column;
  }
  .docs-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .docs-logo {
    margin-bottom: 16px;
  }
  .docs-main {
    margin-left: 0;
    padding: 24px 20px 48px;
  }
  .sidebar-nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  .sidebar-nav-title {
    width: 100%;
    margin-bottom: 6px;
  }
  .sidebar-nav-link {
    margin-bottom: 0;
  }
}

/* ===================== TYPOGRAPHY & BLOCKS ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

h1 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

h2 {
  font-size: 24px;
  margin-top: 36px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

h3 {
  font-size: 18px;
  margin-top: 24px;
}

p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.7;
}

a {
  color: var(--accent2);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  text-decoration: underline;
  color: #fff;
}

strong {
  color: #fff;
  font-weight: 600;
}

/* ===================== COMPONENTS ===================== */

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 36px;
}

.docs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.docs-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: var(--transition);
}

.docs-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-glow);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 20px rgba(232, 98, 26, 0.1);
}

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

.docs-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.docs-card-icon.cyan {
  background: var(--accent2-dim);
  color: var(--accent2);
}

.docs-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.docs-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Callouts / Alerts */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border-left: 4px solid var(--accent);
  background: rgba(232, 98, 26, 0.05);
}

.callout.tip {
  border-left-color: var(--accent2);
  background: rgba(46, 189, 217, 0.05);
}

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

.callout-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: #fff;
}

.callout.tip .callout-title { color: var(--accent2); }
.callout.warning .callout-title { color: #f59e0b; }
.callout.info .callout-title { color: var(--accent); }

.callout p {
  margin-bottom: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Code & Highlight blocks */
pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 24px;
}

code {
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #f43f5e;
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
}

/* Lists */
ul, ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-secondary);
}

li {
  margin-bottom: 8px;
  font-size: 14.5px;
}

li strong {
  color: #fff;
}

/* Parameter Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 13.5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

th {
  background: rgba(255,255,255,0.03);
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

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

/* Step Accordions / Guides */
.step-container {
  position: relative;
  padding-left: 36px;
  margin-bottom: 24px;
}

.step-container::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background: var(--border);
}

.step-container:last-child::before {
  display: none;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.step-number.cyan {
  background: var(--accent2);
  box-shadow: 0 0 10px rgba(46, 189, 217, 0.35);
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Footer Section */
.docs-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

.docs-footer a {
  color: var(--text-secondary);
}

.docs-footer a:hover {
  color: var(--accent);
}

/* ===================== PREMIUM MOCKUPS & VISUALS ===================== */
.docs-visual-container {
  margin: 24px 0 32px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.docs-browser-chrome {
  background: #161616;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-browser-dots {
  display: flex;
  gap: 6px;
}

.docs-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}
.docs-browser-dot.red { background: #ef4444; }
.docs-browser-dot.yellow { background: #f59e0b; }
.docs-browser-dot.green { background: #10b981; }

.docs-browser-address {
  flex: 1;
  background: #0b0b0b;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-family: monospace;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.docs-browser-action-icon {
  color: var(--accent2);
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  gap: 4px;
}

.docs-visual-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(0,0,0,0.2);
}

.docs-mock-screen {
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-body);
}

.docs-mock-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.docs-mock-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-mock-badge {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.docs-mock-content {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.docs-mock-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.docs-mock-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.docs-mock-caption {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
  margin-top: 8px;
}

