/* FindCryptoJobs — light, compact, table-first */

:root {
    --ink: #111827;
    --muted: #6b7280;
    --faint: #9ca3af;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f9fafb;
    --accent: #2563eb;
    --accent-soft: #eff6ff;
    --orange: #f7931a;
    --featured-bg: #fffbeb;
    --featured-line: #fde68a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 16px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}
.logo span { color: var(--orange); }

.btn-post {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 6px;
}
.btn-post:hover { background: #1d4ed8; }

.tagline {
    margin: 0 0 16px;
    color: var(--muted);
    max-width: 640px;
}
.updated { color: var(--faint); white-space: nowrap; }

.sponsor-slot { margin: 0 0 16px; }

/* Controls */
.controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#search {
    flex: 1;
    min-width: 220px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
}
#search:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.remote-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.remote-toggle input { accent-color: var(--accent); }

/* Category chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.chip {
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--muted);
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
}
.chip:hover { border-color: var(--faint); color: var(--ink); }
.chip.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.count {
    margin: 0 0 8px;
    font-size: 12.5px;
    color: var(--faint);
}

/* Table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

thead th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--faint);
    background: var(--bg-soft);
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }

tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--bg-soft); }

tr.featured { background: var(--featured-bg); }
tr.featured:hover { background: #fef3c7; }
tr.featured td { border-bottom-color: var(--featured-line); }

.job-title {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.job-title:hover { color: var(--accent); }

.sub {
    display: none;
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    margin-top: 1px;
}

.tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: 1px;
    white-space: nowrap;
}
.tag.featured-tag {
    color: #92400e;
    background: #fef3c7;
    border-color: var(--featured-line);
}

.col-company { white-space: nowrap; }
td.col-location, td.col-salary { color: var(--muted); }
td.col-posted { color: var(--faint); white-space: nowrap; font-size: 12.5px; }
td.col-salary { white-space: nowrap; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pagination button {
    min-width: 32px;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--muted);
    border-radius: 6px;
    cursor: pointer;
}
.pagination button:hover:not(:disabled) { border-color: var(--faint); color: var(--ink); }
.pagination button.current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.pagination button:disabled { opacity: 0.4; cursor: default; }

.empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--muted);
}

/* Footer */
.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    max-width: 560px;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.fine { color: var(--faint); font-size: 12px; }

/* Post-a-job page */
.post-page { max-width: 720px; }
.post-page h1 { font-size: 26px; letter-spacing: -0.02em; margin: 8px 0 4px; }
.post-page .lede { color: var(--muted); margin: 0 0 24px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.plan {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
}
.plan.highlight { border-color: var(--orange); background: var(--featured-bg); }
.plan h2 { font-size: 15px; margin: 0; }
.plan .price { font-size: 26px; font-weight: 800; margin: 6px 0 10px; }
.plan .price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.plan li { margin-bottom: 4px; }

.post-form { border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.post-form label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
.post-form label:first-child { margin-top: 0; }
.post-form input, .post-form select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
}
.post-form button {
    margin-top: 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}
.post-form button:hover { background: #1d4ed8; }
.post-form .hint { font-size: 12.5px; color: var(--faint); margin-top: 10px; }

.back-link { color: var(--accent); text-decoration: none; font-size: 13px; }

/* Mobile */
@media (max-width: 640px) {
    .col-company, .col-location, .col-salary,
    td.col-company, td.col-location, td.col-salary { display: none; }
    .sub { display: block; }
    .plans { grid-template-columns: 1fr; }
    thead th, tbody td { padding: 8px 10px; }
}
