/* Prox-E project page styles */
/* A warm, sophisticated aesthetic with terracotta and deep teal accents */

:root {
    --primary-dark: #1a1a2e;
    --primary-accent: #e07a5f;  /* Terracotta */
    --secondary-accent: #3d5a80; /* Deep blue-teal */
    --highlight-preserve: #81b29a; /* Sage green */
    --highlight-blend: #f2cc8f; /* Warm gold */
    --text-primary: #2b2d42;
    --text-secondary: #555b6e;
    --bg-light: #ffffff;
    --bg-card: #ffffff;
    --border-subtle: #e8e4df;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    background: #ffffff;
    color: var(--text-primary);
    line-height: 1.7;
}

/* Title styling */
h1.ourh1 {
    font-family: 'Space Mono', monospace;
    font-size: 64px;
    letter-spacing: -2px;
    word-spacing: 0px;
    line-height: 1.1;
    margin-top: 70px;
    margin-bottom: 10px;
    font-weight: 700;
}

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

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

h2.ourh2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 30px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 32px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

h3.method-subheading {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-accent);
    margin-bottom: 12px;
    margin-top: 20px;
}

h5.conference {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--secondary-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 12px;
}

p {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    color: var(--text-secondary);
}

/* Highlight colors for TL;DR */
.highlight-method {
    color: var(--text-primary);
    font-weight: 700;
}

.highlight-task {
    color: var(--secondary-accent);
    font-weight: 500;
}

.highlight-preserve {
    color: var(--highlight-preserve);
    font-weight: 500;
}

.highlight-blend {
    color: var(--highlight-blend);
    font-weight: 500;
}

/* Failure mode highlights */
.failure-neglect {
    color: #c0392b;
    font-weight: 700;
    font-size: 18px;
}

.failure-suppression {
    color: var(--secondary-accent);
    font-weight: 700;
    font-size: 18px;
}

.failure-list {
    list-style: none;
    padding-left: 0;
}

.failure-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.failure-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: bold;
}

.method-list {
    list-style: none;
    padding-left: 0;
}

.method-list li {
    margin-bottom: 10px;
    font-size: 17px;
}

/* Author styling */
.author-block {
    font-size: 20px;
}

.author-block a {
    color: hsl(204, 86%, 53%);
    text-decoration: none;
}

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

.authors_block {
    margin-top: 0;
    margin-bottom: 0;
}

.authors {
    margin-top: 2px;
}

.affiliations {
    margin-top: 4px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Same typography as subtitle (h2.ourh2); equal vertical rhythm (affiliations↔venue↔buttons) */
.venue-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 30px;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin: 8px auto;
    text-align: center;
    display: block;
}

/* Button styling */
.publication-links {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* No Bulma .column here — avoids extra vertical padding that skewed gap below SIGGRAPH */
.header-publication-links {
    width: 100%;
    margin: 0 auto 4px;
    padding: 0;
    text-align: center;
}

.button {
    padding: 16px 14px;
    background-color: white;
    border-radius: 24px;
    font-size: 16px;
    color: rgb(0, 0, 0);
    border: 2px solid rgb(135, 134, 134);
}

.button:hover {
    border: 2px solid rgb(0, 0, 0);
}

.link-block a {
    text-decoration: none;
    font-size: 22px;
    color: var(--text-primary);
}

/* Layout containers */
.page-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Teaser: width is capped so it actually shrinks on wide screens (plain % of parent often hits a large max). */
.introvid,
#site-teaser {
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 6px;
    margin-bottom: -10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.introvid video,
.introvid img,
#site-teaser video {
    border-radius: 12px;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Placeholder styling for results */
.placeholder-img {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--border-subtle) 0%, #d4d0c8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 18px;
    border: 2px dashed var(--border-subtle);
}

