/* ZClassic23 Block Explorer Stylesheet
 * Copyright 2026 Rhett Creighton - Apache License 2.0
 * High-readability dark theme — large fonts, high contrast */

body {
    font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #0c0c0c;
    color: #e8e8e8;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    font-size: 18px;
    line-height: 1.6;
}

* { box-sizing: border-box; }

a { color: #4db8ff; text-decoration: none; }
a:hover { text-decoration: underline; color: #80ccff; }

h1 {
    color: #33ff99;
    font-size: 32px;
    margin: 0 0 8px;
    font-weight: 700;
}

h2 {
    color: #33ff99;
    font-size: 24px;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 8px;
    margin: 32px 0 16px;
    font-weight: 600;
}

/* Navigation bar */
.nav {
    background: #141414;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #222;
}
.nav a {
    color: #33ff99;
    font-weight: 700;
    font-size: 18px;
}
.nav a:hover { color: #fff; }
.nav .search { flex: 1; min-width: 250px; }
.nav input {
    background: #1a1a1a;
    color: #e8e8e8;
    border: 2px solid #333;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 18px;
    width: 100%;
    border-radius: 8px;
}
.nav input:focus {
    outline: none;
    border-color: #33ff99;
}

/* Cards */
.card {
    background: #141414;
    padding: 20px 24px;
    border-radius: 10px;
    margin: 12px 0;
    border-left: 4px solid #33ff99;
    border: 1px solid #1e1e1e;
    border-left: 4px solid #33ff99;
}

/* Key-value grid */
.grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 16px;
    font-size: 17px;
}
.grid .label {
    color: #888;
    font-weight: 600;
}
.grid .val {
    color: #e8e8e8;
    word-break: break-all;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 17px;
}
th {
    text-align: left;
    color: #888;
    padding: 12px 14px;
    border-bottom: 2px solid #222;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
td {
    padding: 12px 14px;
    border-bottom: 1px solid #1a1a1a;
}
tr:hover { background: #161616; }

/* Type classes */
.mono {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
}
.hash {
    color: #4db8ff;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
}
.amount {
    color: #33ff99;
    text-align: right;
    font-weight: 600;
    font-size: 18px;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.tag-cb { background: #1a3a1a; color: #33ff99; }
.tag-shielded { background: #1a1a3a; color: #9999ff; }
.tag-slp { background: #3a1a3a; color: #ff99ff; }
.tag-mempool { background: #3a3a1a; color: #ffbb33; }

/* Stats dashboard */
.stat {
    text-align: center;
    padding: 16px 12px;
}
.stat .num {
    font-size: 36px;
    color: #33ff99;
    font-weight: 800;
    line-height: 1.2;
}
.stat .lbl {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
.stats-row {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}
.stats-row .stat {
    flex: 1;
    background: #141414;
    border-radius: 10px;
    border: 1px solid #1e1e1e;
}

/* Pagination */
.pager {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    font-size: 17px;
}
.pager a {
    background: #1a1a1a;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #333;
    font-weight: 600;
}
.pager a:hover {
    background: #222;
    text-decoration: none;
}

/* Input/Output boxes */
.io-box {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 16px;
    margin: 10px 0;
}
.io-row {
    display: flex;
    gap: 14px;
    padding: 10px 4px;
    font-size: 16px;
    border-bottom: 1px solid #1a1a1a;
    align-items: center;
}
.io-row:last-child { border-bottom: none; }
.io-idx {
    color: #555;
    min-width: 36px;
    font-weight: 600;
}
.io-addr {
    flex: 1;
    word-break: break-all;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
}
.io-val {
    color: #33ff99;
    min-width: 140px;
    text-align: right;
    font-weight: 700;
    font-size: 17px;
}

/* Charts */
h3 { margin: 0 0 12px; }
svg text { font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; }

/* Footer */
footer {
    text-align: center;
    color: #444;
    font-size: 14px;
    margin-top: 48px;
    padding: 16px;
    border-top: 1px solid #1a1a1a;
}

/* ── Mobile / Responsive ─────────────────────────────────── */

@media (max-width: 768px) {
    body {
        padding: 12px 14px;
        font-size: 16px;
    }

    h1 { font-size: 26px; }
    h2 { font-size: 20px; margin: 24px 0 12px; }

    .nav {
        padding: 10px 12px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav a { font-size: 16px; }
    .nav .search { min-width: unset; }
    .nav input { font-size: 16px; padding: 10px 12px; }

    .stats-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .stats-row .stat {
        flex: 1 1 45%;
        min-width: 140px;
    }
    .stat .num { font-size: 28px; }
    .stat .lbl { font-size: 12px; }

    .grid {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
    .grid .label {
        color: #666;
        font-size: 13px;
        margin-top: 8px;
    }
    .grid .val { font-size: 15px; }

    .card { padding: 14px 16px; }

    table { font-size: 15px; }
    th { padding: 8px 6px; font-size: 13px; }
    td { padding: 8px 6px; }

    .hash { font-size: 13px; }
    .mono { font-size: 13px; }

    .pager {
        flex-wrap: wrap;
    }
    .pager a {
        padding: 8px 14px;
        font-size: 15px;
        flex: 1;
        text-align: center;
    }

    .io-row {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 4px;
    }
    .io-idx { min-width: 24px; }
    .io-addr { font-size: 13px; min-width: 100%; }
    .io-val {
        min-width: unset;
        font-size: 15px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px 10px;
        font-size: 15px;
    }

    .stats-row .stat { flex: 1 1 100%; }
    .stat .num { font-size: 24px; }

    table { font-size: 14px; }
    td, th { padding: 6px 4px; }
}
