/* ============================================================================
   Benchmarks-Specific Styles
   ============================================================================ */

body {
    font-size: 16px;
}

.container {
    max-width: 1800px;
}

/* ============================================================================
   Tab Buttons
   ============================================================================ */

.tab-button {
    padding: 4px 10px;
    font-size: 0.8125rem;
    font-family: var(--font-body);
    font-weight: 500;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tab-button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* ============================================================================
   Reproduce Section
   ============================================================================ */

.reproduce-content {
    padding: 16px;
}

.reproduce-content p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.reproduce-content pre {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    overflow-x: auto;
}

.reproduce-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-primary);
}

/* ============================================================================
   Content Area
   ============================================================================ */

#content {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================================================
   Results Sections
   ============================================================================ */

.results-section {
    margin-bottom: 24px;
}

.results-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding: 10px 12px;
    border-bottom: 2px solid var(--accent);
    background: var(--bg-secondary);
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-section h2:hover {
    background: var(--bg-card);
}

.results-section h2::after {
    content: '\25BC';
    font-size: 0.625rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.results-section h2.collapsed::after {
    transform: rotate(-90deg);
}

.results-section-content {
    overflow: visible;
}

.results-section-content.collapsed {
    display: none;
}

.results-section h3 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 16px;
    margin-bottom: 12px;
}

/* ============================================================================
   Hardware Info
   ============================================================================ */

.hardware-info {
    background: var(--bg-secondary);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 3px solid var(--text-muted);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hardware-info strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================================================
   Table Overrides (benchmarks-specific)
   ============================================================================ */

.table-container {
    margin-bottom: 20px;
}

table th {
    text-align: center;
}

table th:first-child {
    text-align: left;
}

table thead tr:first-child th {
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-strong);
    font-weight: 600;
    color: var(--text-primary);
}

table thead tr:nth-child(2) th {
    background: var(--bg-secondary);
    font-size: 0.8125rem;
}

table th.sortable::after {
    content: ' \21C5';
    font-size: 0.75rem;
    opacity: 0.4;
}

table th.sorted-asc::after {
    content: " \25B2";
    color: var(--accent);
    font-size: 0.625rem;
    opacity: 1;
}

table th.sorted-desc::after {
    content: " \25BC";
    color: var(--accent);
    font-size: 0.625rem;
    opacity: 1;
}

/* ============================================================================
   Crash & Empty Result Cells
   ============================================================================ */

.crash-sdk {
    color: var(--error);
}

.crash-prover {
    color: var(--error);
    font-weight: 600;
}

.empty-result {
    color: var(--text-muted);
}

/* ============================================================================
   Summary Table
   ============================================================================ */

.summary-table {
    margin-top: 16px;
}

.summary-table th {
    background: var(--bg-card);
    color: var(--text-primary);
}

.summary-table .zkvm-cell {
    font-weight: 600;
    background: var(--bg-secondary);
    vertical-align: middle;
    border-right: 2px solid var(--border);
}

.summary-table .el-client-subrow {
    padding-left: 20px;
    font-size: 0.875rem;
}

/* ============================================================================
   Responsive (benchmarks-specific)
   ============================================================================ */

@media (max-width: 768px) {
    .tab-button {
        flex: 1;
        min-width: 60px;
        text-align: center;
    }

    table {
        font-size: 0.8125rem;
    }

    table th, table td {
        padding: 8px;
    }
}
