/* VB6 workspace docs styling, based on the vb6parse site. */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004999;
    --accent-color: #ff6b35;
    --background-color: #ffffff;
    --surface-color: #f8fbff;
    --text-color: #213041;
    --muted-text-color: #526173;
    --code-background: #f5f7fa;
    --border-color: #d7e0ea;
    --success-color: #2f8f57;
    --warning-color: #c47f00;
    --shadow-color: rgba(19, 39, 63, 0.12);
}

[data-theme="dark"] {
    --primary-color: #3ea0ff;
    --secondary-color: #0d5aaa;
    --accent-color: #ff8f5f;
    --background-color: #101820;
    --surface-color: #182431;
    --text-color: #e9f1f8;
    --muted-text-color: #adc0d2;
    --code-background: #1f2d3d;
    --border-color: #2e4054;
    --success-color: #56b681;
    --warning-color: #d9a441;
    --shadow-color: rgba(0, 0, 0, 0.35);
}

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

html {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background:
        radial-gradient(circle at top left, rgba(0, 102, 204, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 107, 53, 0.10), transparent 28%),
        var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    width: 100%;
}

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

.page-body {
    padding: 48px 20px 72px;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 72px 0;
    box-shadow: 0 12px 32px var(--shadow-color);
}

.hero-slim {
    padding: 56px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 32px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(3rem, 8vw, 4.6rem);
    line-height: 0.95;
    margin-bottom: 14px;
    letter-spacing: -0.04em;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.84;
    margin-bottom: 12px;
}

.tagline {
    max-width: 68ch;
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.button-primary {
    background: white;
    color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: rgba(255, 255, 255, 0.18);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-grid {
    display: grid;
    gap: 16px;
}

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

.stat-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 20px var(--shadow-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.stat-label {
    color: var(--muted-text-color);
    font-size: 0.95rem;
}

nav {
    background: rgba(13, 73, 153, 0.96);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.16);
}

.nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 14px 20px;
    flex-wrap: wrap;
    position: relative;
}

nav a {
    color: white;
    font-weight: 600;
}

nav a:hover {
    opacity: 0.88;
    text-decoration: none;
}

.theme-toggle {
    position: absolute;
    right: 0;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.16);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.24);
}

section {
    margin-bottom: 72px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.1;
    color: var(--primary-color);
}

.intro-grid,
.roadmap-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card,
.roadmap-card,
.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 24px var(--shadow-color);
}

.info-card h3,
.roadmap-card h3,
.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-card p,
.roadmap-card p,
.project-summary,
.project-detail {
    color: var(--muted-text-color);
}

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

.project-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.project-category {
    color: var(--accent-color);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-bottom: 4px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-stable {
    background: rgba(47, 143, 87, 0.14);
    color: var(--success-color);
}

.status-support,
.status-planning,
.status-design,
.status-development {
    background: rgba(0, 102, 204, 0.10);
    color: var(--primary-color);
}

.project-notes,
.table-notes {
    margin: 14px 0 0 18px;
    color: var(--muted-text-color);
}

.project-notes li,
.table-notes li {
    margin-bottom: 0.35rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: 0 10px 24px var(--shadow-color);
}

.status-table {
    width: 100%;
    border-collapse: collapse;
}

.status-table th,
.status-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
}

.status-table th {
    color: var(--primary-color);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-table tbody tr:hover {
    background: rgba(0, 102, 204, 0.04);
}

.table-project-name {
    font-weight: 700;
}

.table-project-category {
    color: var(--muted-text-color);
    font-size: 0.88rem;
}

.status-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.warning-box {
    border: 1px solid var(--warning-color);
    background: rgba(196, 127, 0, 0.10);
    color: var(--text-color);
    border-radius: 18px;
    padding: 18px 20px;
}

.site-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
    padding: 24px 0 28px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted-text-color);
}

code {
    background: var(--code-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.1rem 0.35rem;
    font-size: 0.92em;
}

@media (max-width: 960px) {
    .hero-inner,
    .intro-grid,
    .roadmap-grid,
    .project-grid,
    .status-summary,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        position: static;
    }

    .nav-inner {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .page-body {
        padding-top: 36px;
        padding-bottom: 56px;
    }

    .hero {
        padding: 52px 0;
    }

    .status-table th,
    .status-table td {
        padding: 14px 14px;
    }
}