/**
 * Console Theme - Claude AI Coding Experience
 * A clean, terminal-inspired white theme with modern UX
 *
 * Design Philosophy:
 * - Console/terminal aesthetic with professional polish
 * - Claude AI branding colors (warm orange accent)
 * - Monospace typography for code-like feel
 * - High readability on white backgrounds
 * - Subtle visual indicators and decorations
 */

/* ═══════════════════════════════════════════════════════════════
   CONSOLE THEME - CSS VARIABLES OVERRIDE
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Claude AI Color Palette */
    --claude-orange: #d97706;
    --claude-orange-light: #fbbf24;
    --claude-orange-dark: #b45309;
    --claude-warm: #fef3c7;

    /* Console Colors */
    --console-bg: #ffffff;
    --console-bg-secondary: #fafafa;
    --console-bg-tertiary: #f5f5f5;
    --console-border: #e5e5e5;
    --console-border-light: #f0f0f0;

    /* Text Colors - High Contrast */
    --console-text: #171717;
    --console-text-secondary: #525252;
    --console-text-muted: #737373;
    --console-text-faint: #a3a3a3;

    /* Accent Colors */
    --console-accent: #d97706;
    --console-accent-hover: #b45309;
    --console-success: #059669;
    --console-warning: #d97706;
    --console-error: #dc2626;
    --console-info: #0284c7;

    /* Code/Terminal Colors */
    --code-bg: #fafaf9;
    --code-border: #e7e5e4;
    --code-text: #1c1917;
    --code-comment: #78716c;
    --code-keyword: #0369a1;
    --code-string: #15803d;
    --code-function: #7c3aed;

    /* Typography - Monospace Forward */
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows - Subtle */
    --shadow-console: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-console-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-console-lg: 0 10px 15px rgba(0, 0, 0, 0.04), 0 4px 6px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-console: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   BODY & GLOBAL STYLES
   ═══════════════════════════════════════════════════════════════ */

body {
    background: var(--console-bg);
    color: var(--console-text);
    font-family: var(--font-sans);
    line-height: 1.7;
}

/* Subtle grid pattern background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -1;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

header {
    background: var(--console-bg) !important;
    background-size: unset !important;
    animation: none !important;
    color: var(--console-text);
    padding: 3rem 2rem 2.5rem;
    border-bottom: 1px solid var(--console-border);
    position: relative;
    overflow: visible;
}

header::before {
    display: none !important;
}

/* Console prompt decoration */
header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--claude-orange), transparent);
    border-radius: 2px;
}

header h1 {
    color: var(--console-text) !important;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Claude prompt symbol */
header h1::before {
    content: '>';
    color: var(--claude-orange);
    font-weight: 700;
    animation: cursorBlink 1.2s infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

header .subtitle {
    color: var(--console-text-secondary) !important;
    font-size: 1rem;
    font-family: var(--font-sans);
    max-width: 700px;
    text-shadow: none !important;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   OPUS UPDATE BANNER - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

.opus-update-banner {
    background: var(--console-bg-secondary) !important;
    border-bottom: 1px solid var(--console-border);
    box-shadow: none !important;
    padding: 0.625rem 0;
}

.opus-banner-content {
    gap: 0.75rem;
}

.opus-badge {
    background: var(--claude-orange) !important;
    color: white;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
}

.opus-badge i {
    font-size: 0.75rem;
}

.opus-text {
    color: var(--console-text-secondary);
    font-size: 0.85rem;
}

.opus-text strong {
    color: var(--console-text);
    font-weight: 600;
}

.opus-separator {
    color: var(--console-border);
}

.opus-cta {
    background: var(--console-text) !important;
    color: white !important;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.875rem;
    border-radius: 6px;
    box-shadow: none !important;
    transition: var(--transition-console);
}

.opus-cta:hover {
    background: var(--claude-orange) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-console-md) !important;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--console-text);
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.5rem;
    color: var(--console-text);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--console-border);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Section number/prompt indicator */
h2::before {
    content: '#';
    color: var(--claude-orange);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
}

h3 {
    font-size: 1.25rem;
    color: var(--console-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h3::before {
    content: '##';
    color: var(--console-text-muted);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.875rem;
}

h4 {
    font-size: 1.1rem;
    color: var(--console-text);
    margin-top: 1.5rem;
}

p {
    color: var(--console-text-secondary);
    line-height: 1.75;
}

strong, b {
    color: var(--console-text);
    font-weight: 600;
}

a {
    color: var(--console-accent);
    text-decoration: none;
    transition: var(--transition-console);
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--console-accent-hover);
    border-bottom-color: var(--console-accent-hover);
}

/* ═══════════════════════════════════════════════════════════════
   CODE BLOCKS - TERMINAL STYLE
   ═══════════════════════════════════════════════════════════════ */

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    border: 1px solid var(--code-border);
    font-weight: 500;
}

pre {
    background: var(--console-text);
    color: #f5f5f4;
    padding: 1.25rem;
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-console-md);
    position: relative;
    overflow-x: auto;
}

