/* =====================================================
   LLM-BioEval Article Styles
   Reusable components for all article pages
   
   CONTENT PLACEMENT RULES:
   1. Text-only content: Use standard article sections with white background
   2. Non-text content (animations, charts, etc.): Place in callout sections
   3. Major result showcases: Use full-width callout sections
   4. Text width: Constrained to 850px max for readability
   5. Callout sections: Full viewport width with gradient backgrounds
   ===================================================== */

/* Layout Variables (matching layout.css) */
:root {
    /* Container Widths */
    --container-standard: 1500px;
    --container-article: 850px;
    --container-wide: 1800px;
    
    /* Consistent Spacing */
    --spacing-page-top: 60px;
    --spacing-section: 48px;
    --spacing-component: 32px;
    --spacing-element: 24px;
    --spacing-small: 16px;
    
    /* Consistent Padding */
    --padding-container: 48px;
    --padding-container-mobile: 24px;
    
    /* Header Heights */
    --navbar-height: 64px;
    --hero-padding-top: 120px;
    --hero-padding-bottom: 80px;
}

/* =====================================================
   Main Content and Page Structure
   ===================================================== */

/* Main content wrapper */
.main-content {
    min-height: calc(100vh - 64px);
    position: relative;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%; /* Ensure proper width constraint */
}

/* Page content spacing */
.page-content {
    padding-top: 0; /* Remove top padding - hero has its own padding */
    min-height: calc(100vh - 64px);
    overflow-x: hidden; /* Prevent horizontal overflow */
    width: 100%; /* Ensure proper width constraint */
}

/* =====================================================
   Hero Header Styles
   ===================================================== */

/* Hero header with integrated animation */
.hero-header {
    position: relative;
    width: 100%;
    padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
    margin-bottom: 0;
    overflow: hidden;
}

/* Hero gradient overlay */
.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.95) 0%, 
        rgba(241, 245, 249, 0.9) 25%, 
        rgba(226, 232, 240, 0.85) 50%, 
        rgba(203, 213, 225, 0.8) 100%);
    z-index: 1;
    opacity: 0.9; /* Slightly more transparent for better animation visibility */
}

/* Purple theme gradient */
.hero-header--purple::before {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%,
        rgba(168, 85, 247, 0.06) 25%,
        rgba(59, 130, 246, 0.08) 50%,
        rgba(147, 51, 234, 0.06) 75%,
        rgba(79, 172, 254, 0.08) 100%);
    opacity: 1;
}

/* Hero canvas - animation layer */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Hero content - above animation and gradient */
.hero-content {
    position: relative;
    max-width: var(--container-standard);
    margin: 0 auto;
    padding: 0 var(--padding-container);
    z-index: 2;
}

/* Hero title */
.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Hero author */
.hero-author {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.hero-author--purple {
    color: #6366f1;
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 800px;
}

/* Article container - uses standard container width */
.article-container {
    max-width: 1500px; /* var(--container-standard) */
    margin: 0 auto;
    padding: 48px 48px; /* var(--spacing-section) var(--padding-container) */
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 32px; /* var(--spacing-component) */
    align-items: start;
}

/* Article main content area */
.article-main {
    /* No max-width here, let the content define it */
}

/* Article content - constrained width for readability */
.article-content {
    max-width: 850px; /* var(--container-article) */
}

/* Article sidebar */
.article-sidebar {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    overflow-y: visible;
}

/* Single column layout when no sidebar */
.article-container:not(:has(.article-sidebar)) {
    grid-template-columns: 1fr;
}

/* =====================================================
   Article Text Styles
   ===================================================== */

/* Main article text - constrained width for readability */
.article-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--spacing-element);
    overflow-wrap: break-word; /* Break long words if needed */
    word-wrap: break-word; /* Legacy support */
}

.article-text p {
    margin-bottom: calc(var(--spacing-element) * 0.833);
}

/* Apply article-text styling to all paragraphs in article sections */
.article-content p,
.article-section-spacing p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: calc(var(--spacing-element) * 0.833);
}

/* Full-width variant for text in wide sections */
.section-wide .article-text,
.section-callout .article-text {
    max-width: none;
    width: 100%;
}

.section-wide .article-text p,
.section-callout .article-text p {
    max-width: none;
}

/* =====================================================
   Title Styles
   ===================================================== */

/* Main section title (h1) */
.main-section-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-element);
    letter-spacing: -0.02em;
    color: var(--gray-900);
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: var(--spacing-small);
}

/* Secondary section title (h2) */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-element);
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

/* Section headers with uppercase text */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-element);
}

