/* QScrape Index Pages — Shared Dark Theme */

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

body {
    background: #0d0d14;
    color: #c9c9d8;
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding: 3rem 1.5rem;
}

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

header {
    margin-bottom: 3rem;
    border-bottom: 1px solid #1e1e2e;
    padding-bottom: 2rem;
}

.logo {
    font-family: "Courier New", Courier, monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #e2e2f0;
    letter-spacing: -0.5px;
}

.tagline {
    color: #6e6e8a;
    margin-top: 0.4rem;
    font-size: 0.95rem;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #5a5a78;
    margin-bottom: 1rem;
}

p {
    color: #a0a0b8;
    max-width: 60ch;
}

a {
    color: #7c9fe6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.breadcrumb {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
    color: #3a3a56;
    margin-bottom: 0.75rem;
}

.breadcrumb a {
    color: #7c9fe6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Card list shared by levels (root) and sites (l1) */
.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-item {
    display: block;
    padding: 0.9rem 1rem;
    color: inherit;
    border-radius: 6px;
    border: 1px solid transparent;
    transition:
        background-color 0.2s,
        border-color 0.2s;
    text-decoration: none;
}

.card-item:hover {
    background-color: #111120;
    border-color: #1a1a2e;
    text-decoration: none;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}

.card-arrow {
    margin-left: auto;
    color: #3a3a56;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1;
    transition: color 0.15s;
}

.card-item:hover .card-arrow {
    color: #7c9fe6;
}

.card-label {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e2f0;
    white-space: nowrap;
}

.card-name {
    color: #b0b0cc;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-desc {
    color: #7a7a96;
    font-size: 0.9rem;
}

.card-desc strong {
    color: #b0b0cc;
    font-weight: 500;
}

.badge-live {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #1a3a1a;
    color: #4caf76;
    border: 1px solid #2a5a2a;
    padding: 0.15em 0.5em;
    border-radius: 3px;
    white-space: nowrap;
}

.badge-soon {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3a3a56;
    white-space: nowrap;
}

/* Nav link list (root index "Sites" section) */
.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-links li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.nav-path {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
    color: #7c9fe6;
    min-width: 14ch;
}

.nav-path:hover {
    text-decoration: underline;
}

.nav-name {
    color: #6e6e8a;
    font-size: 0.9rem;
}

/* Resources section */
.resources {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.resource-row {
    font-size: 0.85rem;
    color: #4a4a66;
}

.resource-row span {
    font-family: "Courier New", Courier, monospace;
    color: #3a3a56;
    margin-right: 0.5rem;
}
