/**
 * Team news widget + detail page styles.
 *
 * Plan: ~/.claude/plans/luminous-sprouting-twilight.md v2 §Phase 4
 *
 * Used on:
 *  - /distribution/index.html  (Vue widget — list of recent entries)
 *  - /team-news/:slug          (detail page — full body_html with mockups)
 *
 * Rule 4b: no visible emoji ; CSS state classes only.
 * Dark + light theme parity via var(--bg-tint-*) tokens.
 */

/* ── List widget on Command Center ──────────────────────────────────────── */

.team-news-section {
    margin-top: 24px;
}

.team-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.team-news-card {
    border: 1px solid var(--border-tint-medium);
    border-radius: 8px;
    padding: 14px;
    background: var(--bg-tint-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.15s, background 0.15s;
}

.team-news-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: var(--bg-tint-medium);
}

.team-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted, #8a8a8a);
}

.team-news-cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-news-cat.cat-feature     { background: rgba(139, 92, 246, 0.18); color: #a78bfa; }
.team-news-cat.cat-enhancement { background: rgba(34, 197, 94, 0.16);  color: #22c55e; }
.team-news-cat.cat-fix         { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.team-news-cat.cat-docs        { background: rgba(96, 165, 250, 0.16); color: #60a5fa; }

.team-news-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #f0f0f0);
    line-height: 1.3;
}

.team-news-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary, #c8c8d0);
}

.team-news-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.team-news-link {
    color: #a78bfa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.team-news-link:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

/* ── Detail page (/team-news/:slug) ──────────────────────────────────────── */

.team-news-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.team-news-detail-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-tint-medium);
}

.team-news-detail-header h1 {
    margin: 12px 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #f0f0f0);
}

.team-news-detail-header .team-news-meta {
    font-size: 12px;
}

.team-news-detail-body {
    line-height: 1.6;
    color: var(--text-primary, #f0f0f0);
    font-size: 14px;
}

.team-news-detail-body h4 {
    margin: 20px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #c8c8d0);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-news-detail-body p,
.team-news-detail-body ol,
.team-news-detail-body ul {
    margin: 8px 0;
    color: var(--text-secondary, #c8c8d0);
}

.team-news-detail-body code {
    background: var(--bg-tint-medium);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
}

/* ── HTML-simulated screenshots inside body_html ─────────────────────────── */

.mock-screenshot {
    border: 1px solid var(--border-tint-medium);
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    background: var(--bg-tint-soft);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mock-screenshot.mock-before {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
}

.mock-screenshot.mock-after {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.04);
}

.mock-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted, #8a8a8a);
    margin-bottom: 6px;
}

.mock-input {
    display: block;
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-tint-medium);
    border-radius: 4px;
    background: var(--bg-tint-soft);
    color: var(--text-primary, #f0f0f0);
    font-size: 13px;
    box-sizing: border-box;
}

.mock-input.mock-error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.06);
}

.mock-warning {
    margin-top: 6px;
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
}

.mock-value {
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
    margin: 4px 0;
}

.mock-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mock-btn {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--border-tint-medium);
    border-radius: 4px;
    background: var(--bg-tint-medium);
    color: var(--text-secondary, #c8c8d0);
    font-size: 12px;
    font-weight: 500;
}

.mock-btn.primary {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

/* ── Light theme overrides ───────────────────────────────────────────────── */

body.label-light .team-news-card {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.025);
}

body.label-light .team-news-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(0, 0, 0, 0.04);
}

body.label-light .team-news-title { color: #111827; }
body.label-light .team-news-desc { color: #4b5563; }

body.label-light .team-news-cat.cat-feature     { background: rgba(124, 58, 237, 0.16); color: #6d28d9; }
body.label-light .team-news-cat.cat-enhancement { background: rgba(22, 163, 74, 0.16);  color: #15803d; }
body.label-light .team-news-cat.cat-fix         { background: rgba(180, 83, 9, 0.16);   color: #92400e; }
body.label-light .team-news-cat.cat-docs        { background: rgba(37, 99, 235, 0.16);  color: #1d4ed8; }

body.label-light .team-news-link        { color: #6d28d9; }
body.label-light .team-news-link:hover  { color: #4c1d95; }

body.label-light .team-news-detail-header h1 { color: #111827; }
body.label-light .team-news-detail-body { color: #1f2937; }
body.label-light .team-news-detail-body h4 { color: #4b5563; }
body.label-light .team-news-detail-body p,
body.label-light .team-news-detail-body ol,
body.label-light .team-news-detail-body ul { color: #4b5563; }

body.label-light .mock-screenshot.mock-before {
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.04);
}
body.label-light .mock-screenshot.mock-after {
    border-color: rgba(22, 163, 74, 0.3);
    background: rgba(22, 163, 74, 0.04);
}
body.label-light .mock-input { color: #111827; }
body.label-light .mock-input.mock-error {
    border-color: rgba(220, 38, 38, 0.5);
    background: rgba(220, 38, 38, 0.06);
}
body.label-light .mock-warning { color: #b91c1c; }
body.label-light .mock-value { color: #b45309; }
body.label-light .mock-btn { color: #374151; }
body.label-light .mock-btn.primary {
    background: rgba(22, 163, 74, 0.18);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.4);
}
