﻿:root {
    --fc-bg: #f5f7fa;
    --fc-bg-2: #f8fafc;
    --fc-surface: #ffffff;
    --fc-surface-2: #f8fafc;
    --fc-surface-3: #f1f5f9;
    --fc-border: #e5e7eb;
    --fc-border-strong: #cbd5e1;
    --fc-text: #0f172a;
    --fc-text-soft: #475569;
    --fc-text-muted: #64748b;
    --fc-accent: #2563eb;
    --fc-accent-hover: #1d4ed8;
    --fc-accent-soft: #eaf2ff;
    --fc-accent-text: #1d4ed8;
    --fc-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
    --fc-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    --fc-shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.10);
    --fc-radius-sm: 10px;
    --fc-radius: 16px;
    --fc-radius-lg: 18px;
    --fc-topbar-h: 64px;
    --fc-viewport-bg-top: #f2f4f7;
    --fc-viewport-bg-bottom: #dde3ea;
    --fc-panel-min: 220px;
    --fc-panel-max: 50vw;
}

/* -----------------------------
   Global page shell
------------------------------ */

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background: var(--fc-bg);
    color: var(--fc-text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
    color: inherit;
}

.fc-navbar {
    height: var(--fc-topbar-h);
    flex: 0 0 var(--fc-topbar-h);
    border-bottom: 1px solid var(--fc-border);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

.fc-page-body {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    overflow: hidden;
}
.fc-navbar .navbar-brand {
    font-weight: 600;
    color: var(--fc-text);
}

.fc-navbar .nav-link {
    color: var(--fc-text-soft);
}

    .fc-navbar .nav-link:hover {
        color: var(--fc-text);
    }
/* -----------------------------
   Shared launch header styles
------------------------------ */

.fc-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.fc-site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fc-brand-mark {
    height: 42px; /* match previous visual height */
    width: auto; /* preserve aspect ratio */
    display: block; /* avoids inline spacing issues */
}

.fc-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.fc-brand {
    display: flex;
    align-items: center;
}

.fc-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.fc-nav-link {
    color: var(--fc-text-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

    .fc-nav-link:hover {
        color: var(--fc-text);
        text-decoration: none;
    }

    .fc-nav-link.active {
        color: var(--fc-text);
        font-weight: 600;
    }

.fc-nav-muted {
    color: #94a3b8;
    font-size: 0.95rem;
    cursor: default;
    user-select: none;
}

.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

    .fc-btn:hover {
        text-decoration: none;
    }

.fc-btn-primary {
    background: var(--fc-accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

    .fc-btn-primary:hover {
        background: var(--fc-accent-hover);
        color: #fff;
        transform: translateY(-1px);
    }

.fc-btn-secondary {
    background: #fff;
    color: var(--fc-text);
    border-color: var(--fc-border);
}

    .fc-btn-secondary:hover {
        background: var(--fc-surface-2);
        color: var(--fc-text);
    }

/* -----------------------------
   Shared page content styles
------------------------------ */

.fc-page {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 22%), linear-gradient(to bottom, #f8fafc, #f5f7fa);
}

.fc-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 56px;
}

.fc-hero {
    padding: 20px 0 12px;
}

.fc-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--fc-accent-soft);
    color: var(--fc-accent-text);
    font-size: 0.82rem;
    font-weight: 600;
}

.fc-hero-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 750;
}

.fc-hero-subtitle {
    margin: 14px 0 0;
    max-width: 820px;
    color: var(--fc-text-soft);
    font-size: 1.06rem;
    line-height: 1.65;
}

.fc-search-wrap {
    margin-top: 28px;
}

.fc-search-box {
    position: relative;
    max-width: 760px;
}

.fc-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #94a3b8;
}

