/* ===== Lyra 2.0 aligned styles for TokenGS ===== */

:root {
    --header-height: 74px;
    --dark-background: #0d0d0d;
    --text-color: #e0e0e0;
    --heading-color: #f0f0f0;
    --subtle-text-color: #a0a0a0;
    --border-color: #333;
    --nvidia-green: #76B900;
    --accent-green: var(--nvidia-green);
}

body {
    font-family: 'Google Sans', sans-serif;
    background-color: var(--dark-background);
    color: var(--text-color);
    margin: 0;
    font-size: 16px;
}

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

main {
    padding-top: var(--header-height);
    padding-left: 5px;
    padding-right: 5px;
}

/* ===== Header ===== */

gemini-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    color: #fff;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 60px;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #fff;
}

/* ===== Typography ===== */

h1, h2, h3 {
    color: var(--heading-color);
    text-align: center;
    font-weight: 700;
}

h1 { font-size: 3.5em; line-height: 1.1; }
h2 { font-size: 2.8em; line-height: 1.2; }
h3 { font-size: 1.8em; line-height: 1.3; margin-top: 60px; }
h4 { color: var(--heading-color); text-align: center; font-weight: 500; font-size: 1.1em; }

.accent-text { color: var(--accent-green); }

p, .caption-center {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 900px;
    margin: 15px auto;
    color: var(--subtle-text-color);
    text-align: left;
}

.caption-center { text-align: center; }

#abstract p { text-align: justify; }

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 40px auto;
    width: 80%;
}

/* ===== Sections ===== */

section { padding: 0; }

/* ===== Authors ===== */

.author-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.author-row .col-4 {
    flex: 1;
    max-width: 20%;
    text-align: center;
}

.author-row a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.author-row a:hover { color: var(--accent-green); }

.affil-row {
    text-align: center;
    margin-top: 15px;
    color: var(--subtle-text-color);
}

.equal-contrib {
    font-size: 0.8em;
    color: var(--subtle-text-color);
    text-align: center;
    margin-top: 5px;
}

.submission-badge {
    display: block;
    width: fit-content;
    margin: 8px auto 0 auto;
    padding: 4px 12px;
    color: var(--accent-green);
    font-weight: 500;
    font-size: 1.5em;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ===== Pill Buttons ===== */

.pill-btn {
    background: var(--accent-green);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pill-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(118, 185, 0, 0.5);
}

/* ===== Teaser ===== */

.teaser-section {
    width: 100%;
    text-align: center;
    margin: 40px 0 30px 0;
    padding: 0;
}

.teaser-video-container {
    width: 100%;
    max-width: 854px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #000;
}

.teaser-video {
    width: 100%;
    height: auto;
    display: block;
}

.container-fullwidth {
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
}

/* ===== Tab Navigation (explore-tab style) ===== */

.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px 0;
    justify-content: center;
}

.tab-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--subtle-text-color);
    padding: 10px 18px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.95em;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-button:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.tab-button.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Navigation Dots ===== */

.nav-dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #444;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background-color 0.3s, transform 0.3s;
}

.nav-dot:hover {
    background-color: var(--subtle-text-color);
    transform: scale(1.3);
}

.nav-dot.active {
    background-color: var(--accent-green);
    transform: scale(1.2);
}

/* ===== Viewer ===== */

.viewer-image-container {
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.viewer-reference-image {
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
}

.viewer-reference-image-small { max-width: 20%; }

.viewer-frame {
    width: 100%;
    height: 55vh;
    min-height: 450px;
    border: none;
    display: block;
    background: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#dl3dv-iframe {
    width: 60%;
    height: 45vh;
    margin: 0 auto;
}

/* ===== MultiViewer ===== */

.multiviewer-container {
    position: relative;
    width: 100%;
    height: auto;
    margin: 16px 0;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
}

.multiviewer-container > div:not([style*="position: absolute"]) {
    aspect-ratio: 1;
    flex: 1;
}

/* ===== Comparison Row ===== */

.comparison-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
}

.comparison-col {
    flex: 1;
    max-width: 500px;
}

/* ===== Contributors / Citation (matches Lyra 2.0) ===== */

.contributors-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contributors-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-green);
}

.contributors-card pre {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-color);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== Footer ===== */

footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    h1 { font-size: 2.2em; line-height: 1.15; }
    h2 { font-size: 1.9em; line-height: 1.2; }
    h3 { font-size: 1.4em; line-height: 1.3; }

    .header-content { gap: 10px; }
    .header-nav ul { gap: 16px; }
    .header-nav a { font-size: 0.9em; }

    .author-row { flex-wrap: wrap; gap: 8px 16px; }
    .author-row .col-4 { max-width: 40%; }

    .viewer-frame { height: 45vh; min-height: 300px; }
    #dl3dv-iframe { width: 100%; }
    .viewer-reference-image { max-width: 80%; }
    .viewer-reference-image-small { max-width: 40%; }

    .comparison-row { flex-direction: column; }
    .comparison-col { max-width: 100%; }

    .contributors-grid { grid-template-columns: 1fr; }
}
