* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
}

.hero-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: white;
    padding: 20px;
}

.content {
    padding: 40px 60px 60px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #1a1a1a;
}

.authors {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.affiliations {
    text-align: center;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.affiliations div {
    margin-bottom: 4px;
}

.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: normal;
    text-align: center;
}

.link-button:hover {
    background: #0056b3;
}

.link-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.link-button span {
    word-break: break-word;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #1a1a1a;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.abstract {
    text-align: justify;
    line-height: 1.8;
}

/* Stats Counter Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 50px 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

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

.stat-label {
    font-size: 1.1em;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-footer {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2em;
    color: #666;
    font-style: italic;
    margin-top: 20px;
}

.results-figure {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
}

.results-text {
    line-height: 1.8;
    text-align: justify;
}

.citation-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    position: relative;
}

.citation-box pre {
    white-space: pre-wrap;
    word-break: break-word;
    padding-right: 80px;
}

.copy-button {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.2s;
}

.copy-button:hover {
    background: #0056b3;
}

.copy-button.copied {
    background: #28a745;
}

.copy-code-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 10;
}

.copy-code-button:hover {
    background: #0056b3;
}

.copy-code-button.copied {
    background: #28a745;
}

.code-box {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    padding-right: 90px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    overflow-x: auto;
    margin-bottom: 15px;
}

.code-box pre {
    margin: 0;
    white-space: pre;
}

.code-box code {
    display: block;
}

@media (max-width: 768px) {
    .hero-image {
        max-height: 200px;
        padding: 15px;
    }

    .content {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.75em;
    }

    h2 {
        font-size: 1.5em;
    }

    .authors {
        font-size: 1em;
    }

    .affiliations {
        font-size: 0.85em;
    }

    .links {
        gap: 10px;
    }

    .link-button {
        font-size: 0.9em;
        padding: 8px 15px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 30px 15px;
    }

    .stat-number {
        font-size: 2.2em;
    }

    .stat-label {
        font-size: 0.9em;
    }

    .citation-box {
        font-size: 0.8em;
    }

    .citation-box pre {
        padding-right: 10px;
    }

    .copy-button {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .code-box {
        font-size: 0.8em;
        padding-right: 10px;
    }

    .copy-code-button {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
}