.fc-search-input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    background: rgba(255, 255, 255, 0.9);
    padding: 0 18px 0 48px;
    font-size: 1rem;
    color: var(--fc-text);
    box-shadow: var(--fc-shadow-sm);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .fc-search-input:focus {
        border-color: #93c5fd;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    }

.fc-section {
    margin-top: 34px;
}

.fc-section-head {
    margin-bottom: 18px;
}

.fc-section-title {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.fc-section-subtitle {
    margin: 8px 0 0;
    color: var(--fc-text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.fc-empty {
    margin-top: 12px;
    padding: 24px;
    border: 1px dashed var(--fc-border-strong);
    border-radius: var(--fc-radius);
    background: rgba(255, 255, 255, 0.7);
    color: var(--fc-text-muted);
    text-align: center;
}

/* -----------------------------
   Shared card / chip styles
------------------------------ */

.fc-card {
    display: block;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--fc-shadow);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    height: 100%;
}

    .fc-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--fc-shadow-lg);
        border-color: #d7dee8;
        text-decoration: none;
        color: inherit;
    }

.fc-card-featured {
    background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}

.fc-card-image-wrap {
    aspect-ratio: 1 / 1;
    background: linear-gradient(to bottom, #f1f5f9, #e9eef5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fc-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fc-card-image-placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

.fc-card-body {
    padding: 16px 16px 18px;
}

.fc-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.fc-card-title {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.fc-card-desc {
    margin: 10px 0 0;
    color: var(--fc-text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.35em;
}

.fc-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
}

.fc-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.fc-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1;
}

.fc-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 280px));
    gap: 22px;
    align-items: start;
    justify-content: start;
}

    .fc-featured-grid .fc-card {
        width: 280px;
        max-width: 280px;
    }

.fc-sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
    gap: 20px;
    align-items: start;
    justify-content: start;
}

    .fc-sample-grid .fc-card {
        width: 260px;
        max-width: 260px;
    }

/* -----------------------------
   Viewer shell
------------------------------ */

#fcApp {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--fc-bg);
    color: var(--fc-text);
}

.fc-topbar {
    flex: 0 0 auto;
    padding: 10px 15px;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--fc-text);
}

.fc-main {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    overflow: hidden;
    background: var(--fc-bg);
}

.fc-left,
.fc-right {
    background: var(--fc-surface);
    color: var(--fc-text);
    display: flex;
    flex-direction: column;
    min-width: var(--fc-panel-min);
    max-width: var(--fc-panel-max);
    min-height: 0;
    overflow: hidden;
    flex: 0 0 auto;
}

.fc-left {
    border-right: 1px solid var(--fc-border);
    width: 320px;
}

.fc-right {
    border-left: 1px solid var(--fc-border);
    width: 320px;
}

.fc-splitter {
    width: 6px;
    flex: 0 0 6px;
    min-width: 6px;
    cursor: col-resize;
    background: #eef2f7;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

    .fc-splitter:hover,
    .fc-splitter.is-dragging {
        background: #e2e8f0;
    }

    .fc-splitter::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 2px;
        width: 2px;
        background: #cbd5e1;
    }

.fc-editor-shell {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    overflow: hidden;
}

.fc-editor-toolbar {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 5px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--fc-border);
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.fc-editor-toolbar-left,
.fc-editor-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fc-editor-toolbar button {
    height: 25px;
    padding: 0 8px;
    border: 1px solid var(--fc-border);
    border-radius: 7px;
    background: #ffffff;
    color: var(--fc-text-soft);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

    .fc-editor-toolbar button:hover {
        background: var(--fc-surface-2);
        color: var(--fc-text);
        border-color: var(--fc-border-strong);
    }

    .fc-editor-toolbar button:active {
        transform: translateY(1px);
    }

.fc-editor-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: var(--fc-text-soft);
    font-size: 12px;
    line-height: 1;
    user-select: none;
    cursor: pointer;
}

.fc-editor-toolbar input[type="checkbox"] {
    margin: 0;
}

#editor {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}
.fc-viewer-shell {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.fc-center {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    overflow: hidden;
    background: var(--fc-bg);
    position: relative;
}

.fc-center-viewer {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.55), transparent 34%),
        linear-gradient(to bottom, #f4f6f9 0%, #e8edf3 52%, #d9e0e8 100%);
}

.fc-viewer-toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    box-shadow: var(--fc-shadow-sm);
    max-width: calc(100% - 20px);
}

    .fc-viewer-toolbar button {
        background: #fff;
        color: var(--fc-text-soft);
        border: 1px solid var(--fc-border);
        border-radius: 8px;
        padding: 4px 8px;
        cursor: pointer;
        font-size: 12px;
    }

        .fc-viewer-toolbar button:hover {
            background: var(--fc-surface-2);
            color: var(--fc-text);
        }

        .fc-viewer-toolbar button.is-active {
            background: #eef2ff;
            border-color: #c7d2fe;
            color: #3730a3;
        }

