/* ============================================================
   The One-Sentence Internet — style.css
   Palette: #1C1C1E bg · #EA6C1A orange · #1A56DB blue · #16A34A green
   ============================================================ */

:root {
    --bg:        #1C1C1E;
    --bg-nav:    #242426;
    --bg-card:   #2A2A2C;
    --bg-input:  #1C1C1E;
    --border:    #333335;
    --border-lt: #2A2A2C;

    --orange:    #EA6C1A;
    --orange-dk: #C2570A;
    --orange-bg: rgba(234,108,26,0.12);

    --blue:      #1A56DB;
    --blue-mid:  #4A90D9;
    --blue-bg:   rgba(74,144,217,0.12);
    --blue-glow: rgba(74,144,217,0.30);

    --green:     #16A34A;
    --green-mid: #4ADE80;
    --green-bg:  rgba(22,163,74,0.12);

    --red-bg:    rgba(220,38,38,0.12);
    --red-mid:   #F87171;
    --purple-bg: rgba(124,58,237,0.12);
    --purple-mid:#A78BFA;
    --pink-bg:   rgba(219,39,119,0.12);
    --pink-mid:  #F472B6;
    --amber-bg:  rgba(234,108,26,0.12);
    --amber-mid: #FB923C;

    --text-primary:   #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted:     #666668;
    --text-tiny:      #4A4A4C;

    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 14px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    min-height: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;

    /* Keep the footer at the bottom on short pages without overlaying content. */
    display: flex;
    flex-direction: column;
}
a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
input, textarea, button, select {
    font-family: inherit;
    font-size: inherit;
}

/* ── Nav ── */
.site-nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}
.nav-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}
.nav-brandname {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.nav-ticker {
    font-size: 12px;
    color: var(--text-muted);
}
.nav-ticker strong {
    color: var(--blue-mid);
    font-weight: 600;
}
.nav-cta {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}
.nav-cta:hover { background: var(--orange-dk); text-decoration: none; color: #fff; }

/* ── Hero ── */
.hero {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 56px 24px 44px;
    text-align: center;
}
.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.hero-h {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.hero-h em { color: var(--blue-mid); font-style: normal; }
.hero-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.65;
}
.prog-wrap { max-width: 440px; margin: 0 auto 28px; }
.prog-track {
    height: 4px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.prog-fill {
    height: 100%;
    background: var(--orange);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.prog-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}
.prog-labels strong { color: var(--orange); }

/* ── Input row ── */
.input-row {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    border: 1.5px solid var(--blue);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-input);
    transition: border-color 0.2s;
}
.input-row:focus-within { border-color: var(--blue-mid); box-shadow: 0 0 0 3px var(--blue-glow); }
.input-row input {
    flex: 1;
    font-size: 14px;
    padding: 13px 16px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}
.input-row input::placeholder { color: var(--text-muted); }
.input-submit {
    font-size: 14px;
    font-weight: 600;
    padding: 13px 22px;
    background: var(--orange);
    color: #fff;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.input-submit:hover { background: var(--orange-dk); }
.input-meta {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}
.input-meta span { margin: 0 6px; }

/* ── Feed ── */
.feed-section {
    background: var(--bg);

    /* This section absorbs empty vertical space so the footer sits at the viewport bottom. */
    flex: 1 0 auto;
}
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px 12px;
    border-bottom: 1px solid var(--border);
}
.feed-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.sort-tabs {
    display: flex;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.sort-tab {
    font-size: 11px;
    padding: 5px 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.12s, color 0.12s;
}
.sort-tab:hover { color: var(--text-secondary); }
.sort-tab.active {
    background: var(--blue-bg);
    color: var(--blue-mid);
    font-weight: 600;
}
.feed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.feed-item {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-lt);
    border-right: 1px solid var(--border-lt);
    transition: background 0.1s;
}
.feed-item:hover { background: var(--bg-card); }
.feed-item:nth-child(even) { border-right: none; }
.item-num {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.item-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.56;
    font-style: italic;
    margin-bottom: 10px;
}
.item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.item-author { font-size: 12px; color: var(--text-muted); }
.item-author a { color: var(--text-muted); }
.item-author a:hover { color: var(--blue-mid); }

/* ── Tags ── */
.tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.01em;
}
.tag-loss     { background: var(--red-bg);    color: var(--red-mid); }
.tag-funny    { background: var(--green-bg);  color: var(--green-mid); }
.tag-wisdom   { background: var(--purple-bg); color: var(--purple-mid); }
.tag-human    { background: var(--pink-bg);   color: var(--pink-mid); }
.tag-founder  { background: var(--green-bg);  color: var(--green-mid); }
.tag-hustle   { background: var(--amber-bg);  color: var(--amber-mid); }
.tag-big      { background: var(--blue-bg);   color: var(--blue-mid); }
.tag-weird    { background: var(--amber-bg);  color: var(--amber-mid); }

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 32px;
    border-top: 1px solid var(--border);
}
.page-btn {
    font-size: 12px;
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s;
}
.page-btn:hover { background: var(--bg-card); border-color: var(--text-muted); color: var(--text-primary); text-decoration: none; }
.page-btn.active { background: var(--blue-bg); border-color: var(--blue); color: var(--blue-mid); font-weight: 600; }

