/* StudioRecon Project Page Styles */

.publication-title {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-links {
    margin-top: 1rem;
}

.link-block {
    display: inline-block;
    margin: 0.25rem;
}

/* Video comparison grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.comparison-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.comparison-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.comparison-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Two-row comparison: GT + Ours large on top, baselines smaller below */
.comparison-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.comparison-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.video-container {
    position: relative;
}

.video-container video {
    width: 100%;
    border-radius: 4px;
}

.video-container img {
    width: 100%;
    border-radius: 4px;
}

.method-label {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #555;
}

.method-label.ours-label {
    color: #3273dc;
    font-weight: 700;
}

/* Tabs */
.tab-container {
    margin-top: 1.5rem;
}

.tab-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 0.5rem 1.2rem;
    border: 2px solid #dbdbdb;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-button:hover {
    border-color: #3273dc;
    color: #3273dc;
}

.tab-button.active {
    background: #3273dc;
    color: white;
    border-color: #3273dc;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.scene-content {
    display: none;
}

.scene-content.active {
    display: block;
}

.description-box {
    background: #f5f5f5;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Scene selector */
.scene-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.scene-button {
    padding: 0.3rem 0.8rem;
    border: 1px solid #dbdbdb;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.scene-button:hover {
    border-color: #3273dc;
}

.scene-button.active {
    background: #3273dc;
    color: white;
    border-color: #3273dc;
}

/* Teaser */
.teaser-video {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}

/* Pipeline figure */
.pipeline-figure {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
}

/* Application demos */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1rem 0;
}

.app-grid .video-container {
    text-align: center;
}

.app-label {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
    color: #363636;
}

/* Container wide for comparison sections */
.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-grid-3, .comparison-grid-4 {
        grid-template-columns: 1fr;
    }
    .app-grid {
        grid-template-columns: 1fr;
    }
    .tab-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Carousel */
.carousel .item video {
    width: 100%;
}

/* Section spacing */
.section {
    padding: 2rem 1.5rem;
}

/* BibTeX */
#bibtex pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}
