/* Hub (index + urls) — modern 2026-style shell */
:root {
    --hub-bg: #0c0d12;
    --hub-surface: #151722;
    --hub-elevated: #1c2030;
    --hub-border: rgba(255, 255, 255, 0.08);
    --hub-text: #e8eaf2;
    --hub-muted: #9aa3b5;
    --hub-accent: #6ee7ff;
    --hub-accent-dim: rgba(110, 231, 255, 0.15);
    --hub-radius: 14px;
    --hub-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

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

html {
    color-scheme: dark;
}

body.hub {
    margin: 0;
    min-height: 100vh;
    font-family: var(--hub-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--hub-text);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(110, 231, 255, 0.12), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(167, 139, 250, 0.1), transparent 50%),
        var(--hub-bg);
}

.hub-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem) 4rem;
}

.hub-header {
    margin-bottom: 2rem;
}

.hub-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hub-muted);
    margin: 0 0 0.5rem;
}

.hub-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    line-height: 1.15;
}

.hub-lede {
    margin: 0;
    max-width: 52ch;
    color: var(--hub-muted);
    font-size: 1.05rem;
}

.hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--hub-border);
    background: var(--hub-elevated);
    color: var(--hub-text);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hub-btn:hover {
    border-color: rgba(110, 231, 255, 0.35);
    background: var(--hub-surface);
    transform: translateY(-1px);
}

.hub-btn--primary {
    background: linear-gradient(135deg, var(--hub-accent-dim), transparent);
    border-color: rgba(110, 231, 255, 0.45);
    color: #b8f6ff;
}

.hub-search-card {
    margin-bottom: 1.25rem;
}

.hub-search-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--hub-text);
}

.hub-search-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--hub-border);
    background: var(--hub-bg);
    color: var(--hub-text);
    font: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-search-input::placeholder {
    color: var(--hub-muted);
    opacity: 0.85;
}

.hub-search-input:focus {
    border-color: rgba(110, 231, 255, 0.45);
    box-shadow: 0 0 0 3px var(--hub-accent-dim);
}

.hub-search-status {
    margin: 0.5rem 0 0;
    min-height: 1.35em;
    font-size: 0.85rem;
    color: var(--hub-muted);
}

.fixture-group {
    margin-bottom: 2rem;
}

.fixture-group:last-child {
    margin-bottom: 0;
}

.hub-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hub-muted);
    margin: 0 0 1rem;
}

.hub-card {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hub-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.hub-card p,
.hub-card ul {
    margin: 0;
    color: var(--hub-muted);
    font-size: 0.95rem;
}

.hub-card ul {
    padding-left: 1.2rem;
}

.hub-card code {
    font-size: 0.85em;
    background: var(--hub-elevated);
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    color: #c4f1ff;
}

.fixture-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fixture-list a {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    background: var(--hub-elevated);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fixture-list a:hover {
    border-color: rgba(110, 231, 255, 0.25);
    background: #222636;
}

.fixture-list .fx-title {
    font-weight: 600;
    font-size: 1rem;
}

.fixture-list .fx-desc {
    font-size: 0.88rem;
    color: var(--hub-muted);
}

/* URLs tool */
.url-tool label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.url-tool textarea {
    width: 100%;
    min-height: 11rem;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.82rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--hub-border);
    background: var(--hub-bg);
    color: var(--hub-text);
    resize: vertical;
}

.url-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-top: 1rem;
}

.url-tool-actions button,
.url-tool-actions .hub-btn {
    cursor: pointer;
    font: inherit;
}

.url-tool-meta {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--hub-muted);
}

.url-tool-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--hub-muted);
}

@media (max-width: 520px) {
    .url-tool-meta {
        margin-left: 0;
        width: 100%;
    }
}