/* Content containers */
.intro-container {
    width: 65%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.intro-paragraph {
    width: 100%;
}

.intro-paragraph p {
    width: 100%;
    font-size: 20px;
    line-height: 1.8;
}

.intro-paragraph_bold {
    font-weight: 700;
    color: var(--text-primary);
}

.abstract-container {
    width: 65%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.abstract-container p {
    font-size: 17px;
}

.method-container,
.motivation-container {
    width: 65%;
    margin: 0 auto;
    margin-bottom: 30px;
}

/* Edit3D-Bench: two examples × four GLB viewers (model-viewer) */
.edit3d-bench-container {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto 30px auto;
    padding: 0 8px;
}

.edit3d-bench-intro {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 12px auto 24px auto;
    max-width: 900px;
}

.edit3d-bench-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 auto 20px auto;
    max-width: 900px;
    padding: 12px 14px;
    background: #f6f8fa;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.edit3d-legend-color {
    font-weight: 600;
}

.edit3d-legend-gray {
    color: #6b7280;
}

.edit3d-legend-blue {
    color: #2563eb;
}

.edit3d-legend-pink {
    color: #c026d3;
}

.edit3d-code {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Stacked rows of two quartets each (Edit3D-bench, etc.) */
.edit3d-bench-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    align-items: center;
}

.edit3d-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 18px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.edit3d-example {
    flex: 1 1 calc(50% - 12px);
    min-width: 260px;
    max-width: 490px;
}

.edit3d-prompt {
    font-family: 'Indie Flower', cursive;
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    min-height: 0;
}

/* Slight gap between prompt and viewer row */
.edit3d-prompt + .edit3d-quad {
    margin-top: 4px;
}

/* One framed "box" per quartet; viewers sit inside without their own borders */
.edit3d-quad {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #f8f8f8 0%, #ececec 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.edit3d-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.edit3d-viewer {
    width: 100%;
    height: 170px;
    background: transparent;
    border-radius: 6px;
    border: none;
    touch-action: none;
    display: block;
}

/* Subtle warmer cast (fox original_slat); tune filters if needed */
.edit3d-viewer.edit3d-viewer-warm-tone {
    filter: brightness(0.95) sepia(0.11) saturate(1.20) hue-rotate(-10deg);
}

.edit3d-mesh-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    margin-top: 6px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .edit3d-example {
        flex: 1 1 100%;
        max-width: none;
    }

    .edit3d-quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .edit3d-viewer {
        height: 190px;
    }
}

@media (max-width: 480px) {
    .edit3d-viewer {
        height: 160px;
    }
}

.ack-container {
    width: 65%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.bib-container {
    width: 65%;
    margin: 0 auto;
    margin-bottom: 30px;
}

/* Figure styling */
.im_container {
    margin: 20px 0;
}

.im_container_wide {
    width: 120%;
    margin-left: -10%;
}

/* ~72% of column: same visual size as 60% image inside 120% wide, without oversized frame */
.im_container_narrow {
    width: 72%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.im_container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Method figure: same outer rounded card; image inset with breathing room */
.method-structure-frame {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: clamp(16px, 2.8vw, 32px) clamp(18px, 3.2vw, 40px);
    box-sizing: border-box;
}

.method-structure-frame img {
    box-shadow: none;
    border-radius: 6px;
}

/* Shrink the card to the image (e.g. motivation) instead of full column + im_container_wide */
.method-structure-figure-tight {
    display: table;
    width: auto;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.method-structure-frame.method-structure-figure-tight {
    padding-top: clamp(16px, 2.8vw, 32px);
    padding-bottom: clamp(16px, 2.8vw, 32px);
    padding-left: clamp(3px, 0.45vw, 5px);
    padding-right: clamp(3px, 0.45vw, 5px);
}

.im_container.method-structure-figure-tight img {
    width: auto;
    max-width: min(650px, 90%);
    height: auto;
    margin: 0 auto;
}

.figure-caption {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 12px;
    text-align: center;
    font-style: italic;
}

/* Code/BibTeX styling */
.code-container {
    width: 100%;
    background-color: var(--primary-dark);
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
}

.bib-container code {
    color: #e8e4df;
    font-size: 14px;
    font-family: 'Space Mono', monospace;
    background-color: transparent;
    line-height: 1.6;
}

/* Horizontal rules */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
    margin: 40px 0 20px 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-container {
        width: 95%;
    }
    
    h1.ourh1 {
        font-size: 42px;
    }
    
    h2.ourh2 {
        font-size: 18px;
    }

    .venue-heading {
        font-size: 18px;
        margin: 8px auto;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .intro-container,
    .abstract-container,
    .method-container,
    .ack-container,
    .bib-container {
        width: 90%;
    }
    
    .im_container_wide {
        width: 100%;
        margin-left: 0;
    }
    
    .introvid,
    #site-teaser {
        max-width: 560px;
        width: 100%;
    }
    
    .author-block {
        font-size: 16px;
    }
    
    .intro-paragraph p {
        font-size: 17px;
    }
    
    .placeholder-img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    h1.ourh1 {
        font-size: 32px;
    }
    
    .button {
        padding: 10px 14px;
        font-size: 13px;
    }
}