.section-header h2 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    margin: 0;
}

/* =====================================================
   Callout Boxes (Indented)
   
   Usage Guidelines:
   - Use for supplementary information, definitions, examples
   - Use for animations and interactive elements
   - NOT for main content sections (use full-width callouts instead)
   ===================================================== */

/* Base callout style - properly indented */
.callout {
    position: relative;
    margin: var(--spacing-component) 0;
    margin-left: 120px;
    padding: var(--spacing-element) calc(var(--spacing-element) * 1.167);
    background: #FAFAFA;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    width: calc(100% - 120px);
    max-width: calc(100vw - 120px - 48px); /* Prevent viewport overflow */
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: break-word; /* Break long words if needed */
    word-wrap: break-word; /* Legacy support */
}

/* Callout with purple gradient background */
.callout-definition {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%,
        rgba(168, 85, 247, 0.06) 25%,
        rgba(59, 130, 246, 0.08) 50%,
        rgba(147, 51, 234, 0.06) 75%,
        rgba(79, 172, 254, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(8px);
}

/* Alternative gradient style */
.callout-template {
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.08) 0%,
        rgba(79, 172, 254, 0.06) 25%,
        rgba(99, 102, 241, 0.08) 50%,
        rgba(168, 85, 247, 0.06) 75%,
        rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(147, 51, 234, 0.2);
    backdrop-filter: blur(8px);
}

/* Green gradient for phenotype content */
.callout-phenotype {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.08) 0%,
        rgba(132, 204, 22, 0.06) 25%,
        rgba(16, 185, 129, 0.08) 50%,
        rgba(5, 150, 105, 0.06) 75%,
        rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(8px);
}

/* Green to yellow gradient for methodology */
.callout-methodology {
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.08) 0%,
        rgba(34, 197, 94, 0.06) 25%,
        rgba(132, 204, 22, 0.08) 50%,
        rgba(250, 204, 21, 0.06) 75%,
        rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(8px);
}

/* Compact callout variant */
.callout-compact {
    padding: 16px 20px !important;
}

/* Callout content styling */
.callout-header {
    display: none;
}

.callout-content {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-700);
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.callout-content strong {
    font-style: normal;
    font-weight: 600;
    color: var(--gray-900);
}

/* Special cases for callout headers */
.callout-definition .callout-header {
    color: #6366f1;
    font-weight: 700;
}

.callout-template .callout-header {
    color: #9333ea;
    font-weight: 700;
}

.callout-phenotype .callout-header {
    color: #10b981;
    font-weight: 700;
}

.callout-methodology .callout-header {
    color: #14b8a6;
    font-weight: 700;
}

/* =====================================================
   Full-Page Sections
   
   Usage Guidelines:
   - Use section-callout for major results, top performers, key findings
   - Use section-wide for tables and data that need more horizontal space
   - Major result showcases should use gradient backgrounds
   - Regular content stays in standard article sections
   
   Full-Width Technique:
   - width: 100vw makes the section viewport width
   - margin-left: calc(-50vw + 50%) breaks out of parent containers
   - This works by shifting the element left by half the viewport width,
     then shifting it back by half the parent's width
   - position: relative and left: 0 ensure proper alignment
   - Parent containers must have overflow-x: visible for this to work
   - To prevent horizontal scrollbars, we use a specific technique below
   ===================================================== */

/* Full Width Section Break - properly full width */
.section-full,
.section-wide {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: var(--spacing-section) 0;
    margin-bottom: var(--spacing-section);
}

/* Full-width section with callout background */
.section-callout {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: var(--spacing-section) 0;
    margin-bottom: var(--spacing-section);
    backdrop-filter: blur(8px);
}

/* Purple gradient for knowledge/hallucination themes */
.section-callout--purple {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.12) 0%,
        rgba(168, 85, 247, 0.10) 25%,
        rgba(59, 130, 246, 0.12) 50%,
        rgba(147, 51, 234, 0.10) 75%,
        rgba(79, 172, 254, 0.12) 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

/* Green gradient for phenotype themes */
.section-callout--green {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.08) 0%,
        rgba(132, 204, 22, 0.06) 25%,
        rgba(16, 185, 129, 0.08) 50%,
        rgba(5, 150, 105, 0.06) 75%,
        rgba(34, 197, 94, 0.08) 100%);
    border-top: 1px solid rgba(34, 197, 94, 0.2);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

/* Content wrapper for wide sections */
.section-full .section-content,
.section-wide__content,
.section-callout__content {
    max-width: 1500px; /* var(--container-standard) */
    margin: 0 auto;
    padding: 0 48px; /* var(--padding-container) */
}

