/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: #000;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.venue {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
    font-weight: 500;
}

.authors {
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.author {
    margin: 0 2px;
    color: #333;
}

.author a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.author a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.author sup {
    font-size: 0.75em;
    color: #666;
    margin-left: 1px;
}

.affiliations {
    margin-bottom: 20px;
    margin-top: 15px;
    font-size: 1rem;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.affiliation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.affiliation-logo {
    height: 28px;
    width: auto;
    vertical-align: middle;
    opacity: 0.9;
}

.affiliation span {
    color: #666;
    font-weight: 400;
}

.affiliation a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.affiliation a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.affiliation sup {
    font-size: 0.85em;
    margin-right: 2px;
}

.equal-contribution {
    margin-top: 8px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

/* Links */
.links {
    margin-bottom: 30px;
    margin-top: 20px;
}

.link-button {
    display: inline-block;
    margin: 0 6px;
    padding: 10px 22px;
    background-color: #fff;
    color: #1a73e8;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #1a73e8;
}

.link-button:hover {
    background-color: #1a73e8;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

/* TL;DR */
.tldr {
    background: #f8f9fa;
    padding: 18px 28px;
    border-radius: 4px;
    border-left: 4px solid #1a73e8;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.65;
    color: #333;
}

.tldr strong {
    color: #000;
    font-weight: 600;
}

/* Section Styles */
.section {
    margin-bottom: 12px;
}

.section h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 0;
    color: #111;
    border-bottom: 1px solid #e8eaed;
    padding-bottom: 6px;
}

.section p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 8px;
    margin-top: 4px;
    color: #3c4043;
    font-weight: 300;
}

.section p a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 400;
}

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

.abstract-text {
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: left;
    color: #3c4043;
    font-weight: 300;
    max-width: 100%;
}

/* Media Placeholders */
.media-placeholder {
    background-color: #f8f8f8;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    margin: 20px 0;
    font-size: 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.media-placeholder.large {
    min-height: 300px;
    font-size: 1.1rem;
}

.media-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-top: 10px;
    line-height: 1.4;
}

.hero-media {
    margin: 40px 0;
}

/* Media Grids */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.comparison-grid .media-placeholder {
    min-height: 150px;
    font-size: 0.9rem;
}


/* Footer */
.footer {
    margin-top: 80px;
    padding-top: 30px;
    padding-bottom: 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.footer p {
    margin: 8px 0;
}

.footer a {
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .author {
        margin: 0 5px;
        display: inline-block;
        font-size: 0.95rem;
    }
    
    .affiliation {
        margin: 5px 10px;
        justify-content: center;
    }
    
    .affiliations {
        flex-direction: column;
        gap: 8px;
    }
    
    .link-button {
        margin: 5px 4px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .tldr {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .abstract-text {
        padding: 20px;
        font-size: 1rem;
    }
    
    .media-placeholder {
        padding: 30px 15px;
        min-height: 150px;
    }
    
    .media-placeholder.large {
        min-height: 200px;
    }
    
    .figure-caption {
        font-size: 0.85rem;
        padding: 0 5px;
    }
    
    .bibtex-code {
        font-size: 0.75rem;
        padding: 10px;
    }
    
    .video-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    .copy-button {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .bibtex-code {
        padding-top: 15px;
    }
    
    .side-by-side-container {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 20px;
    }
    
    .figure-small {
        max-width: 200px;
    }
    
    .figure-medium {
        max-width: 100%;
    }
    
    .results-table {
        font-size: 0.7rem;
    }
    
    .results-table thead th {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .results-table .dataset-row th {
        padding: 6px 3px;
        font-size: 0.65rem;
    }
    
    .results-table tbody td {
        padding: 8px 4px;
    }
    
    .category-label {
        font-size: 0.75rem;
        padding: 6px 4px;
    }
    
    .table-note {
        font-size: 0.8rem;
    }
    
}

@media (max-width: 480px) {
    .title {
        font-size: 1.75rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    .media-placeholder {
        padding: 20px 10px;
        min-height: 120px;
        font-size: 0.9rem;
    }
    
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background-color: #007acc;
    color: white;
}

/* Focus styles for accessibility */
.link-button:focus {
    outline: 2px solid #007acc;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .container {
        max-width: none;
        padding: 0;
    }
    
    .link-button {
        border: 1px solid #ccc;
    }
    
    .media-placeholder {
        border: 1px solid #ccc;
        background-color: #fff;
    }
}


/* Basic styling for the section structure */
.section {
    padding: 8px 0;
    margin-bottom: 12px;
}

/* Styling for the video sections */
.video-category {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* The core grid layout using CSS Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 15px; /* Space between videos */
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Styling for the video elements */
.video-grid video {
    width: 100%;
    /* Maintain aspect ratio and cover the container */
    height: auto; 
    border-radius: 8px; /* Optional: smooth corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #000; /* Default background for videos */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-grid video:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Figure Container Styles */
.figure-container {
    margin: 15px 0;
    text-align: center;
}

.figure-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    background-color: #fff;
}

/* Full-bleed content utility for viewport-wide media */
.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.full-bleed img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

.figure-small {
    max-width: 300px;
}

.figure-medium {
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Side-by-Side Layout for Text and Figure */
.side-by-side-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    margin: 15px 0;
}

.side-by-side-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-by-side-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.side-by-side-text a {
    color: #007acc;
    text-decoration: none;
    font-weight: 500;
}

.side-by-side-text a:hover {
    text-decoration: underline;
}

.side-by-side-figure {
    text-align: center;
}

.side-by-side-figure .figure-image {
    margin-bottom: 10px;
}

.side-by-side-figure .figure-caption {
    text-align: left;
    padding: 0;
}

/* 70/30 side-by-side layout variant */
.side-by-side-70-30 {
    grid-template-columns: 7fr 3fr;
}

.figure-caption {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    text-align: left;
    margin-top: 10px;
    padding: 0 10px;
}

/* Abstract Box */
.abstract-box {
    background-color: #f8fbff; /* subtle highlight */
    border: 1px solid #e4eef9;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin: 10px 0 6px 0;
}

.abstract-box p {
    margin: 8px 0;
}

.abstract-box .tldr-line {
    font-weight: 600;
    color: #111;
}

/* BibTeX Section */
.bibtex-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.copy-button {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 8px 16px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.copy-button:hover {
    background-color: #005fa3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.3);
}

.copy-button:active {
    transform: translateY(0);
}

.bibtex-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #2d2d2d;
    overflow-x: auto;
    white-space: pre;
    margin: 0;
    padding: 15px;
    padding-top: 50px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

/* Video Category Styling Enhancement */
.video-category h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2a2a2a;
}

/* Table Styling - Clean Modern Design */
.table-container {
    margin: 15px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.results-table thead {
    background-color: #f8f9fa;
}

.results-table thead th {
    padding: 14px 10px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.85rem;
}

.results-table .dataset-row th {
    background-color: #fafafa;
    padding: 10px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.results-table tbody td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.results-table tbody tr:hover {
    background-color: #fafafa;
}

.metric-name {
    font-weight: 600;
    text-align: left !important;
    padding-left: 16px !important;
    color: #444;
}

.best {
    font-weight: 700;
    color: #007acc;
}

.category-label {
    font-weight: 600;
    text-align: left !important;
    background-color: #f5f5f5;
    color: #555;
    vertical-align: middle;
    font-size: 0.8rem;
    padding-left: 16px !important;
    border-right: 2px solid #e0e0e0;
}

.category-row {
    border-top: 2px solid #e0e0e0;
}

.table-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 6px;
    color: #2a2a2a;
}

/* Compact container spacing for Bulma containers on this page */
.container.is-max-desktop {
    padding-top: 10px;
    padding-bottom: 10px;
}
