/* ================================
   TorzonHub Unified Stylesheet
   Clean • Static • SEO-safe
================================ */

:root {
    --bg: #0b0f1a;
    --card: #111827;
    --text: #e5e7eb;
    --text-2: #9ca3af;
    --accent: #60a5fa;
    --border: #1f2937;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100%;
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px;
}

/* Typography */
h1, h2, h3 {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
    margin-bottom: 14px;
}

h2 {
    font-size: 1.4rem;
    margin-top: 26px;
}

p, li {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 10px;
}

strong {
    color: #fff;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Cards / Panels */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 4px 10px rgba(0,0,0,0.2);
}

.subtle {
    background: #0f172a;
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 10px;
}

/* Lists */
ul, ol {
    margin-left: 22px;
    margin-bottom: 10px;
}

ul li, ol li {
    margin-bottom: 6px;
}

/* Code / Pre */
code, pre {
    background: var(--card);
    color: #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    overflow-x: auto;
    display: block;
    white-space: pre-wrap;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-2);
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--accent);
}

/* Badge / Status */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.badge.ok {
    background: #16a34a33;
    color: #22c55e;
}

.badge.slow {
    background: #ca8a0433;
    color: #fbbf24;
}

/* Grid layout (used in status / mirror sections) */
.grid {
    display: grid;
    gap: 16px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Small text */
.minitext {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

.kicker {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    body {
        padding: 0;
    }
    .container {
        padding: 16px;
    }
    h1 {
        font-size: 1.6rem;
    }
    h2 {
        font-size: 1.25rem;
    }
    pre, code {
        font-size: 13px;
    }
}

/* Subtle fade for intro text */
.muted {
    color: var(--text-2);
}
