/* ========================================
   BotCamp Training Notebook - Main Styles
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #6366f1; /* Indigo */
  --secondary-color: #8b5cf6; /* Violet */
  --dark-text: #1e293b;
  --light-text: #475569;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

  /* Navigation */
  --sidebar-width: 280px;
  --topbar-height: 36px;
  --header-main-height: 72px;
  --header-height: calc(var(--topbar-height) + var(--header-main-height));

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(10px);

  /* Z-Index Hierarchy (SAP-like) */
  --z-header: 1000;        /* Fixed header */
  --z-sidebar: 999;        /* Sidebar (below header) */
  --z-overlay: 998;        /* Mobile overlay */
  --z-content: 1;          /* Main content */
}

/* A4 Print Setup */
@page {
  size: A4;
  margin: 15mm 20mm;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: var(--bg-page);
  color: var(--dark-text);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.05) 0px, transparent 50%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-text);
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 15px;
  color: #111827;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 6px;
  background: var(--accent-gradient);
  border-radius: 3px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4c1d95; /* Deep purple */
  margin-top: 2.5rem;
  border-right: 4px solid var(--secondary-color);
  padding-right: 15px;
  margin-bottom: 1rem;
  scroll-margin-top: 30px;
}

/* Scroll offset for anchor links - ensures headers are visible below fixed header */
[id] {
  scroll-margin-top: 30px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #5b21b6;
  margin-top: 1.5rem;
}


p {
  margin-bottom: 1rem;
  color: var(--light-text);
}

strong {
  color: #0f172a;
  font-weight: 700;
}

/* Inline Code - always LTR for proper display */
code {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  background: rgba(99, 102, 241, 0.08);
  color: #5b21b6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Pre/Code blocks - always LTR */
pre {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

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

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

/* Lists */
ul {
  padding-right: 1.2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--light-text);
}

ul li::marker {
  color: var(--secondary-color);
}

/* Separators */
hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(99, 102, 241, 0.2), rgba(0, 0, 0, 0));
  margin: 3rem 0;
}

/* Utility Classes */
.warning-text {
  color: #9f1239;
}

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

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

/* Main Content Area */
/* Note: Layout positioning is handled by layout.css using CSS Grid */
.main-content {
  position: relative;
  z-index: var(--z-content);
}