/* Full-width variant for tables and wide content */
.section-callout__content--full-width {
    max-width: 1800px; /* var(--container-wide) */
    margin: 0 auto;
    padding: 0 48px;
}

/* Section-callout header structure */
.section-callout__header {
    margin-bottom: var(--spacing-element);
}

/* Table fade improvements for callout backgrounds */
.section-callout--purple .table-fade::after {
    background: linear-gradient(to bottom, transparent, 
        rgba(99, 102, 241, 0.15)) !important;
}

.section-callout--green .table-fade::after {
    background: linear-gradient(to bottom, transparent, 
        rgba(34, 197, 94, 0.15)) !important;
}

/* Expand button improvements for callout backgrounds */
.section-callout .expand-button {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.section-callout .expand-button:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.5)d;
}

/* Remove borders and shadows from tables in callout sections */
.section-callout .knowledge-analysis-table {
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.section-callout .knowledge-analysis-table th {
    border-bottom: none;
    background: transparent;
}

.section-callout .knowledge-analysis-table td {
    border-bottom: none;
}

.section-callout__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px 0;
    text-align: left;
    letter-spacing: -0.01em;
}

.section-callout__text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-700);
    margin: 0 0 24px 0;
}

/* =====================================================
   Article Structure
   ===================================================== */

/* Standard article section */
.article-section {
    margin-bottom: var(--spacing-section);
    scroll-margin-top: 100px;
}

/* Spacing wrapper for article components */
.article-section-spacing {
    margin-bottom: var(--spacing-component);
}

.article-section-spacing:last-child {
    margin-bottom: 0;
}

/* =====================================================
   Responsive Design
   ===================================================== */

@media (max-width: 1200px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Use mobile padding values */
    .article-container {
        padding: 48px 24px; /* var(--padding-container-mobile) */
    }
    
    .section-full .section-content,
    .section-wide__content,
    .section-callout__content {
        padding: 0 24px;
    }
    
    .hero-content {
        padding: 0 24px;
    }
    
    .navbar-inner {
        padding: 0 16px;
    }
    
    .main-section-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .article-text {
        font-size: 16px;
    }
    
    .callout {
        margin-left: 20px;
        width: calc(100% - 20px);
        max-width: calc(100vw - 40px); /* Account for padding on mobile */
        padding: var(--spacing-small) calc(var(--spacing-small) * 1.25);
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .section-callout,
    .section-wide,
    .section-full {
        padding: calc(var(--spacing-section) * 0.833) 0;
        /* Ensure full-width works on mobile */
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }
    
    .section-wide__content,
    .section-callout__content {
        padding: 0 var(--padding-container-mobile);
    }
}

/* =====================================================
   Utility Classes
   ===================================================== */

/* Force full width for specific content */
.content-full-width {
    max-width: none !important;
    width: 100% !important;
}

/* Author attribution styling */
.hero-author {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-small) * 0.625);
    margin-top: calc(var(--spacing-small) * -0.625);
}

/* Purple author for knowledge themes */
.hero-author--purple {
    color: #6366f1;
}

/* Green author for phenotype themes */
.hero-author--green {
    color: #10b981;
}

/* =====================================================
   Bar Chart Styles
   ===================================================== */

/* Standard bar chart container - used in tables */
.bar-chart-container {
    width: 100%;
    height: 24px;
    background: var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar-chart-segments {
    display: flex;
    height: 100%;
    width: 100%;
}

.bar-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bar-segment:hover {
    filter: brightness(0.95);
}

/* Bar segment colors */
.bar-segment.na { background: #e5e7eb; color: #6b7280; }
.bar-segment.limited { background: #fef3c7; color: #92400e; }
.bar-segment.moderate { background: #dbeafe; color: #1e40af; }
.bar-segment.extensive { background: #d1fae5; color: #065f46; }
.bar-segment.no-result { background: #f3f4f6; color: #6b7280; }
.bar-segment.inference-failed { background: #fee2e2; color: #991b1b; }

/* Template distribution bars - less rounded */
.template-bar-wrapper {
    position: relative;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: calc(var(--spacing-small) / 2);
}

.template-bar {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: white;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* Correlation bars - minimal rounding */
.correlation-bar {
    width: 100%;
    height: 16px;
    display: flex;
    border: 1px solid var(--gray-300);
    border-radius: 2px;
    overflow: hidden;
    background: var(--gray-50);
}

.correlation-bar-segment {
    height: 100%;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   Legend Styles
   ===================================================== */

/* Base legend style - left aligned by default */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-element);
    margin-top: var(--spacing-small);
    font-size: 13px;
    color: var(--gray-600);
}

/* Centered legend variant */
.legend--centered {
    justify-content: center;
}

/* Legend with background */
.legend--boxed {
    padding: var(--spacing-small);
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-element) * 1.167);
}

/* Legend item */
.legend-item {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-small) / 2);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Legend with border separator (for flow diagrams) */
.legend--separated {
    padding-top: var(--spacing-element);
    border-top: 1px solid var(--gray-200);
}

/* =====================================================
   Table Styles
   ===================================================== */

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    margin-bottom: var(--spacing-component);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

/* Modern table styling */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead {
    background: #FAFAFA;
    border-bottom: 2px solid var(--gray-200);
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: #FAFAFA;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Table caption/title */
.table-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-small);
}

/* =====================================================
   Paper Info Section
   ===================================================== */

/* Paper info card - styled like TOC */
.paper-info-card {
    background: #FAFAFA;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: var(--spacing-element);
    margin-top: var(--spacing-element);
}

.paper-info-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-small);
}

.paper-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paper-info-list li {
    padding: calc(var(--spacing-small) / 2) 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-600);
}