pre::before {
    content: '$ ';
    color: var(--claude-orange-light);
    font-weight: 600;
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    pointer-events: none;
    opacity: 0;
}

pre code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Terminal window decoration */
.diagram,
.code-block pre {
    background: var(--console-text);
    border-radius: 8px;
    position: relative;
    padding-top: 2.5rem;
}

.diagram::before,
.code-block pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #292524;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #3f3f46;
}

.diagram::after,
.code-block pre::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 12px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 16px 0 0 #fbbf24, 32px 0 0 #22c55e;
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS - CLEAN CARDS
   ═══════════════════════════════════════════════════════════════ */

section {
    background: var(--console-bg);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--console-border);
    box-shadow: var(--shadow-console);
    transition: var(--transition-console);
}

section:hover {
    box-shadow: var(--shadow-console-md);
    border-color: var(--console-border);
}

/* Section with terminal prompt feel */
section::before {
    content: '';
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

.card,
.metric-card,
.scenario-card {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    border-radius: 8px;
    box-shadow: var(--shadow-console);
    transition: var(--transition-console);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.card:hover,
.metric-card:hover,
.scenario-card:hover {
    border-color: var(--claude-orange);
    box-shadow: var(--shadow-console-md);
    transform: translateY(-2px);
}

.card h4,
.metric-card h4 {
    color: var(--console-text);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
}

.metric-card .value {
    color: var(--claude-orange);
    font-family: var(--font-mono);
}

/* Card variants - top accent line */
.card-primary,
.card-secondary,
.card-success,
.card-warning,
.card-danger {
    border-top: none;
}

.card-primary::before,
.card-secondary::before,
.card-success::before,
.card-warning::before,
.card-danger::before {
    content: '';
    display: block;
    height: 3px;
    margin: -1rem -1rem 1rem -1rem;
    border-radius: 8px 8px 0 0;
}

.card-primary::before { background: var(--console-text); }
.card-secondary::before { background: var(--claude-orange); }
.card-success::before { background: var(--console-success); }
.card-warning::before { background: var(--console-warning); }
.card-danger::before { background: var(--console-error); }

/* ═══════════════════════════════════════════════════════════════
   ALERT BOXES - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

.info-box,
.success-box,
.warning-box,
.error-box,
.highlight {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    border-top: none;
    border-radius: 8px;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    position: relative;
    box-shadow: var(--shadow-console);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Icon indicator */
.info-box::before,
.success-box::before,
.warning-box::before,
.error-box::before {
    font-family: 'primeicons';
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    font-size: 1.25rem;
}

.info-box {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}
.info-box::before {
    content: '\e92a';
    color: var(--console-info);
}

.success-box {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d;
}
.success-box::before {
    content: '\e909';
    color: var(--console-success);
}

.warning-box,
.highlight {
    background: #fffbeb;
    border-color: #fde68a;
    color: #78350f;
}
.warning-box::before,
.highlight::before {
    content: '\e946';
    color: var(--console-warning);
}

.error-box {
    background: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}
.error-box::before {
    content: '\e90d';
    color: var(--console-error);
}

/* ═══════════════════════════════════════════════════════════════
   BADGES - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

.badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-primary {
    background: var(--console-text);
    color: white;
}

.badge-success {
    background: var(--console-success);
}

.badge-warning {
    background: var(--console-warning);
}

.badge-danger {
    background: var(--console-error);
}

.badge-info {
    background: var(--console-info);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

.btn {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    transition: var(--transition-console);
    box-shadow: var(--shadow-console);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-console-md);
}

.btn-primary {
    background: var(--console-text);
    color: white;
}

.btn-primary:hover {
    background: #262626;
}

.btn-secondary {
    background: var(--claude-orange);
    color: white;
}

.btn-secondary:hover {
    background: var(--claude-orange-dark);
}

.btn-outline {
    background: transparent;
    color: var(--console-text);
    border: 2px solid var(--console-border);
}

.btn-outline:hover {
    background: var(--console-text);
    color: white;
    border-color: var(--console-text);
}

/* Back to top - Console style */
.back-to-top {
    background: var(--console-text);
    color: white;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-family: var(--font-mono);
}

.back-to-top:hover {
    background: var(--claude-orange);
}

/* ═══════════════════════════════════════════════════════════════
   TABLES - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--console-border);
    box-shadow: var(--shadow-console);
}

table th {
    background: var(--console-text);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1rem;
}

table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--console-border);
    font-size: 0.9rem;
}

table tr:hover {
    background: var(--console-bg-secondary);
}

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

/* ═══════════════════════════════════════════════════════════════
   SIMULATORS - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

.simulators-section {
    background: var(--console-bg-secondary);
    margin: 3rem -2rem;
    padding: 3rem 2rem;
    border-top: 1px solid var(--console-border);
    border-bottom: 1px solid var(--console-border);
}

.simulators-section h2 {
    color: var(--console-text);
    text-align: center;
    font-size: 1.75rem;
}

.simulators-section .section-subtitle {
    color: var(--console-text-secondary);
}

.simulator-card {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    box-shadow: var(--shadow-console);
}

.simulator-card:hover {
    border-color: var(--claude-orange);
    box-shadow: var(--shadow-console-lg);
}

.simulator-header {
    background: var(--console-text);
    padding: 1.5rem;
}

.simulator-header h3 {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: white;
    margin: 0;
}

.simulator-header h3::before {
    content: '$ ';
    color: var(--claude-orange-light);
}

.simulator-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.simulator-header i {
    color: var(--claude-orange-light);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

/* Input styling */
.input-group {
    background: var(--console-bg-secondary);
    border: 1px solid var(--console-border);
    border-radius: 6px;
    padding: 1rem;
}

.input-group label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--console-text-secondary);
}

