/* 
   runaway_theme.css
   A sleek, futuristic "Runaway" theme inspired by DeepMind & AI aesthetics.
   Designed for the Sphinx Furo theme.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Enforce Dark Mode Base */
  --color-background-primary: #0a0e14 !important;
  --color-background-secondary: #0d1219 !important;
  --color-background-item: #151b23 !important;
  
  /* Text colors */
  --color-foreground-primary: #e6edf3 !important;
  --color-foreground-secondary: #8b949e !important;
  --color-foreground-muted: #6e7681 !important;
  
  /* Runaway Neon Accents */
  --color-brand-primary: #00ffcc !important; /* Cyber Cyan */
  --color-brand-content: #00ffcc !important;
  --color-link: #00ffcc !important;
  --color-link-hover: #ff00ff !important; /* Magenta hover */
  
  /* Borders and UI */
  --color-background-border: #30363d !important;
  --color-sidebar-background: #0d1219 !important;
  --color-sidebar-brand-text: #00ffcc !important;
  
  /* Code Blocks */
  --color-code-background: #11141a !important;
  --color-code-foreground: #c9d1d9 !important;

  /* Typography */
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-stack--monospace: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body {
    background-color: var(--color-background-primary);
    color: var(--color-foreground-primary);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
}

/* Sidebar glow effects */
.sidebar-brand-text {
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.sidebar-link {
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    color: var(--color-link-hover) !important;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
}

h1 {
    border-bottom: 1px solid var(--color-background-border);
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}

/* Admonitions */
.admonition {
    background: rgba(0, 255, 204, 0.05);
    border-left: 4px solid var(--color-brand-primary);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

.admonition-title {
    background: rgba(0, 255, 204, 0.1) !important;
    color: var(--color-brand-primary) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Math blocks */
div.math {
    background: var(--color-background-secondary);
    padding: 1em;
    border-radius: 8px;
    border: 1px solid var(--color-background-border);
    overflow-x: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* Smooth link transitions */
a {
    transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
}

a:hover {
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

/* Custom Scrollbar for Chrome/Safari */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-background-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-background-border);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-primary);
}
