/* GEPNEV — Bootstrap 5 supplement (light theme) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-mono: ui-monospace, 'JetBrains Mono', 'Fira Code', monospace;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

main { flex: 1; }

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 3.5rem 0 2rem;
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.hero-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.hero-brand-divider {
    width: 2px;
    height: 70px;
    background: #dee2e6;
    border-radius: 1px;
}

.hero-brand-name {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #212529;
    line-height: 1;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.05rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ── Stats ── */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0d6efd;
    line-height: 1;
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    font-weight: 500;
}

/* ── Quick Cards (home) ── */
.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.quick-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem 1.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #212529;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.15s;
}

.quick-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #adb5bd;
    color: #212529;
}

.quick-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.quick-card p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* ── Chemical Space Container ── */
.space-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    overflow: hidden;
}

.space-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    white-space: nowrap;
}

.method-tabs {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.method-tab {
    padding: 0.3rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.method-tab + .method-tab {
    border-left: 1px solid #dee2e6;
}

.method-tab:hover {
    background: #e9ecef;
    color: #212529;
}

.method-tab.active {
    background: #0d6efd;
    color: #fff;
}

.space-plot {
    padding: 0.5rem;
    min-height: 500px;
}

/* Dataset toggles */
.dataset-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dataset-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.2rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #dee2e6;
    background: transparent;
    color: #6c757d;
    transition: all 0.15s;
}

.dataset-toggle .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dataset-toggle.active {
    border-color: #0d6efd;
    background: #e7f0ff;
    color: #0d6efd;
}

/* ── Data Table ── */
.smiles-cell {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.name-cell { font-weight: 500; }

.numeric-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ── Dataset Panel (chemical space — bottom bar) ── */
.dataset-panel {
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    padding: 0.625rem 1.25rem;
}

.dataset-panel-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: #6c757d;
}

/* ── Utilities ── */
.text-mono { font-family: var(--font-mono); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.75rem; }
    .stat-value { font-size: 1.5rem; }
    .stats-row { gap: 1.5rem; }
    .quick-cards { grid-template-columns: 1fr; }
    .space-controls { flex-direction: column; align-items: stretch; }
}