/* ── Footer ── */
.site-footer {
    background: #111009;
    border-top: 1px solid #222;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}
.footer-copy { font-size: 11px; color: #444; }
.footer-stats { display: flex; gap: 24px; }
.fstat-val { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.fstat-label { font-size: 10px; color: #444; margin-top: 1px; }

/* ── Flash messages ── */
.flash {
    padding: 12px 20px;
    font-size: 13px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.flash-success { background: var(--green-bg); color: var(--green-mid); border-color: rgba(22,163,74,0.3); }
.flash-error   { background: var(--red-bg);   color: var(--red-mid);   border-color: rgba(220,38,38,0.3); }
.flash-info    { background: var(--blue-bg);   color: var(--blue-mid);  border-color: rgba(74,144,217,0.3); }
.flash-warn    { background: var(--amber-bg);  color: var(--amber-mid); border-color: rgba(234,108,26,0.3); }

/* ── Forms (submit page) ── */
.page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px;
}
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.page-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.form-card {
    background: var(--bg-nav);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
}
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 7px;
}
.field label .opt {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    font-size: 11px;
}
.field input,
.field textarea {
    width: 100%;
    font-size: 14px;
    padding: 10px 13px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); font-style: italic; }
.field input:focus,
.field textarea:focus {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px var(--blue-glow);
}
.field textarea { height: 90px; font-style: italic; }
.field-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.charbar-wrap {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.charbar-fill {
    height: 100%;
    background: var(--blue-mid);
    border-radius: 2px;
    transition: width 0.1s, background 0.1s;
}
.charbar-fill.warn { background: var(--orange); }
.charbar-fill.danger { background: var(--red-mid); }

/* pricing card */
.price-card {
    background: var(--blue-bg);
    border: 1px solid rgba(74,144,217,0.25);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 14px;
}
.price-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.price-label { font-size: 12px; color: var(--blue-mid); font-weight: 600; }
.price-sublabel { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.price-amount { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.price-amount span { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.price-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.price-feature:last-child { margin-bottom: 0; }
.check-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green-bg);
    border: 1px solid rgba(22,163,74,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 9px;
    color: var(--green-mid);
    font-weight: 700;
}
.pay-btn {
    width: 100%;
    padding: 14px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 10px;
}
.pay-btn:hover { background: var(--orange-dk); }
.pay-note {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.notice-warn {
    background: var(--amber-bg);
    border: 1px solid rgba(234,108,26,0.25);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--amber-mid);
    line-height: 1.5;
}
.notice-warn strong { display: block; font-weight: 600; margin-bottom: 3px; }

/* preview card */
.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-top: 16px;
}
.preview-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.preview-text {
    font-size: 14px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 8px;
}
.preview-empty { color: var(--text-muted); font-style: normal; }

/* ── Success page ── */
.success-wrap {
    max-width: 540px;
    margin: 80px auto;
    text-align: center;
    padding: 0 24px;
}
.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green-bg);
    border: 1px solid rgba(22,163,74,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--green-mid);
}
.success-h {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.success-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}
.success-card {
    background: var(--bg-nav);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    text-align: left;
    margin-bottom: 24px;
}
.success-num { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.success-sentence {
    font-size: 16px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 12px;
}
.share-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}
.share-btn {
    flex: 1;
    max-width: 160px;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.share-btn:hover { background: var(--bg-card); color: var(--text-primary); text-decoration: none; }
.share-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.share-btn.primary:hover { background: var(--blue-dark, #1240A8); }
.cert-link {
    font-size: 12px;
    color: var(--blue-mid);
    text-decoration: underline;
    cursor: pointer;
}

/* ── Admin ── */
.admin-nav {
    background: #111009;
    border-bottom: 1px solid #222;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-brand {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-badge {
    font-size: 10px;
    background: #1A1917;
    color: var(--text-muted);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.admin-body { padding: 24px; max-width: 960px; margin: 0 auto; }
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.astat {
    background: var(--bg-nav);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
}
.astat-val { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.astat-val.orange { color: var(--orange); }
.astat-val.blue   { color: var(--blue-mid); }
.astat-val.green  { color: var(--green-mid); }
.astat-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.queue-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.q-item {
    background: var(--bg-nav);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.q-item.flagged { border-left: 3px solid var(--orange); }
.q-num { font-size: 11px; color: var(--text-muted); min-width: 56px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.q-body { flex: 1; }
.q-text { font-size: 13px; font-style: italic; color: var(--text-primary); margin-bottom: 6px; line-height: 1.5; }
.q-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 8px; align-items: center; }
.q-flag-badge { font-size: 10px; padding: 2px 7px; border-radius: 10px; background: var(--amber-bg); color: var(--amber-mid); }
.q-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-approve {
    font-size: 11px; font-weight: 600; padding: 6px 14px;
    background: var(--green); color: #fff;
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    transition: opacity 0.12s;
}
.btn-approve:hover { opacity: 0.85; }
.btn-reject {
    font-size: 11px; padding: 6px 14px;
    background: none; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
    transition: background 0.12s;
}
.btn-reject:hover { background: var(--red-bg); color: var(--red-mid); border-color: rgba(220,38,38,0.3); }
.btn-flag {
    font-size: 11px; padding: 6px 10px;
    background: var(--amber-bg); color: var(--amber-mid);
    border: 1px solid rgba(234,108,26,0.25); border-radius: var(--radius-sm); cursor: pointer;
}

/* ── Search bar (homepage) ── */
.search-wrap {
    padding: 10px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.search-input {
    width: 100%;
    font-size: 13px;
    padding: 8px 14px;
    background: var(--bg-nav);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px var(--blue-glow); }
.search-input::placeholder { color: var(--text-muted); }

/* ── Honeypot (hidden) ── */
.hp-field { display: none; position: absolute; left: -9999px; }

/* ── Responsive ── */
@media (max-width: 680px) {
    .site-nav { padding: 0 16px; }
    .nav-ticker { display: none; }
    .hero { padding: 36px 16px 28px; }
    .hero-h { font-size: 32px; }
    .feed-grid { grid-template-columns: 1fr; }
    .feed-item:nth-child(even) { border-right: none; }
    .feed-item { border-right: none; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .site-footer { flex-direction: column; align-items: flex-start; }
    .footer-stats { gap: 16px; }
    .share-row { flex-direction: column; align-items: center; }
}

/* Hardened launch additions */
.rule-check {
    display: block;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--line-soft, #e5e7eb);
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted, #6b7280);
}
.rule-check input { margin-right: 8px; }
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line-soft, #e5e7eb);
    border-radius: 10px;
    background: var(--bg-card, #fff);
    color: var(--text-main, #111827);
}
.item-num { text-decoration: none; }

.preview-banner {
    padding: 10px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--orange-mid);
    background: rgba(255, 111, 25, 0.08);
    border-bottom: 1px solid var(--line);
}

/* Live moderation status on submit page */
.moderation-ok { color: #29a36a !important; }
.moderation-flagged { color: #c78300 !important; }
.moderation-blocked { color: #e05d2f !important; font-weight: 600; }
.moderation-error { color: #8a8a8a !important; }
.moderation-empty { color: var(--text-muted, #777) !important; }
.pay-btn:disabled { opacity: .55; cursor: not-allowed; }
