/* LogoAIpro Documentation - Modern Light Theme Matching Main Project */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

:root {
  /* Light Theme Color Palette - Matching Main Project */
  --background: hsl(259, 13%, 100%);
  --foreground: hsl(259, 5%, 10%);
  --card: hsl(259, 13%, 100%);
  --card-foreground: hsl(259, 5%, 15%);
  --muted: hsl(221, 13%, 95%);
  --muted-foreground: hsl(259, 5%, 40%);
  --accent: hsl(221, 13%, 90%);
  --accent-foreground: hsl(259, 5%, 15%);
  --border: hsl(259, 20%, 82%);
  
  /* Primary Orange Color - Matching Main Project */
  --primary: hsl(26, 92%, 50%);
  --primary-foreground: hsl(0, 0%, 100%);
  --primary-light: hsl(26, 92%, 60%);
  --primary-dark: hsl(26, 92%, 40%);
  --brand: var(--primary); /* Alias for backward compatibility */
  
  /* Status Colors */
  --success: hsl(142, 71%, 45%);
  --warning: hsl(38, 92%, 50%);
  --danger: hsl(0, 84%, 60%);
  --info: hsl(217, 91%, 60%);
  
  /* Background Variations */
  --bg: var(--background);
  --bg-soft: hsl(259, 13%, 98%);
  --panel: hsl(259, 13%, 100%);
  --panel-2: hsl(221, 13%, 95%);
  --panel-3: hsl(221, 13%, 90%);
  
  /* Text Colors */
  --text: var(--foreground);
  --text-secondary: hsl(259, 5%, 30%);
  --text-muted: var(--muted-foreground);
  
  /* Shadows */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 10px 15px -3px rgba(255, 165, 0, 0.25), 0 4px 6px -2px rgba(255, 165, 0, 0.1);
  
  /* Border Radius */
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Fonts */
  --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 400;
  background: var(--background);
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(255, 165, 0, 0.05), transparent 60%),
    linear-gradient(180deg, var(--background) 0%, var(--bg-soft) 100%);
  background-attachment: fixed;
  color: var(--foreground);
  line-height: var(--leading-relaxed);
  letter-spacing: -0.01em;
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "ss02" on, "cv01" on, "cv02" on;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.02) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Sidebar - Modern Clean Design */
.sidebar {
  width: 280px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  padding: 2rem 0;
  overflow-y: auto;
  position: fixed;
  height: 100vh;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 8px;
}

.brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--foreground) 0%, var(--foreground) 70%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.brand p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: var(--leading-normal);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1rem;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  line-height: var(--leading-normal);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.sidebar nav a:hover {
  background: var(--accent);
  color: var(--foreground);
  border-color: var(--border);
}

.sidebar nav a:hover svg {
  opacity: 1;
}

.sidebar nav a.active {
  background: rgba(255, 165, 0, 0.1);
  color: var(--primary);
  border-color: rgba(255, 165, 0, 0.2);
  font-weight: 600;
}

.sidebar nav a.active svg {
  opacity: 1;
  color: var(--primary);
}

.sidebar footer {
  margin-top: auto;
  padding: 2rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: var(--leading-normal);
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* Main Content */
.content {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.topbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.topbar h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

.actions {
  margin-left: auto;
}

.actions button {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.actions button:hover {
  background: var(--panel-3);
  color: var(--foreground);
  border-color: var(--border);
}

/* Content Sections */
.prose {
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.prose h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prose h2 svg {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.8;
  display: inline-block;
  vertical-align: middle;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 2rem 0 1rem;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.prose h3 svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.7;
  display: inline-block;
  vertical-align: middle;
}

/* Ensure all SVG icons in headings have proper sizing */
.prose h2 > svg,
.prose h2 svg,
.prose h3 > svg,
.prose h3 svg {
  max-width: 24px !important;
  max-height: 24px !important;
  width: 24px !important;
  height: 24px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.prose h3 > svg,
.prose h3 svg {
  max-width: 20px !important;
  max-height: 20px !important;
  width: 20px !important;
  height: 20px !important;
}

/* Ensure SVG icons in callouts and other content areas are properly sized */
.prose .callout svg,
.prose strong svg {
  max-width: 18px !important;
  max-height: 18px !important;
  width: 18px !important;
  height: 18px !important;
}

/* General SVG sizing rule for any SVG without explicit size */
.prose svg:not([width]):not([height]):not([style*="width"]):not([style*="height"]) {
  max-width: 24px !important;
  max-height: 24px !important;
  width: 24px !important;
  height: 24px !important;
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  letter-spacing: 0.01em;
}

.prose ul, .prose ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.prose li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  letter-spacing: 0.01em;
}

.prose li::marker {
  color: var(--primary);
}

.prose code {
  background: var(--muted);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  border: 1px solid var(--border);
  color: var(--primary-dark);
}

.prose pre {
  background: var(--panel);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: var(--leading-relaxed);
  box-shadow: var(--shadow);
}

.prose pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--foreground);
  font-size: inherit;
  font-weight: 400;
}

/* Callout Boxes */
.callout {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.callout strong {
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout strong svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.callout p,
.callout ul,
.callout ol {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-top: 0.75rem;
}

.callout.info {
  border-left-color: var(--info);
  background: rgba(59, 130, 246, 0.05);
}

.callout.success {
  border-left-color: var(--success);
  background: rgba(34, 197, 94, 0.05);
}

.callout.warning {
  border-left-color: var(--warning);
  background: rgba(251, 191, 36, 0.05);
}

.callout.danger {
  border-left-color: var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  border-color: var(--primary);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 0;
}

.feature-card h3 svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

.feature-card h3::before {
  display: none;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  line-height: var(--leading-normal);
  border: 1px solid var(--primary-dark);
  transition: all 0.2s ease;
  font-family: var(--font-primary);
  box-shadow: var(--shadow-primary);
}

.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--panel-2);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.btn.secondary:hover {
  background: var(--panel-3);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.btn.success {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.prose th,
.prose td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.prose th {
  background: var(--panel-2);
  color: var(--foreground);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.prose td {
  color: var(--text-secondary);
  background: var(--panel);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.prose tr:hover td {
  background: var(--accent);
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .content {
    margin-left: 0;
  }
  
  .topbar {
    padding: 1rem 1.5rem;
  }
  
  .topbar h2 {
    font-size: 1.5rem;
  }
  
  .prose {
    padding: 1.5rem;
  }
  
  .prose h1 {
    font-size: 2rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Version Info */
.version-info {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

.version-info .version {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
}

.version-info .date {
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
}

/* Steps */
.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step-counter;
}

.step {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-left: 1px solid var(--border);
  padding-top: 0.25rem;
}

.step::before {
  content: counter(step-counter);
  position: absolute;
  left: -0.875rem;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid var(--background);
  box-shadow: var(--shadow-primary);
}

.step:last-child {
  border-left: none;
  padding-bottom: 0;
}

/* Icon Styles */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
}