.input-group input[type="number"],
.input-group input[type="text"] {
    border: 2px solid var(--console-border);
    border-radius: 6px;
    font-family: var(--font-mono);
    transition: var(--transition-console);
}

.input-group input:focus {
    border-color: var(--claude-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.input-group input[type="range"]::-webkit-slider-thumb {
    background: var(--claude-orange);
}

.input-group input[type="range"]::-moz-range-thumb {
    background: var(--claude-orange);
}

/* Result cards */
.result-card {
    background: var(--console-text);
    border-radius: 8px;
}

.result-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
}

/* Progress bars */
.progress-bar {
    background: var(--console-border);
    border-radius: 4px;
}

.progress-fill {
    background: linear-gradient(90deg, var(--console-success), #34d399);
    border-radius: 4px;
}

/* Feedback messages */
.feedback-message {
    border-radius: 8px;
    border-left: 4px solid;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

footer {
    background: var(--console-text);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0.25rem 0;
}

footer a {
    color: var(--claude-orange-light);
}

footer a:hover {
    color: white;
}

/* Footer decoration */
footer::before {
    content: '// ';
    color: var(--claude-orange-light);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--console-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   SELECTION - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

::selection {
    background: var(--claude-orange);
    color: white;
}

::-moz-selection {
    background: var(--claude-orange);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════════ */

.loading {
    border-color: var(--console-border);
    border-top-color: var(--claude-orange);
}

.skeleton {
    background: linear-gradient(90deg,
        var(--console-bg-secondary) 25%,
        var(--console-border) 50%,
        var(--console-bg-secondary) 75%);
}

/* ═══════════════════════════════════════════════════════════════
   CONSOLE DECORATIONS
   ═══════════════════════════════════════════════════════════════ */

/* Command prompt style for list items in specific contexts */
.workflow-step::before {
    content: '';
    background: var(--claude-orange);
}

/* Status indicators */
.score-high {
    background: #ecfdf5;
    color: var(--console-success);
    font-family: var(--font-mono);
}

.score-medium {
    background: #fffbeb;
    color: var(--console-warning);
    font-family: var(--font-mono);
}

.score-low {
    background: #fef2f2;
    color: var(--console-error);
    font-family: var(--font-mono);
}

/* Diff visualization - Console style */
.diff-container {
    border: 1px solid var(--console-border);
    border-radius: 8px;
}

.diff-header {
    background: var(--console-text);
}

.diff-old {
    background: #fef2f2;
}

.diff-new {
    background: #f0fdf4;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

.modal {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    box-shadow: var(--shadow-console-lg);
    border-radius: 12px;
}

.modal-close {
    color: var(--console-text-muted);
}

.modal-close:hover {
    color: var(--console-text);
    background: var(--console-bg-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   TOOLTIPS - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

.tooltip-text {
    background: var(--console-text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-radius: 6px;
}

.tooltip-text::after {
    border-color: var(--console-text) transparent transparent transparent;
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES OVERRIDE
   ═══════════════════════════════════════════════════════════════ */

@media print {
    body::before {
        display: none;
    }

    header {
        background: white !important;
        border-bottom: 2px solid #000;
    }

    h2::before,
    h3::before,
    header h1::before {
        color: #000;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING NAVIGATION - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

#floating-nav {
    font-family: var(--font-mono);
}

.fnav-trigger {
    background: var(--console-text);
    border-radius: 10px;
    width: 52px;
    height: 52px;
    box-shadow: var(--shadow-console-md);
}

.fnav-trigger:hover {
    background: #262626;
    box-shadow: var(--shadow-console-lg);
}

#floating-nav.open .fnav-trigger {
    background: var(--claude-orange);
}

.fnav-trigger-badge {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.6rem;
}

.fnav-panel {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    border-radius: 12px;
    box-shadow: var(--shadow-console-lg);
    backdrop-filter: none;
}

.fnav-header {
    background: var(--console-bg-secondary);
    border-color: var(--console-border);
}

.fnav-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--console-text);
}

.fnav-title::before {
    content: '$ ';
    color: var(--claude-orange);
    font-weight: 700;
}

.fnav-title i {
    color: var(--claude-orange);
}

.fnav-progress {
    font-family: var(--font-mono);
    background: var(--console-bg-tertiary);
    color: var(--console-text-secondary);
    font-size: 0.7rem;
}

.fnav-zone-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--console-text-muted);
}

.fnav-zone-count {
    font-family: var(--font-mono);
    background: var(--console-bg-tertiary);
    color: var(--console-text-muted);
}

.fnav-zone.complete .fnav-zone-count {
    background: #ecfdf5;
    color: var(--console-success);
}

.fnav-item {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--console-text-secondary);
    border-radius: 6px;
}

.fnav-item:hover {
    background: var(--console-bg-secondary);
    color: var(--console-text);
}

.fnav-item.active {
    background: var(--claude-warm);
    color: var(--claude-orange-dark);
}

.fnav-item.active .fnav-item-dot {
    background: var(--claude-orange);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.fnav-item.active::before {
    background: var(--claude-orange);
    width: 2px;
}

.fnav-item.visited .fnav-item-dot {
    background: var(--console-success);
}

.fnav-item-dot {
    background: var(--console-border);
}

.fnav-footer {
    background: var(--console-bg-secondary);
    border-color: var(--console-border);
}

.fnav-reset {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--console-bg-tertiary);
    color: var(--console-text-muted);
    border-radius: 6px;
}

.fnav-reset:hover {
    background: var(--console-border);
    color: var(--console-text);
}

/* ═══════════════════════════════════════════════════════════════
   INFOGRAPHICS - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

.infographics-toggle {
    font-family: var(--font-mono);
    background: var(--console-bg-secondary);
    border: 1px solid var(--console-border);
    border-radius: 6px;
}

.infographics-toggle:hover {
    border-color: var(--claude-orange);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    header {
        padding: 2rem 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header h1::before {
        content: '>';
    }

    h2 {
        font-size: 1.25rem;
    }

    h2::before {
        content: '#';
        font-size: 1rem;
    }

    h3::before {
        content: '##';
    }

    .simulators-section {
        margin: 2rem -1rem;
        padding: 2rem 1rem;
    }

    section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY - FOCUS STATES
   ═══════════════════════════════════════════════════════════════ */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 2px solid var(--claude-orange);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --console-border: #525252;
        --console-text-secondary: #404040;
    }

    .card,
    .info-box,
    section {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    header h1::before {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MARKDOWN CONTENT - CONSOLE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Lists with console-style bullets */
.markdown-content ul,
section ul {
    list-style: none;
    padding-left: 0;
}

.markdown-content ul li,
section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.markdown-content ul li::before,
section ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--claude-orange);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* Nested lists */
.markdown-content ul ul li::before,
section ul ul li::before {
    content: '\2022';
    color: var(--console-text-muted);
}

/* Ordered lists with monospace numbers */
.markdown-content ol,
section ol {
    list-style: none;
    counter-reset: console-counter;
    padding-left: 0;
}

.markdown-content ol li,
section ol li {
    position: relative;
    padding-left: 2rem;
    counter-increment: console-counter;
    margin-bottom: 0.5rem;
}

.markdown-content ol li::before,
section ol li::before {
    content: counter(console-counter) '.';
    position: absolute;
    left: 0;
    color: var(--claude-orange);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9em;
}

/* Blockquotes - Command output style */
.markdown-content blockquote,
section blockquote {
    background: var(--console-bg-secondary);
    border: 1px solid var(--console-border);
    border-radius: 8px;
    padding: 1rem 1rem 1rem 3rem;
    margin: 1.5rem 0;
    position: relative;
    font-style: normal;
}

.markdown-content blockquote::before,
section blockquote::before {
    content: '>';
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--claude-orange);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
}

.markdown-content blockquote p,
section blockquote p {
    margin: 0;
    color: var(--console-text-secondary);
}

/* Horizontal rules - Dashed line */
.markdown-content hr,
section hr {
    border: none;
    border-top: 2px dashed var(--console-border);
    margin: 2rem 0;
}

/* Definition lists */
.markdown-content dl dt {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--console-text);
    margin-top: 1rem;
}

.markdown-content dl dd {
    margin-left: 1.5rem;
    color: var(--console-text-secondary);
    padding-left: 1rem;
    border-left: 2px solid var(--console-border);
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED CODE BLOCKS - LINE NUMBERS
   ═══════════════════════════════════════════════════════════════ */

/* Code blocks with filename header */
.code-block {
    position: relative;
    margin: 1.5rem 0;
}

.code-block-header {
    background: #292524;
    color: var(--console-text-muted);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-block-header::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 16px 0 0 #fbbf24, 32px 0 0 #22c55e;
}

.code-block pre {
    border-radius: 0 0 8px 8px;
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════
   METHODOLOGY PAGE SPECIFIC
   ═══════════════════════════════════════════════════════════════ */

/* Workflow steps */
.methodology-step,
.workflow-step {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    border-radius: 8px;
    padding: 1.25rem;
    padding-left: 3.5rem;
    margin: 1rem 0;
    position: relative;
    box-shadow: var(--shadow-console);
}

.methodology-step::before,
.workflow-step::before {
    content: counter(step-counter, decimal-leading-zero);
    counter-increment: step-counter;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--claude-orange);
    background: var(--claude-warm);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.methodology-steps,
.workflow {
    counter-reset: step-counter;
}

/* Command examples */
.command-example {
    background: var(--console-text);
    color: #f5f5f4;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 1rem 0;
    position: relative;
    overflow-x: auto;
}

.command-example::before {
    content: '$ ';
    color: var(--claude-orange-light);
    font-weight: 700;
}

/* Tips and notes in methodology */
.tip-box,
.note-box {
    background: var(--claude-warm);
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 3rem;
    margin: 1.5rem 0;
    position: relative;
}

.tip-box::before {
    content: '\e993';
    font-family: 'primeicons';
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--claude-orange);
    font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   TERMINAL OUTPUT STYLING
   ═══════════════════════════════════════════════════════════════ */

.terminal-output {
    background: var(--console-text);
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-console-md);
}

.terminal-header {
    background: #292524;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #fbbf24; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
    color: var(--console-text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-left: auto;
}

.terminal-body {
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #f5f5f4;
    line-height: 1.6;
}

.terminal-line {
    display: block;
    margin: 0.25rem 0;
}

.terminal-prompt {
    color: var(--claude-orange-light);
}

.terminal-command {
    color: #f5f5f4;
}

.terminal-output-text {
    color: #a1a1aa;
}

.terminal-success {
    color: #4ade80;
}

.terminal-error {
    color: #f87171;
}

/* ═══════════════════════════════════════════════════════════════
   KEYBOARD SHORTCUTS DISPLAY
   ═══════════════════════════════════════════════════════════════ */

kbd {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--console-bg-secondary);
    border: 1px solid var(--console-border);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 0.2em 0.5em;
    color: var(--console-text);
    box-shadow: 0 1px 0 var(--console-border);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURE CARDS
   ═══════════════════════════════════════════════════════════════ */

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

.feature-card {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition-console);
}

.feature-card:hover {
    border-color: var(--claude-orange);
    box-shadow: var(--shadow-console-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--claude-warm);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    color: var(--claude-orange);
    font-size: 1.5rem;
}

.feature-card h4 {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.feature-card p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--console-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   STATUS INDICATORS
   ═══════════════════════════════════════════════════════════════ */

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-success {
    background: #ecfdf5;
    color: var(--console-success);
}

.status-success::before {
    background: var(--console-success);
}

.status-warning {
    background: #fffbeb;
    color: var(--console-warning);
}

.status-warning::before {
    background: var(--console-warning);
}

.status-error {
    background: #fef2f2;
    color: var(--console-error);
}

.status-error::before {
    background: var(--console-error);
}

.status-info {
    background: #f0f9ff;
    color: var(--console-info);
}

.status-info::before {
    background: var(--console-info);
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION - CONSOLE STYLE (Preserving existing layout)
   ═══════════════════════════════════════════════════════════════ */

nav {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    box-shadow: var(--shadow-console);
}

nav.scrolled {
    box-shadow: var(--shadow-console-md);
}

nav h2 {
    color: var(--console-text);
    font-family: var(--font-mono);
    font-size: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

nav h2::before {
    content: '$ ';
    color: var(--claude-orange);
    font-weight: 700;
}

nav h2::after {
    color: var(--claude-orange);
}

nav h2:hover {
    background: var(--console-bg-secondary);
}

nav.collapsed {
    box-shadow: var(--shadow-console-md);
}

nav.collapsed h2:hover {
    background: var(--console-text);
}

nav.collapsed h2::before {
    content: '$ TOC';
    color: var(--claude-orange);
}

nav ul li a {
    color: var(--console-text-secondary);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: var(--transition-console);
}

nav ul li a:hover,
nav ul li a:focus {
    background: var(--console-bg-secondary);
    color: var(--console-text);
    transform: translateX(3px);
}

nav ul li a:hover {
    background: var(--claude-orange);
    color: white;
}

nav ul li a.active {
    background: var(--console-text);
    color: white;
}

/* Nav link icons */
nav ul li a .icon {
    color: var(--claude-orange);
}

nav ul li a:hover .icon,
nav ul li a.active .icon {
    color: white;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--console-bg-secondary);
    border: 1px solid var(--console-border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.breadcrumbs a {
    color: var(--claude-orange);
}

.breadcrumbs .separator {
    color: var(--console-border);
}

.breadcrumbs .current {
    color: var(--console-text);
}

/* TOC */
.toc {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
}

.toc-title {
    color: var(--console-text);
    font-family: var(--font-mono);
}

.toc ul li a {
    color: var(--console-text-secondary);
}

.toc ul li a:hover {
    background: var(--console-bg-secondary);
    color: var(--claude-orange);
}

/* Pagination */
.pagination {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    box-shadow: var(--shadow-console);
}

.pagination-prev,
.pagination-next {
    background: var(--console-text);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    border-radius: 6px;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: var(--claude-orange);
}

.pagination-info {
    font-family: var(--font-mono);
    color: var(--console-text-muted);
}

/* Chunk navigation */
.chunk-nav {
    background: var(--console-bg-secondary);
    border: 1px solid var(--console-border);
}

.chunk-nav-header {
    color: var(--console-text);
    font-family: var(--font-mono);
}

.chunk-nav-links a {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    color: var(--console-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.chunk-nav-links a:hover {
    background: var(--console-text);
    color: white;
}

.chunk-nav-links a.current {
    background: var(--claude-orange);
    border-color: var(--claude-orange);
    color: white;
}

/* Scroll progress bar */
.scroll-progress {
    background: linear-gradient(90deg, var(--claude-orange), var(--claude-orange-light));
}

/* ═══════════════════════════════════════════════════════════════
   ARTWORK OVERRIDES - DISABLE GRADIENT ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

/* Override gradient animations for console aesthetic */
.glass-card,
.card,
.info-box,
.highlight,
.success-box,
.warning-box,
.error-box {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Remove animated gradient from header */
header {
    animation: none !important;
}

header::before {
    animation: none !important;
    display: none !important;
}

/* Disable morphing blob animations */
.morphing-blob {
    animation: none;
    background: var(--claude-orange);
}

/* Simplify glow effects */
.soft-glow {
    box-shadow: var(--shadow-console-md);
}

.glow-on-hover:hover {
    animation: none;
    box-shadow: var(--shadow-console-lg);
}

/* Toast notifications - console style */
.toast {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    border-radius: 8px;
    box-shadow: var(--shadow-console-lg);
    font-family: var(--font-sans);
    backdrop-filter: none;
}

.toast-success {
    border-left: 4px solid var(--console-success);
}

.toast-error {
    border-left: 4px solid var(--console-error);
}

.toast-warning {
    border-left: 4px solid var(--console-warning);
}

.toast-info {
    border-left: 4px solid var(--console-info);
}

/* Skeleton loading - console style */
.skeleton {
    background: linear-gradient(90deg,
        var(--console-bg-secondary) 25%,
        var(--console-border) 50%,
        var(--console-bg-secondary) 75%);
    background-size: 200% 100%;
}

/* Fade-in animations - simplified */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 1;
    transform: none;
    transition: opacity var(--transition-console);
}

/* ═══════════════════════════════════════════════════════════════
   GUIDES PAGE SPECIFIC - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

.guide-nav {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    box-shadow: var(--shadow-console);
}

.guide-nav h3 {
    color: var(--console-text);
    font-family: var(--font-mono);
}

.guide-tabs {
    gap: 0.5rem;
}

.guide-tab {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--console-text-secondary);
    transition: var(--transition-console);
}

.guide-tab:hover {
    border-color: var(--claude-orange);
    color: var(--console-text);
}

.guide-tab.active {
    background: var(--console-text);
    border-color: var(--console-text);
    color: white;
}

.guide-content {
    background: var(--console-bg);
    border: 1px solid var(--console-border);
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   READING ENHANCEMENTS - CONSOLE STYLE
   ═══════════════════════════════════════════════════════════════ */

/* Reading progress indicator */
.reading-progress {
    background: var(--console-bg-secondary);
    border-bottom: 1px solid var(--console-border);
}

.reading-progress-bar {
    background: var(--claude-orange);
}

/* Estimated reading time */
.reading-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--console-text-muted);
    background: var(--console-bg-secondary);
    border: 1px solid var(--console-border);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   FINAL POLISH - MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════════════════ */

/* Smooth hover transitions */
a,
button,
.btn,
.card,
nav ul li a,
.fnav-item {
    transition: all var(--transition-console);
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--claude-orange);
    outline-offset: 2px;
}

/* Remove outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Container max-width for better readability on large screens */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Improve text rendering */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
