/* General Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2d3748;
}

h2.text {
    font-size: 2.2em;
    margin-top: 2em;
    margin-bottom: 0.8em;
    text-align: center;
    color: #2d3748;
}

h3 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

p {
    margin-bottom: 1em;
    font-size: 1.1rem;
}

a {
    color: #4c5fb4;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #667eea;
}

/* UmniBench Logo Styles */
.umnibench-logo {
    font-size: 3.5em;
    font-weight: bold;
    letter-spacing: 2px;
}

.umnibench-logo .u { color: #FF6B9D; }
.umnibench-logo .m { color: #00BCD4; }
.umnibench-logo .n { color: #3B84CC; }
.umnibench-logo .b { color: #F9CA24; }
.umnibench-logo .e { color: #6C5CE7; }
.umnibench-logo .n2 { color: #00D084; }

.umnibench-text {
    font-weight: bold !important;
}

.umnibench-text .u { color: #FF6B9D !important; }
.umnibench-text .m { color: #00BCD4 !important; }
.umnibench-text .n { color: #3B84CC !important; }
.umnibench-text .b { color: #F9CA24 !important; }
.umnibench-text .e { color: #6C5CE7 !important; }
.umnibench-text .n2 { color: #00D084 !important; }

/* Header Styles */
.header-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.header-content h1 {
    font-size: 3.5em;
    margin-bottom: 0.3em;
    color: white;
}

.header-content h2 {
    font-size: 1.8em;
    font-weight: 400;
    margin-top: 0.5em;
    margin-bottom: 1.5em;
    color: rgba(255, 255, 255, 0.95);
}

.umnibench-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Authors and Affiliations */
.authors-section,
.affiliations-section {
    font-size: 1.1rem;
    margin: 15px 0;
}

.author-block {
    margin: 0 8px;
    display: inline-block;
}

.author-block a {
    color: white;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.author-block a:hover {
    border-bottom: 1px solid white;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.button-container a.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: white;
    color: #667eea;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.button-container a.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.15), transparent);
    transition: left 0.6s ease;
}

.button-container a.button:hover::before {
    left: 100%;
}

.button-container a.button:hover {
    background: #f8f9ff;
    border-color: #667eea;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    color: #667eea;
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Highlight Section */
.highlight-section {
    margin: 30px 0;
}

.highlight-box {
    background: linear-gradient(180deg, #eef7ff 0%, #e6f2ff 100%);
    border: 2px solid #6cb6ff;
    border-radius: 16px;
    padding: 18px 22px;
    margin: 14px auto;
    box-shadow: 0 6px 14px rgba(28, 100, 242, 0.08);
    color: #1e3a8a;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
}

.highlight-box strong {
    color: #4c5fb4;
    font-weight: 600;
}

/* Framework Description */
.framework-description {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 8px;
}

.framework-description ul {
    margin: 15px 0;
    padding-left: 30px;
}

.framework-description li {
    margin: 10px 0;
    font-size: 1.05rem;
}

/* Case Example */
.case-example {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.turn-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.turn-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.turn-section h3 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 15px;
}

.turn-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prompt-box,
.qa-box {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.qa-box ul {
    margin: 10px 0 0 0;
    padding-left: 25px;
}

.qa-box li {
    margin: 5px 0;
}

/* Statistics */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.95;
}

/* Domain Distribution */
.domain-distribution {
    margin: 40px 0;
}

.domain-distribution h3 {
    text-align: center;
    margin-bottom: 20px;
}

.domain-image-container {
    text-align: center;
    margin: 20px 0;
}

.domain-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#domain-chart {
    width: 100%;
    height: 400px;
    margin: 20px 0;
}

/* Case Example Image */
.case-example-image {
    margin: 30px 0;
    text-align: center;
}

.case-example-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.case-example-image img:hover {
    transform: scale(1.02);
}

/* Evaluation Protocol */
.evaluation-protocol {
    margin: 30px 0;
}

.formula-box {
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
}

.evaluation-protocol ul {
    padding-left: 30px;
}

.evaluation-protocol li {
    margin: 10px 0;
    font-size: 1.05rem;
}

/* Leaderboard Styles */
.leaderboard-container {
    margin: 40px 0;
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
}

.leaderboard-table thead {
    background: #4a5568;
    color: white;
}

.leaderboard-table th {
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.025em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

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

.sortable-header .sort-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    font-size: 14px;
    line-height: 1;
    transform: translateY(-50%);
    color: #a0aec0;
}

.sortable-header.active .sort-indicator {
    color: white;
}

.leaderboard-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    text-align: center;
}

.leaderboard-table tbody tr {
    transition: background-color 0.15s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: #f7fafc;
}

.leaderboard-table td:first-child {
    font-weight: 600;
    text-align: left;
    color: #2d3748;
    padding-left: 20px;
    white-space: normal;
    line-height: 1.6;
}

/* Model Badges */
.model-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

.proprietary-badge {
    background: #ffd93d;
    color: #735f00;
}

.open-badge {
    background: #d4edda;
    color: #155724;
}

/* Organization Logo */
.org-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

/* Findings Section */
.findings-section {
    margin: 40px 0;
}

.finding-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.finding-box h3 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Getting Started */
.getting-started {
    margin: 30px 0;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Citation Box */
.citation-box {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.citation-box pre {
    margin: 0;
}

.citation-box code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Conclusion */
.conclusion {
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.conclusion p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5em;
    }

    .header-content h2 {
        font-size: 1.3em;
    }

    .umnibench-logo {
        font-size: 2.5em;
    }

    h2.text {
        font-size: 1.8em;
    }

    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-box {
        flex-direction: column;
        text-align: center;
    }

    .highlight-box img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .leaderboard-table {
        font-size: 12px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .header-content h1 {
        font-size: 2em;
    }

    .umnibench-logo {
        font-size: 2em;
    }
}
