/* ===== CSS Variables ===== */
:root {
    /* Colors - Light Theme */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --background-tertiary: #f1f5f9;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #0ea5e9;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 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);
    
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    /* Code Colors */
    --code-bg: #1e293b;
    --code-text: #e2e8f0;
    --code-keyword: #f472b6;
    --code-number: #34d399;
    --code-comment: #94a3b8;
    --code-string: #fbbf24;
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0 0 var(--radius) 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

/* Dark Theme */
[data-theme="dark"] {
    --background: #0f172a;
    --background-secondary: #1e293b;
    --background-tertiary: #334155;
    --surface: #1e293b;
    --surface-elevated: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --border-color: #334155;
    --border-light: #1e293b;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    
    --code-bg: #0f172a;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
    background: var(--background-secondary);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--background-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--background-tertiary);
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

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

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

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 48px;
}

.code-preview {
    width: 100%;
    max-width: 500px;
    background: var(--code-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
}

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

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-content {
    padding: 24px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--code-text);
    overflow-x: auto;
}

.code-content .keyword { color: var(--code-keyword); }
.code-content .number { color: var(--code-number); }
.code-content .comment { color: var(--code-comment); }
.code-content .string { color: var(--code-string); }

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===== About Section ===== */
.about-section {
    background: var(--background-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-icon i {
    font-size: 1.5rem;
    color: white;
}

.about-card h3 {
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-secondary);
}

/* ECL Teaser (replaces full operators on homepage) */
.ecl-teaser {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.ecl-teaser-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.ecl-teaser h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.ecl-teaser p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0;
}

.ecl-teaser code {
    background: var(--code-bg);
    color: var(--code-keyword);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* ===== Audience Section ===== */
.audience-section {
    background: var(--background);
    padding: 80px 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.audience-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.audience-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.audience-icon i {
    font-size: 2rem;
    color: white;
}

.audience-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.audience-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Explore Section ===== */
.explore-section {
    background: var(--background-secondary);
    padding: 80px 0;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.explore-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    gap: 20px;
}

.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.explore-card-featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.08));
}

.explore-card-featured:hover {
    border-color: var(--primary-dark);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.12));
}

.explore-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.explore-icon i {
    font-size: 1.5rem;
    color: white;
}

.explore-content {
    flex: 1;
}

.explore-content h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.explore-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.explore-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.explore-link i {
    transition: transform 0.2s ease;
}

.explore-card:hover .explore-link i {
    transform: translateX(4px);
}

/* ===== Quick Start Section ===== */
.quickstart-section {
    background: var(--background);
    padding: 80px 0;
}

.quickstart-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quickstart-step {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.quickstart-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.step-content h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.step-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.step-link:hover {
    color: var(--primary-dark);
}

.quickstart-connector {
    display: flex;
    align-items: center;
    padding-top: 60px;
    color: var(--text-muted);
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .quickstart-connector {
        display: none;
    }
    
    .quickstart-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .quickstart-step {
        max-width: 100%;
    }
}

/* ECL Operators */
.ecl-operators {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.ecl-operators h3 {
    margin-bottom: 24px;
    text-align: center;
}

.operator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.operator-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--background-secondary);
    border-radius: var(--radius);
    transition: var(--transition);
}

.operator-item:hover {
    background: var(--background-tertiary);
}

.operator-item code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 36px;
    background: var(--code-bg);
    color: var(--code-keyword);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
}

.operator-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Builder Section ===== */
.builder-section {
    background: var(--background);
}

.builder-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.builder-sidebar {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.builder-sidebar h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sidebar-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.template-category {
    margin-bottom: 24px;
}

.template-category h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 12px;
    background: var(--background-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.template-btn:hover {
    background: var(--background-tertiary);
    border-color: var(--primary-light);
}

.template-btn.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.template-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.template-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Builder Main */
.builder-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.builder-panel {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}

.builder-panel h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-header h3 {
    margin-bottom: 0;
}

.panel-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--background-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Description Box */
.description-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.1));
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.description-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Builder Form */
.builder-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
}

