/* Quanteta CDN/DNS Performance Database — Phase B CSS */

:root {
    --bg: #fafbfc;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #5a5a7a;
    --border: #e2e6ea;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --green: #16a34a;
    --orange: #ea580c;
    --red: #dc2626;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.logo { font-size: 20px; font-weight: 700; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-sub { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 16px; font-size: 14px; }
header { background: var(--surface); border-bottom: 1px solid var(--border); }

main { max-width: var(--max-width); margin: 0 auto; padding: 24px 20px; }

.hero, .game-hero, .about-hero { margin-bottom: 32px; }
h1 { font-size: 24px; margin-bottom: 8px; }
.tldr { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.updated { font-size: 13px; color: var(--text-muted); }

.filters { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; margin-bottom: 24px; }
.filters h2 { font-size: 16px; margin-bottom: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 16px; }
.filter-group { flex: 1; min-width: 150px; }
.filter-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.filter-group input, .filter-group select { width: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.filter-count { margin-top: 8px; font-size: 13px; color: var(--text-muted); }

.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 14px; }
thead { background: #f1f3f5; }
th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
td { padding: 8px 12px; border-top: 1px solid var(--border); white-space: nowrap; }
tbody tr:hover { background: #f8f9fb; }

.score-high { color: var(--green); font-weight: 600; }
.score-mid { color: var(--orange); font-weight: 600; }
.score-low { color: var(--red); font-weight: 600; }

.score-grid, .score-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.score-item, .score-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; flex: 1; min-width: 140px; text-align: center; }
.score-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.score-value { display: block; font-size: 28px; font-weight: 700; }
.score-value small { font-size: 14px; color: var(--text-muted); }
.score-card h3 { font-size: 15px; margin-bottom: 6px; }
.score-card p { font-size: 13px; color: var(--text-muted); }

.meta-grid { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; font-size: 14px; }
.meta-grid dt { font-weight: 600; color: var(--text-muted); }
.meta-grid dd { margin: 0; }

.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.copy-btn { display: inline-block; background: transparent; border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-size: 11px; cursor: pointer; color: var(--text-muted); }
.copy-btn:hover { background: #f1f3f5; color: var(--text); }

section { margin-bottom: 28px; }
section h2 { font-size: 18px; margin-bottom: 10px; }
section h3 { font-size: 15px; margin: 12px 0 6px; }
section p, section li { font-size: 14px; color: var(--text); margin-bottom: 6px; }
section ul, section ol { padding-left: 20px; }
section dl { margin-bottom: 8px; }
section dt { font-weight: 600; margin-top: 8px; }
section dd { margin: 0 0 4px 0; }

.back-link { margin-top: 32px; }
.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 32px; margin-bottom: 16px; }

footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 0; font-size: 13px; color: var(--text-muted); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; text-align: center; }

@media (max-width: 768px) {
    .nav-bar { flex-direction: column; align-items: flex-start; }
    .filter-row { flex-direction: column; }
    .score-grid { flex-direction: column; }
    .meta-grid { grid-template-columns: 1fr; }
    h1 { font-size: 20px; }
    td, th { padding: 6px 8px; font-size: 13px; }
}