.paper-info-list li:last-child {
    border-bottom: none;
}

.paper-info-list strong {
    color: var(--gray-700);
    font-weight: 500;
}

/* =====================================================
   Figure and Chart Containers
   ===================================================== */

/* Figure wrapper with consistent spacing */
.figure {
    margin-bottom: var(--spacing-section);
}

.figure-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-small);
}

.figure-caption {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: var(--spacing-small);
    line-height: 1.6;
}

/* Chart container for interactive elements */
.chart-container {
    background: #FAFAFA;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: var(--spacing-element);
    margin-bottom: var(--spacing-component);
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */

@media (max-width: 768px) {
    .legend {
        gap: var(--spacing-small);
        font-size: 12px;
    }
    
    .legend-color {
        width: 12px;
        height: 12px;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 8px 12px;
    }
}

/* =========================
   Hero Header Styles
   ========================= */

/* Base hero header */
.hero-header {
    position: relative;
    overflow: hidden;
    padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-200);
}

/* Hero animation canvas */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0; /* Behind the gradient overlay */
}

/* Hero content - aligned with standard container */
.hero-content {
    position: relative;
    z-index: 2; /* Above both canvas (0) and gradient (1) */
    text-align: left;
    color: var(--gray-900);
    max-width: 1500px; /* var(--container-standard) */
    margin: 0 auto;
    padding: 0 48px; /* var(--padding-container) */
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-element);
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0;
}

/* Hero author styles */
.hero-author {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: var(--spacing-element);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
}

.hero-author--purple {
    background: rgba(147, 51, 234, 0.1);
    color: rgb(107, 33, 168);
}

.hero-author--green {
    background: rgba(34, 197, 94, 0.1);
    color: rgb(5, 150, 105);
}

.hero-author--yellow {
    background: rgba(250, 204, 21, 0.1);
    color: rgb(180, 83, 9);
}

/* Color transition overlays for each theme */
.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* Above canvas (0), below content (2) */
    animation: colorShift 15s ease-in-out infinite;
    opacity: 0.8; /* Make gradient slightly more transparent */
}

/* Purple theme gradient */
.hero-header--purple::before {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%,
        rgba(168, 85, 247, 0.08) 25%,
        rgba(59, 130, 246, 0.1) 50%,
        rgba(147, 51, 234, 0.08) 75%,
        rgba(79, 172, 254, 0.1) 100%);
}

/* Green theme gradient */
.hero-header--green::before {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.1) 0%,
        rgba(132, 204, 22, 0.08) 25%,
        rgba(16, 185, 129, 0.1) 50%,
        rgba(5, 150, 105, 0.08) 75%,
        rgba(34, 197, 94, 0.1) 100%);
}

/* Yellow theme gradient */
.hero-header--yellow::before {
    background: linear-gradient(135deg, 
        rgba(250, 204, 21, 0.1) 0%,
        rgba(251, 191, 36, 0.08) 25%,
        rgba(251, 146, 60, 0.1) 50%,
        rgba(245, 158, 11, 0.08) 75%,
        rgba(250, 204, 21, 0.1) 100%);
}

/* Color shift animations for each theme */
@keyframes colorShift {
    /* Animation keyframes are defined in the specific theme classes below */
}

.hero-header--purple::before {
    animation-name: colorShiftPurple;
}

.hero-header--green::before {
    animation-name: colorShiftGreen;
}

.hero-header--yellow::before {
    animation-name: colorShiftYellow;
}

