/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.title {
    font-size: 2.5em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.3;
}

.authors {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #444;
}

.author a {
    color: #2962ff;
    text-decoration: none;
}

.author a:hover {
    text-decoration: underline;
}

.affiliations {
    font-size: 1.05em;
    color: #666;
    margin-bottom: 25px;
}

.affiliations sup {
    color: #888;
}

/* Links/buttons */
.links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2962ff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #1e4bd8;
}

.btn.disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
}

.btn.disabled:hover {
    background-color: #9e9e9e;
}

/* Section styles */
section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2962ff;
}

section h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    margin-top: 30px;
}

section p {
    font-size: 1.1em;
    color: #444;
    text-align: justify;
}

/* Figure containers */
.figure-container {
    margin: 25px 0;
    text-align: center;
}

.figure-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
    min-height: 200px;
    display: block;
    margin: 0 auto;
}

.caption {
    font-size: 1em;
    color: #666;
    margin-top: 12px;
    text-align: left;
    font-style: italic;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Teaser section */
.teaser {
    background-color: #f8f9ff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 50px;
}

.teaser h2 {
    border-bottom-color: #2962ff;
}

.teaser-image {
    max-width: 90%;
}

/* Key points list */
.key-points {
    margin: 25px 0;
    padding-left: 25px;
    list-style-type: disc;
}

.key-points li {
    font-size: 1.05em;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.7;
}

.key-points li:last-child {
    margin-bottom: 0;
}

/* Abstract section */
.abstract {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #2962ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* Motivation section */
.motivation p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Results section */
.result-block {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-block:last-child {
    margin-bottom: 0;
}

/* Citation section */
.citation {
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
}

.bibtex {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    position: relative;
}

.bibtex pre {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #2962ff;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background-color: #1e4bd8;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
    color: #888;
    font-size: 0.9em;
}

footer a {
    color: #2962ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .title {
        font-size: 1.6em;
    }

    .authors {
        font-size: 1em;
    }

    section h2 {
        font-size: 1.4em;
    }

    .teaser, .abstract, .citation {
        padding: 20px;
    }

    .links {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
        text-align: center;
    }

    .caption {
        max-width: 95%;
    }
}

/* Math equations */
.MathJax {
    font-size: 1.1em !important;
}

/* Highlight text */
strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Links in text */
p a {
    color: #2962ff;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

/* Placeholder image styling */
img[src*="placeholder"], img:not([src]), img[src=""] {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