.form-placeholder i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group .label-hint {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.form-control {
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

/* Concept Search */
.concept-search {
    position: relative;
}

.concept-search-input {
    width: 100%;
}

.concept-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.concept-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--background-secondary);
}

.suggestion-item .concept-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.suggestion-item .concept-term {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: 2px;
}

.suggestion-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
}

/* ECL Output */
.ecl-display {
    background: var(--code-bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.ecl-display pre {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--code-text);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.ecl-display .keyword { color: var(--code-keyword); }
.ecl-display .number { color: var(--code-number); }
.ecl-display .comment { color: var(--code-comment); }
.ecl-display .operator { color: var(--code-keyword); }
.ecl-display .attribute { color: #60a5fa; }

/* Query Actions */
.query-actions {
    display: flex;
    gap: 16px;
}

/* Results Panel */
.results-container {
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
    text-align: center;
}

.results-placeholder i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.result-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--background-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.results-list {
    display: flex;
    flex-direction: column;
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.result-item:hover {
    background: var(--background-secondary);
}

.result-item:last-child {
    border-bottom: none;
}

.result-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.result-term {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.result-fsn {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Error State */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* ===== Examples Section ===== */
.examples-section {
    background: var(--background-secondary);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

.example-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.example-header h4 {
    color: var(--text-primary);
}

.try-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.try-btn:hover {
    background: var(--primary-dark);
}

.example-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.example-code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 16px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* ===== Resources Section ===== */
.resources-section {
    background: var(--background);
}

/* ECL Operators Section (Resources Page) */
.ecl-operators-section {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border: 2px solid var(--primary-color);
}

.ecl-operators-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ecl-operators-section h3 i {
    color: var(--primary-color);
}

.operators-intro {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.ecl-operators-section .operator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ecl-operators-section .operator-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
}

.ecl-operators-section .operator-item small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.operators-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.resource-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.resource-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.resource-icon i {
    font-size: 1.25rem;
    color: white;
}

.resource-card h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.resource-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== Footer ===== */
.footer {
    background: var(--background-secondary);
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* ===== Page Section (for multi-page layout) ===== */
.page-section {
    padding-top: 120px;
    min-height: calc(100vh - 200px);
}

/* ===== CTA Section ===== */
.cta-section {
    margin-top: 60px;
    text-align: center;
    padding: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: var(--radius-xl);
}

.cta-section h3 {
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Feedback Section ===== */
.feedback-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 32px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-color);
}

.feedback-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feedback-icon i {
    font-size: 1.75rem;
    color: white;
}

.feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feedback-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feedback-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
    max-width: 600px;
}

.feedback-content .btn {
    display: inline-flex;
}

@media (max-width: 768px) {
    .feedback-section {
        padding: 24px;
    }
    
    .feedback-content .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Nav Active State ===== */
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* ===== Syntax Examples (Examples Page) ===== */
.syntax-examples {
    margin-top: 80px;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.syntax-examples h3 {
    text-align: center;
    margin-bottom: 32px;
}

.syntax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.syntax-card {
    background: var(--background-secondary);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.syntax-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.syntax-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.syntax-card pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    overflow-x: auto;
}

/* ===== Additional Resources (Resources Page) ===== */
.additional-resources {
    margin-top: 60px;
}

.additional-resources h3 {
    margin-bottom: 24px;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.resource-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.resource-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-item-icon i {
    color: white;
    font-size: 1.25rem;
}

.resource-item-content h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.resource-item-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.resource-item-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resource-item-content a:hover {
    text-decoration: underline;
}

/* ===== Server Info (Resources Page) ===== */
.server-info {
    margin-top: 60px;
}

.server-info h3 {
    margin-bottom: 24px;
}

.server-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.server-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.server-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.server-header h4 {
    margin-bottom: 4px;
}

.server-header code {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--background-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.server-card > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.server-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.server-card ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.server-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.server-note {
    background: rgba(14, 165, 233, 0.1);
    padding: 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.server-note i {
    color: var(--info);
    margin-top: 2px;
}

/* ===== Try Button as Link ===== */
a.try-btn {
    text-decoration: none;
    display: inline-block;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    margin: 0;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--background-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.modal-loading i {
    margin-right: 8px;
}

/* Changelog Content Styling */
.changelog-content h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 24px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.changelog-content h2:first-child {
    margin-top: 0;
}

.changelog-content h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 8px;
}

.changelog-content ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.changelog-content li {
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.changelog-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.changelog-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.changelog-content a {
    color: var(--primary-color);
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    background: var(--surface);
    padding: 40px 60px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-secondary);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text-primary);
    color: var(--background);
    padding: 12px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 2000;
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--success);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-illustration {
        padding-left: 0;
        margin-top: 48px;
    }
    
    .builder-layout {
        grid-template-columns: 1fr;
    }
    
    .builder-sidebar {
        position: static;
        max-height: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .code-preview {
        max-width: 100%;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .query-actions {
        flex-direction: column;
    }
}

/* ===== Page Guide ===== */
.page-guide {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    overflow: hidden;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.guide-header:hover {
    background: rgba(99, 102, 241, 0.05);
}

.guide-header i:first-child {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.guide-header span {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.guide-toggle {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--surface);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.guide-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.guide-toggle i {
    transition: transform 0.3s ease;
}

.page-guide.collapsed .guide-toggle i {
    transform: rotate(180deg);
}

.guide-content {
    padding: 0 20px 20px;
    transition: all 0.3s ease;
}

.page-guide.collapsed .guide-content {
    display: none;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.guide-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.guide-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.guide-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-icon i {
    color: white;
    font-size: 0.9rem;
}

.guide-text {
    flex: 1;
    min-width: 0;
}

.guide-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.guide-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ===== ECL Query Anatomy Panel ===== */
.anatomy-panel {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(14, 165, 233, 0.03));
}

.anatomy-header {
    cursor: pointer;
    user-select: none;
}

.anatomy-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--background-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.anatomy-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.anatomy-toggle i {
    transition: transform 0.3s ease;
}

.anatomy-panel.collapsed .anatomy-toggle i {
    transform: rotate(-90deg);
}

.anatomy-content {
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.anatomy-panel.collapsed .anatomy-content {
    display: none;
}

.anatomy-placeholder {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.anatomy-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.anatomy-placeholder p {
    font-size: 0.95rem;
}

/* Anatomy breakdown items */
.anatomy-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anatomy-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.anatomy-item:hover {
    background: var(--background-secondary);
    transform: translateX(4px);
}

.anatomy-item.operator {
    border-left-color: var(--code-keyword);
}

.anatomy-item.concept {
    border-left-color: var(--code-number);
}

.anatomy-item.attribute {
    border-left-color: var(--secondary-color);
}

.anatomy-item.value {
    border-left-color: var(--accent-color);
}

.anatomy-item.conjunction {
    border-left-color: var(--info);
}

.anatomy-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.anatomy-item.operator .anatomy-icon {
    background: rgba(244, 114, 182, 0.15);
    color: var(--code-keyword);
}

.anatomy-item.concept .anatomy-icon {
    background: rgba(52, 211, 153, 0.15);
    color: var(--code-number);
}

.anatomy-item.attribute .anatomy-icon {
    background: rgba(14, 165, 233, 0.15);
    color: var(--secondary-color);
}

.anatomy-item.value .anatomy-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-color);
}

.anatomy-item.conjunction .anatomy-icon {
    background: rgba(14, 165, 233, 0.15);
    color: var(--info);
}

.anatomy-details {
    flex: 1;
    min-width: 0;
}

.anatomy-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    word-break: break-word;
}

.anatomy-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.anatomy-explanation {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.anatomy-tip {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.anatomy-tip i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Anatomy section divider */
.anatomy-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.anatomy-divider::before,
.anatomy-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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