@keyframes colorShiftPurple {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.1) 0%,
            rgba(168, 85, 247, 0.08) 25%,
            rgba(59, 130, 246, 0.1) 50%,
            rgba(147, 51, 234, 0.08) 75%,
            rgba(79, 172, 254, 0.1) 100%);
    }
    50% { 
        background: linear-gradient(135deg, 
            rgba(147, 51, 234, 0.12) 0%,
            rgba(79, 172, 254, 0.1) 25%,
            rgba(99, 102, 241, 0.08) 50%,
            rgba(168, 85, 247, 0.1) 75%,
            rgba(59, 130, 246, 0.12) 100%);
    }
}

@keyframes colorShiftGreen {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(34, 197, 94, 0.1) 0%,
            rgba(132, 204, 22, 0.08) 25%,
            rgba(16, 185, 129, 0.1) 50%,
            rgba(5, 150, 105, 0.08) 75%,
            rgba(34, 197, 94, 0.1) 100%);
    }
    50% { 
        background: linear-gradient(135deg, 
            rgba(5, 150, 105, 0.12) 0%,
            rgba(34, 197, 94, 0.1) 25%,
            rgba(132, 204, 22, 0.08) 50%,
            rgba(16, 185, 129, 0.1) 75%,
            rgba(250, 204, 21, 0.12) 100%);
    }
}

@keyframes colorShiftYellow {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(250, 204, 21, 0.1) 0%,
            rgba(251, 191, 36, 0.08) 25%,
            rgba(251, 146, 60, 0.1) 50%,
            rgba(245, 158, 11, 0.08) 75%,
            rgba(250, 204, 21, 0.1) 100%);
    }
    50% { 
        background: linear-gradient(135deg, 
            rgba(245, 158, 11, 0.12) 0%,
            rgba(250, 204, 21, 0.1) 25%,
            rgba(251, 191, 36, 0.08) 50%,
            rgba(251, 146, 60, 0.1) 75%,
            rgba(254, 215, 102, 0.12) 100%);
    }
}

/* Responsive hero styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-header {
        padding: var(--spacing-section) 0;
    }
}

/* =====================================================
   Footer Styles
   ===================================================== */

.footer {
    padding: 48px 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 80px;
}

.footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-standard);
    margin: 0 auto;
    padding: 0 var(--padding-container);
}

.footer-text {
    color: var(--gray-500);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--gray-900);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* =====================================================
   Knowledge Calibration Specific Styles
   ===================================================== */

/* Knowledge distribution bar colors */
.bar-segment.knowledge-na,
.knowledge-na { 
    background: #e2e3e5; 
    color: #6b7280; 
}

.bar-segment.knowledge-limited,
.knowledge-limited { 
    background: #fff3cd; 
    color: #92400e; 
}

.bar-segment.knowledge-moderate,
.knowledge-moderate { 
    background: #d1ecf1; 
    color: #1e40af; 
}

.bar-segment.knowledge-extensive,
.knowledge-extensive { 
    background: #d4edda; 
    color: #065f46; 
}

/* Loading states */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.loading-progress-bar {
    width: 30%;
    height: 100%;
    background: var(--primary, #6366f1);
    animation: loading-move 2s infinite;
}

@keyframes loading-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.loading-text {
    color: var(--gray-600);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-600);
}

.empty-state h3 {
    color: var(--gray-900);
    margin-bottom: 8px;
}

/* Knowledge analysis table styles */
.knowledge-analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 14px;
}

.knowledge-analysis-table th,
.knowledge-analysis-table td {
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.knowledge-analysis-table th {
    background: #FAFAFA;
    font-weight: 600;
}

/* Model name cell styling */
.model-name-cell {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    text-align: left;
    padding-left: 10px;
    font-size: 11px;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.chart-cell {
    padding: 4px 8px;
}

.no-data {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    font-size: 11px;
}

/* Performer cards */
.performers-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.performer-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.performer-rank {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.performer-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.performer-score {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.performer-dist-chart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.performer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.performer-card.worst .performer-rank {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Highlight classes */
.stat-value {
    display: inline-block;
    font-weight: 700;
    color: var(--gray-900);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
    margin: 0 2px;
    padding: 2px 8px;
    font-size: inherit;
}

.model-highlight {
    font-weight: 600;
    color: #7c3aed;
}

.model-lowlight {
    font-weight: 600;
    color: #dc2626;
}

/* Top performers section */
.top-performers-section {
    margin: 32px 0;
}

.worst-performer-section {
    margin: 32px 0;
}

/* Responsive performer cards */
@media (max-width: 768px) {
    .performers-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