.fc-viewer-sep {
    width: 1px;
    height: 18px;
    background: var(--fc-border-strong);
    margin: 0 6px;
}
.fc-viewer-empty-hint {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: min(520px, calc(100% - 48px));
    padding: 18px 22px;
    border: 1px solid var(--fc-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--fc-shadow-sm);
    pointer-events: none;
    text-align: center;
}

/* Title */
.fc-viewer-empty-title {
    font-size: 1rem;
    color: var(--fc-text);
    letter-spacing: -0.01em;
}

    .fc-viewer-empty-title strong {
        font-weight: 600;
        color: var(--fc-text);
    }

/* Actions */
.fc-viewer-empty-actions {
    font-size: 0.9rem;
    color: var(--fc-text-soft);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Footer note */
.fc-viewer-empty-note {
    font-size: 0.8rem;
    color: var(--fc-text-muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}




#gltfCanvas {
    width: 100%;
    height: 100%;
    display: block;
    background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.55), transparent 34%), 
        linear-gradient(to bottom, #f4f6f9 0%, #e8edf3 52%, #d9e0e8 100%);
}

.fc-toolbar-buttons .btn {
    margin-right: 8px;
    margin-bottom: 4px;
}

.fc-status {
    font-size: 0.85rem;
    margin-left: 10px;
    color: var(--fc-text-muted);
}

.fc-tabs-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 10px;
    background: var(--fc-surface);
}

.tab-pane {
    height: 100%;
}

.fc-param-grid table {
    width: 100%;
    border-collapse: collapse;
}

.fc-param-grid th,
.fc-param-grid td {
    padding: 6px 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--fc-border);
    color: var(--fc-text-soft);
}

.fc-param-grid th {
    color: var(--fc-text);
    font-weight: 600;
    background: var(--fc-surface-2);
}

.fc-tree {
    color: var(--fc-text-soft);
}

    .fc-tree ul {
        list-style: none;
        padding-left: 1rem;
    }

    .fc-tree li {
        cursor: pointer;
        margin: 2px 0;
    }

        .fc-tree li span:hover {
            text-decoration: underline;
            color: var(--fc-text);
        }

/* -----------------------------
   Utility classes for sample pages
------------------------------ */

.fc-page-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.fc-page-subtitle {
    margin: 6px 0 0;
    color: var(--fc-text-muted);
    font-size: 0.92rem;
}

.fc-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    color: var(--fc-text-muted);
    font-size: 0.9rem;
}

.fc-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fc-text-muted);
    font-size: 0.9rem;
}

    .fc-breadcrumb a {
        color: var(--fc-text-soft);
        text-decoration: none;
    }

        .fc-breadcrumb a:hover {
            color: var(--fc-text);
            text-decoration: none;
        }
.fc-search-count {
    margin-top: 8px;
    color: var(--fc-text-muted);
    font-size: 0.9rem;
}

.fc-section-kicker {
    margin-bottom: 6px;
    color: var(--fc-accent-text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.fc-guide-panel {
    margin-top: 30px;
    padding: 24px;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--fc-shadow-sm);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
    gap: 28px;
    align-items: start;
}

    .fc-guide-panel h2 {
        margin: 0;
        font-size: 1.25rem;
        letter-spacing: -0.02em;
    }

    .fc-guide-panel p {
        margin: 10px 0 0;
        color: var(--fc-text-soft);
        line-height: 1.6;
    }

    .fc-guide-panel ul {
        margin: 0;
        padding-left: 18px;
        color: var(--fc-text-soft);
        line-height: 1.8;
    }

    .fc-guide-panel code {
        color: #db2777;
        background: transparent;
        padding: 0;
    }

@media (max-width: 900px) {
    .fc-guide-panel {
        grid-template-columns: 1fr;
    }
}
/* -----------------------------
   Responsive
------------------------------ */

@media (max-width: 900px) {
    .fc-site-header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .fc-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
        padding-top: 4px;
    }
}

@media (max-width: 640px) {
    .fc-page-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fc-site-header-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fc-hero-title {
        font-size: 2rem;
    }

    .fc-search-input {
        height: 52px;
    }
}
