/* SSI Benchmark Site - Results Pages (Python/Rust specific) */

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}

h1 {
    color: #333;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--theme-color);
}

/* Language-specific colors set via CSS variables from inline style */

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

.benchmark-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s;
}

.benchmark-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.benchmark-card h3 {
    margin-top: 0;
    color: var(--theme-color);
}

.benchmark-links {
    margin-top: 15px;
}

.benchmark-links a {
    display: inline-block;
    margin-right: 15px;
    color: var(--theme-color);
    text-decoration: none;
    font-weight: 500;
}

.benchmark-links a:hover {
    text-decoration: underline;
}

.implementation-section {
    margin: 40px 0;
}

.implementation-section h2 {
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    color: var(--theme-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-links .current {
    font-weight: bold;
    color: #333;
}

.info-box {
    background: var(--theme-info-bg);
    border-left: 4px solid var(--theme-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.aggregate-section {
    background: var(--theme-info-bg);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border: 2px solid var(--theme-color);
}

.aggregate-card {
    background: #fff;
    border: 2px solid var(--theme-color);
}

.aggregate-link {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--theme-color);
}

.metadata {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.json-link {
    display: inline-block;
    margin: 10px 15px 10px 0;
    padding: 8px 16px;
    background: var(--theme-info-bg);
    color: var(--theme-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid var(--theme-color);
}

.json-link:hover {
    background: var(--theme-color);
    color: white;
}

.tip-text {
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

.chart-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 40px 0;
}

h2 {
    margin-top: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 {
    color: #555;
    margin-top: 30px;
}

/* Flamegraph preview styling */
.flamegraph-preview {
    display: block;
    width: 100%;
    height: 240px;
    border: none;
    border-radius: 6px;
    margin: 15px 0;
    overflow: hidden;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    position: relative;
    background: transparent;
    cursor: pointer;
}

.flamegraph-preview:hover {
    opacity: 1;
    transform: scale(1.02);
}

.flamegraph-preview img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 3px;
}

/* CV% quality indicators */
.cv-excellent {
    color: #2ca02c;
    font-weight: bold;
}

.cv-good {
    color: #88b04b;
}

.cv-acceptable {
    color: #f5a623;
}

.cv-poor {
    color: #ce422b;
    font-weight: bold;
}

/* Profiling Report Styles */

.report-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.report-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.report-content th,
.report-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.report-content th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.report-content tr:hover {
    background-color: #f9f9f9;
}

.report-content code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
}

.report-content h1 {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.report-content h2 {
    margin-top: 30px;
    color: #444;
}

.report-content h3 {
    color: #666;
}

.report-content hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #ddd;
}
