/* OSWorld-style CSS for GUIGuard */

:root {
    --primary-color: #5e72e4;
    --text-color: #363636;
    --link-color: #485fc7;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fff;
}

/* Hero Section */
.hero {
    padding-top: 3rem;
}

.publication-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.guiguard-title {
    color: var(--primary-color);
}

.publication-authors {
    margin-bottom: 0.5rem;
}

.publication-authors a {
    color: var(--link-color);
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
    display: inline-block;
    margin: 0.15rem 0.35rem;
}

.authors-list {
    margin-bottom: 0.75rem;
}

.affiliations-list {
    margin-top: 0.75rem;
}

.author-notes {
    color: #5c5c5c;
    margin-top: 0.5rem;
}

.publication-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.link-block {
    margin: 0.25rem;
}

.external-link {
    font-weight: 500;
}

.external-link .icon {
    margin-right: 0.25rem;
}

/* Teaser */
.teaser {
    padding-top: 0;
}

.teaser-image {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.teaser-placeholder,
.figure-placeholder {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    pointer-events: none;
}

.teaser-image .placeholder-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Sections */
.section {
    padding: 3rem 1.5rem;
}

.section:nth-child(even) {
    background-color: #fafafa;
}

.abstract-content p + p {
    margin-top: 1rem;
}

/* Figure boxes */
.figure-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.figure-box img {
    width: 100%;
    display: block;
}

.pdf-figure {
    padding: 0;
}

.pdf-embed {
    width: 100%;
    min-height: 600px;
    border: none;
}

.figure-box .placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dataset-caption {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.table-wrapper {
    margin-top: 2rem;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top: 2px solid #1f2933;
    border-bottom: 2px solid #1f2933;
    border-left: none;
    border-right: none;
}

.results-table caption {
    caption-side: bottom;
    font-weight: 600;
    margin-top: 0.75rem;
}

.results-table th,
.results-table td {
    border-bottom: 1px solid #1f2933;
    padding: 0.6rem 0.8rem;
    text-align: center;
}

.results-table th:first-child,
.results-table td:first-child {
    text-align: left;
}

.results-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.results-table strong {
    color: var(--primary-color);
}

.underline-emphasis {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: #1f2933;
    color: #1f2933;
    font-weight: 500;
}

.results-table .col-divider {
    border-right: 1px solid #1f2933;
}

.results-table .col-textbox-divider {
    border-right: 1px solid #1f2933;
}

/* BibTeX */
.bibtex-container {
    position: relative;
    background: #282c34;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

.bibtex-container pre {
    margin: 0;
    padding: 0;
    background: transparent;
}

.bibtex-container code {
    color: #abb2bf;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background: transparent;
}

.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

/* Footer */
.footer {
    padding: 2rem 1.5rem;
    background-color: #fafafa;
}

.footer a {
    color: var(--link-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .publication-title {
        font-size: 1.75rem;
    }
    
    .publication-links {
        flex-direction: column;
        align-items: center;
    }
    
    .link-block {
        width: 100%;
        max-width: 200px;
    }
    
    .link-block .button {
        width: 100%;
    }
    
    .columns.is-centered .column.is-5 {
        margin-bottom: 2rem;
    }
}
