/* ===== MindJourney-inspired Academic Project Page ===== */
/* Typography: 3 sizes only - Large (titles), Medium (headings), Regular (body) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;                /* Regular size */
    line-height: 1.7;
    color: #222;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Header ===== */
.header {
    padding: 80px 0 60px;
    text-align: center;
}

.title {
    font-size: 56px;                /* Large size */
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 28px;                /* Medium size */
    font-weight: 400;
    color: #444;
    margin-bottom: 24px;
    line-height: 1.4;
}

.venue {
    display: inline-block;
    font-size: 28px;                /* Medium size */
    font-weight: 600;
    color: #111;
    margin-bottom: 32px;
}

.authors {
    font-size: 18px;                /* Regular size */
    color: #333;
    margin-bottom: 12px;
    line-height: 1.6;
}

.author {
    white-space: nowrap;
}

.author sup {
    color: #666;
}

.affiliations {
    font-size: 18px;                /* Regular size */
    color: #555;
    margin-bottom: 10px;
}

.equal-contrib {
    font-size: 18px;                /* Regular size */
    color: #666;
    margin-bottom: 32px;
}

/* ===== Buttons ===== */
.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 18px;                /* Regular size */
    font-weight: 600;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #000;
    text-decoration: none;
}

.btn i {
    font-size: 18px;                /* Regular size */
}

/* ===== TL;DR ===== */
.tldr-section {
    padding: 48px 0;
    background: #f8f9fa;
}

.tldr {
    font-size: 18px;                /* Regular size */
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    color: #333;
}

.tldr strong {
    color: #1a73e8;
}

.tldr em {
    font-style: normal;
    background: linear-gradient(180deg, transparent 60%, rgba(26, 115, 232, 0.15) 60%);
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 28px;                /* Medium size */
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: #111;
}

/* ===== Abstract ===== */
.abstract {
    padding: 60px 0;
}

.abstract-text {
    font-size: 18px;                /* Regular size */
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.abstract-text strong {
    color: #111;
}

.abstract-text em {
    font-style: italic;
}

/* ===== Video ===== */
.video-section {
    padding: 0 0 60px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Teaser ===== */
.teaser {
    padding: 0 0 60px;
}

.teaser-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.teaser-caption {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;                /* Regular size */
    color: #555;
    line-height: 1.7;
}

/* ===== Method ===== */
.method {
    padding: 60px 0;
    background: #f8f9fa;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.method-item {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.method-item h3 {
    font-size: 18px;                /* Regular size (bold) */
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
}

.method-item p {
    font-size: 18px;                /* Regular size */
    color: #444;
    line-height: 1.7;
}

.method-item strong {
    color: #1a73e8;
}

/* ===== Results ===== */
.results {
    padding: 60px 0;
}

.results-subtitle {
    font-size: 28px;                /* Medium size */
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    margin-top: 48px;
    color: #111;
}

.results-subtitle:first-of-type {
    margin-top: 0;
}

.results-description {
    text-align: center;
    font-size: 18px;                /* Regular size */
    color: #555;
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

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

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-headers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 10px 6px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

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

.gallery-headers span {
    font-size: 11px;                /* Small (exception for tight space) */
    font-weight: 600;
    color: #333;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gallery-label {
    padding: 10px;
    text-align: center;
    font-size: 18px;                /* Regular size */
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    margin: 0;
}

/* Gallery Navigation */
.gallery-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-btn {
    padding: 10px 20px;
    font-size: 18px;                /* Regular size */
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-btn:hover {
    border-color: #333;
    background: #f8f9fa;
}

.gallery-page {
    font-size: 18px;                /* Regular size */
    font-weight: 500;
    color: #555;
}

.references {
    text-align: center;
    font-size: 18px;                /* Regular size */
    color: #666;
    margin-bottom: 32px;
}

/* Editing Grid */
.editing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.editing-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.editing-item img {
    width: 100%;
    height: auto;
    display: block;
}

.editing-item p {
    padding: 12px;
    text-align: center;
    font-size: 18px;                /* Regular size */
    font-weight: 500;
    color: #444;
    background: #f8f9fa;
    margin: 0;
}

/* ===== BibTeX ===== */
.bibtex {
    padding: 60px 0;
    background: #f8f9fa;
}

.bibtex-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.bibtex-wrapper pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    font-size: 14px;                /* Code size (monospace exception) */
    line-height: 1.6;
}

.bibtex-wrapper code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    color: #333;
}

/* ===== Acknowledgements ===== */
.acknowledgements {
    padding: 48px 0;
}

.acknowledgements p {
    text-align: center;
    font-size: 18px;                /* Regular size */
    color: #666;
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    border-top: 1px solid #e5e7eb;
}

.footer p {
    text-align: center;
    font-size: 18px;                /* Regular size */
    color: #666;
}

/* ===== Click Fullscreen (Desktop Only) ===== */
/* Grey overlay */
.zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(128, 128, 128, 0.9);
    z-index: 9998;
}

.zoom-overlay.active {
    display: block;
}

@media (min-width: 769px) {
    .zoomable-img {
        cursor: zoom-in;
    }
    
    .zoomable-img.zoomed {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 95vw;
        max-height: 95vh;
        width: auto;
        height: auto;
        z-index: 9999;
        border-radius: 8px;
        cursor: zoom-out;
        background: #fff;
        padding: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .gallery-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 60px 0 48px;
    }
    
    .title {
        font-size: 42px;            /* Large - scaled */
    }
    
    .subtitle,
    .venue,
    .section-title,
    .results-subtitle {
        font-size: 22px;            /* Medium - scaled */
    }
    
    body,
    .authors,
    .affiliations,
    .equal-contrib,
    .btn,
    .abstract-text,
    .teaser-caption,
    .method-item h3,
    .method-item p,
    .results-description,
    .gallery-label,
    .gallery-btn,
    .gallery-page,
    .references,
    .editing-item p,
    .acknowledgements p,
    .footer p {
        font-size: 16px;            /* Regular - scaled */
    }
    
    .abstract-text {
        text-align: left;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .editing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 32px;            /* Large - mobile */
    }
    
    .subtitle,
    .venue,
    .section-title,
    .results-subtitle {
        font-size: 20px;            /* Medium - mobile */
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .gallery-headers span {
        font-size: 10px;
    }
}
