/* Professional Typography and Minimalist Styling for Furo Theme */

/* Import Professional Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Global Typography Overrides */
:root {
  /* Professional font stack */
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-stack-monospace: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'DejaVu Sans Mono', monospace;
  
  /* Refined spacing */
  --content-padding: 2.5rem;
  --sidebar-width: 300px;
  
  /* Clean colors */
  --color-brand-primary: #2563eb;
  --color-brand-content: #1e40af;
  --color-text: #1f2937;
  --color-text-secondary: #6b7280;
  --color-background: #ffffff;
  --color-background-secondary: #f9fafb;
  --color-border: #e5e7eb;
  
  /* Professional shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
}

/* Apply professional font family */
body, .furo-body {
  font-family: var(--font-stack) !important;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

/* Headings with refined typography */
h1, h2, h3, h4, h5, h6,
.sidebar-brand-text,
.sidebar-search-container input {
  font-family: var(--font-stack) !important;
}

h1 {
  font-weight: 600;
  font-size: 2.25rem;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

h2 {
  font-weight: 600;
  font-size: 1.875rem;
  letter-spacing: -0.025em;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-weight: 500;
  font-size: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Code and monospace elements */
code, pre, .highlight,
.code, .literal,
.codehilite {
  font-family: var(--font-stack-monospace) !important;
  font-size: 0.875em;
  font-weight: 400;
}

/* Clean code blocks */
.highlight {
  background: var(--color-background-secondary) !important;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

/* Inline code styling */
.rst-content code.literal,
code.literal {
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--color-brand-content);
}

/* Clean admonitions */
.admonition {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
  overflow: hidden;
}

.admonition.note {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
}

.admonition.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left: 4px solid #f59e0b;
}

.admonition.tip {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid #22c55e;
}

/* Clean tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  text-align: left;
}

th {
  background: var(--color-background-secondary);
  font-weight: 600;
  color: var(--color-text);
}

/* Clean navigation */
.sidebar-brand-text {
  font-weight: 600;
  font-size: 1.125rem;
}

.sidebar-search-container input {
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
}

/* Button improvements */
.btn, button, input[type="submit"] {
  border-radius: 6px;
  font-family: var(--font-stack);
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Clean scrollbars (webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  :root {
    --content-padding: 1.5rem;
  }
}

/* Print styles */
@media print {
  body {
    font-family: 'Inter', serif;
    color: #000;
    background: #fff;
  }
  
  .sidebar-drawer {
    display: none;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}
