/* Zetaverse News – Public Styles */

/* ── Reset / base ─────────────────────────────────────────────────────── */
.zvn-dashboard, .zvn-form-wrap, .zvn-news-feed {
    font-family: inherit;
    box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.zvn-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}
.zvn-card {
    flex: 1 1 160px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.zvn-card--balance { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.zvn-card__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.zvn-card__value { font-size: 1.6rem; font-weight: 700; }

/* ── Section ──────────────────────────────────────────────────────────── */
.zvn-section { margin: 2rem 0; }
.zvn-section h3 { font-size: 1.1rem; border-bottom: 2px solid #e9ecef; padding-bottom: .4rem; margin-bottom: .8rem; }

/* ── Badges & status ──────────────────────────────────────────────────── */
.zvn-badge { display: inline-block; padding: .3rem .75rem; border-radius: 4px; font-weight: 600; font-size: .9rem; }
.zvn-badge--ok   { background: #d1fae5; color: #065f46; }
.zvn-badge--warn { background: #fef3c7; color: #92400e; }
.zvn-status { display: inline-block; padding: .15rem .6rem; border-radius: 3px; font-size: .8rem; font-weight: 600; text-transform: capitalize; }
.zvn-status--pending  { background: #fef3c7; color: #92400e; }
.zvn-status--frozen   { background: #dbeafe; color: #1e40af; }
.zvn-status--approved, .zvn-status--paid, .zvn-status--active { background: #d1fae5; color: #065f46; }
.zvn-status--disabled, .zvn-status--failed  { background: #fee2e2; color: #991b1b; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.zvn-btn {
    display: inline-block;
    padding: .6rem 1.4rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: .95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}
.zvn-btn:hover { background: #2d2d6b; color: #fff; }
.zvn-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Payout form ──────────────────────────────────────────────────────── */
.zvn-payout-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.zvn-payout-form label { display: block; font-size: .85rem; margin-bottom: .25rem; }
.zvn-payout-form input[type="number"] {
    padding: .55rem .75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: .95rem;
    width: 160px;
}
.zvn-payout-response { width: 100%; margin-top: .5rem; font-weight: 500; }
.zvn-payout-response.success { color: #065f46; }
.zvn-payout-response.error   { color: #991b1b; }

/* ── Tables ───────────────────────────────────────────────────────────── */
.zvn-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.zvn-table th { background: #f1f3f5; text-align: left; padding: .6rem .75rem; }
.zvn-table td { padding: .55rem .75rem; border-bottom: 1px solid #e9ecef; vertical-align: middle; }
.zvn-table tr:last-child td { border-bottom: none; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.zvn-form-wrap { max-width: 680px; }
.zvn-field { margin-bottom: 1.2rem; }
.zvn-field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.zvn-field input[type="text"],
.zvn-field input[type="url"],
.zvn-field input[type="date"],
.zvn-field select,
.zvn-field textarea {
    width: 100%;
    padding: .6rem .85rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: .95rem;
    font-family: inherit;
}
.zvn-field textarea { resize: vertical; }
.zvn-field-help { display: block; font-size: .8rem; color: #6c757d; margin-top: .25rem; }
.zvn-ad-response, .zvn-article-response { margin-top: .75rem; font-weight: 500; }
.zvn-ad-response.success, .zvn-article-response.success { color: #065f46; }
.zvn-ad-response.error,   .zvn-article-response.error   { color: #991b1b; }

/* ── Notices ──────────────────────────────────────────────────────────── */
.zvn-notice { padding: .75rem 1rem; border-radius: 5px; font-weight: 500; }
.zvn-notice--error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.zvn-help { color: #6c757d; font-size: .88rem; }

/* ── News feed ────────────────────────────────────────────────────────── */
.zvn-news-feed { display: flex; flex-direction: column; gap: 1.5rem; }
.zvn-news-item { display: flex; gap: 1rem; align-items: flex-start; }
.zvn-news-item__thumb img { width: 180px; height: 110px; object-fit: cover; border-radius: 5px; }
.zvn-news-item__title { font-size: 1.1rem; margin: 0 0 .3rem; }
.zvn-news-item__title a { text-decoration: none; color: inherit; }
.zvn-news-item__title a:hover { text-decoration: underline; }
.zvn-news-item__meta { font-size: .8rem; color: #6c757d; margin: 0 0 .4rem; }
.zvn-news-item__excerpt { font-size: .9rem; color: #495057; margin: 0; }
.zvn-news-feed__ad { padding: .5rem 0; }

/* ── Ad units ─────────────────────────────────────────────────────────── */
.zvn-ad { position: relative; display: inline-block; }
.zvn-ad__label {
    display: block;
    font-size: .65rem;
    text-align: right;
    color: #adb5bd;
    letter-spacing: .02em;
}
.zvn-ad--empty { display: none; }

/* ── Sponsorship badge ────────────────────────────────────────────────── */
.zvn-sponsorship-badge {
    display: inline-block;
    padding: .2rem .75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: .8rem;
    color: #6c757d;
}
.zvn-sponsorship-badge a { color: inherit; font-weight: 600; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .zvn-news-item { flex-direction: column; }
    .zvn-news-item__thumb img { width: 100%; height: auto; }
    .zvn-cards { flex-direction: column; }
    .zvn-payout-form input[type="number"] { width: 100%; }
}
