/* Intel One Mono font for code */
@import url('https://fonts.googleapis.com/css2?family=Intel+One+Mono:wght@400;700&display=swap');

/* Bobbin Documentation — Dracula Theme Override
   Applied to the Coal theme (default) */

/* Dracula palette:
   Background:    #282a36
   Current Line:  #44475a
   Foreground:    #f8f8f2
   Comment:       #6272a4
   Cyan:          #8be9fd
   Green:         #50fa7b
   Orange:        #ffb86c
   Pink:          #ff79c6
   Purple:        #bd93f9
   Red:           #ff5555
   Yellow:        #f1fa8c
*/

.coal {
    --bg: #282a36;
    --fg: #f8f8f2;
    --sidebar-bg: #21222c;
    --sidebar-fg: #f8f8f2;
    --sidebar-non-existant: #44475a;
    --sidebar-active: #8be9fd;
    --sidebar-spacer: #44475a;
    --scrollbar: #44475a;
    --icons: #6272a4;
    --icons-hover: #bd93f9;
    --links: #8be9fd;
    --inline-code-color: #50fa7b;
    --theme-popup-bg: #282a36;
    --theme-popup-border: #44475a;
    --theme-hover: #44475a;
    --quote-bg: rgba(68, 71, 90, 0.4);
    --quote-border: #6272a4;
    --table-border-color: #44475a;
    --table-header-bg: #44475a;
    --table-alternate-bg: rgba(68, 71, 90, 0.2);
    --searchbar-border-color: #44475a;
    --searchbar-bg: #44475a;
    --searchbar-fg: #f8f8f2;
    --searchbar-shadow-color: rgba(0, 0, 0, 0.3);
    --searchresults-header-fg: #8be9fd;
    --searchresults-border-color: #44475a;
    --searchresults-li-bg: #44475a;
    --search-mark-bg: rgba(241, 250, 140, 0.3);
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

th {
    background: var(--table-header-bg);
    font-weight: 600;
}

/* Code block improvements */
pre {
    border-radius: 4px;
    overflow-x: auto;
}

code {
    font-family: 'Intel One Mono', 'Fira Code', 'Consolas', monospace;
}

pre code {
    font-family: 'Intel One Mono', 'Fira Code', 'Consolas', monospace;
}

/* Blockquote callouts */
blockquote {
    border-left: 4px solid var(--quote-border);
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background: var(--quote-bg);
    border-radius: 0 4px 4px 0;
}

blockquote strong {
    color: #f1fa8c;
}

/* Command page styling */
.cli-usage {
    background: #44475a;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Status badges */
.status-draft {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    background: #f1fa8c;
    color: #282a36;
}

.status-stable {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    background: #50fa7b;
    color: #282a36;
}

.status-planned {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    background: #6272a4;
    color: #f8f8f2;
}

/* Navigation improvements */
.chapter li.chapter-item {
    margin-top: 0.25rem;
}

/* Search result highlighting */
mark {
    background: rgba(241, 250, 140, 0.3);
    color: inherit;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
}

/* Headings with Dracula purple accent */
.coal h1, .coal h2, .coal h3 {
    color: #bd93f9;
}

.coal h4, .coal h5, .coal h6 {
    color: #ff79c6;
}

/* Eval result badges */
.eval-easy {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    background: #50fa7b;
    color: #282a36;
}

.eval-medium {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    background: #f1fa8c;
    color: #282a36;
}

.eval-hard {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    background: #ff5555;
    color: #f8f8f2;
}

.eval-pass {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    background: #50fa7b;
    color: #282a36;
}

.eval-fail {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    background: #ff5555;
    color: #f8f8f2;
}

.eval-chart {
    margin: 1rem 0;
    text-align: center;
    overflow-x: auto;
}

.eval-chart svg,
.eval-chart img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.eval-delta-positive {
    color: #50fa7b;
    font-weight: 600;
}

.eval-delta-negative {
    color: #ff5555;
    font-weight: 600;
}

/* Improved link hover */
.coal a:hover {
    color: #ff79c6;
}
