/* ============================================================================
   NERDDSPORTS v2 — "Filed From The Press Box"
   ============================================================================
   Aesthetic: confident editorial, dark newsroom, technical-sports-desk.
   Fraunces for headlines (serif with character), Geist for body, JetBrains
   Mono for metadata. Beat-colored accent bars as section dividers.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,800;9..144,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    /* Ink palette — dark by default */
    --ns-bg:            #0b0c0f;
    --ns-bg-card:       #15171c;
    --ns-bg-raised:     #1c1f26;
    --ns-border:        #2a2e38;
    --ns-border-soft:   #20232b;

    --ns-text:          #f4f4f5;
    --ns-text-dim:      #a1a1aa;
    --ns-text-faint:    #71717a;

    --ns-accent:        #f97316;   /* orange-500, signature */
    --ns-accent-warm:   #fb923c;
    --ns-accent-hot:    #ef4444;

    /* Beat colors — sharp, editorial */
    --beat-nfl:         #ff4d1a;
    --beat-nba:         #ff8a00;
    --beat-mlb:         #2563eb;
    --beat-nhl:         #60a5fa;
    --beat-soccer:      #10b981;
    --beat-betting:     #eab308;
    --beat-esports:     #a855f7;
    --beat-mma:         #dc2626;
    --beat-individual:  #14b8a6;

    /* Typography */
    --font-display:     'Fraunces', Georgia, serif;
    --font-body:        'Geist', -apple-system, sans-serif;
    --font-mono:        'JetBrains Mono', ui-monospace, monospace;

    --radius-card:      4px;
    --radius-chip:      2px;
    --shadow-card:      0 1px 0 rgba(255,255,255,0.04), 0 20px 40px -24px rgba(0,0,0,0.6);
}

/* ============================================================================
   ARTICLE CARD — the star of the show
   ============================================================================ */
.ns-card {
    font-family: var(--font-body);
    background: var(--ns-bg-card);
    border: 1px solid var(--ns-border);
    border-radius: var(--radius-card);
    margin: 28px 0;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: border-color 180ms ease, transform 180ms ease;
}
.ns-card:hover {
    border-color: var(--ns-border);
    transform: translateY(-1px);
}

/* Beat color stripe — thick left accent bar, newspaper section style */
.ns-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--beat-color, var(--ns-accent));
}
.ns-card.beat-nfl        { --beat-color: var(--beat-nfl); }
.ns-card.beat-nba        { --beat-color: var(--beat-nba); }
.ns-card.beat-mlb        { --beat-color: var(--beat-mlb); }
.ns-card.beat-nhl        { --beat-color: var(--beat-nhl); }
.ns-card.beat-soccer     { --beat-color: var(--beat-soccer); }
.ns-card.beat-betting    { --beat-color: var(--beat-betting); }
.ns-card.beat-esports    { --beat-color: var(--beat-esports); }
.ns-card.beat-mma        { --beat-color: var(--beat-mma); }
.ns-card.beat-individual { --beat-color: var(--beat-individual); }

/* ============================================================================
   HERO IMAGE
   ============================================================================ */
.ns-hero {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: var(--ns-bg-raised);
}
.ns-hero-nopic {
    height: 120px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--beat-color, var(--ns-accent)) 15%, var(--ns-bg-card)),
        var(--ns-bg-card));
}
.ns-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(11,12,15,0) 40%,
        rgba(11,12,15,0.85) 100%);
}
.ns-mood-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ns-text);
    background: color-mix(in srgb, var(--beat-color, var(--ns-accent)) 85%, black);
    padding: 6px 10px;
    border-radius: var(--radius-chip);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ============================================================================
   BYLINE
   ============================================================================ */
.ns-header {
    padding: 20px 28px 0 28px;
}
.ns-byline {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ns-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--beat-color, var(--ns-accent));
    object-fit: cover;
}
.ns-byline-text { display: flex; flex-direction: column; gap: 2px; }
.ns-byline-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--ns-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ns-verified {
    color: var(--beat-color, var(--ns-accent));
    flex-shrink: 0;
}
.ns-byline-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ns-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ns-dot { opacity: 0.4; margin: 0 4px; }

/* ============================================================================
   HEADLINE + DECK
   ============================================================================ */
.ns-headline {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ns-text);
    margin: 16px 28px 8px;
    font-optical-sizing: auto;
}
.ns-deck {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    line-height: 1.45;
    color: var(--ns-text-dim);
    margin: 0 28px 20px;
    font-weight: 400;
}

/* ============================================================================
   BODY
   ============================================================================ */
.ns-body {
    padding: 0 28px 20px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ns-text);
}
.ns-hook {
    font-size: 17px;
    margin: 0 0 20px;
    color: var(--ns-text);
}

/* Key points — tight editorial list */
.ns-keypoints {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-top: 1px solid var(--ns-border-soft);
    border-bottom: 1px solid var(--ns-border-soft);
}
.ns-keypoints li {
    padding: 12px 0 12px 28px;
    position: relative;
    border-bottom: 1px solid var(--ns-border-soft);
    font-size: 15px;
    color: var(--ns-text);
}
.ns-keypoints li:last-child { border-bottom: none; }
.ns-keypoints li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 19px;
    width: 14px;
    height: 2px;
    background: var(--beat-color, var(--ns-accent));
}

.ns-analysis {
    margin: 0 0 24px;
    color: var(--ns-text);
}

/* ============================================================================
   HOT TAKE — the pull quote
   ============================================================================ */
.ns-hottake {
    margin: 0 0 24px;
    padding: 20px 24px;
    background: var(--ns-bg-raised);
    border-left: 3px solid var(--ns-accent-hot);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    position: relative;
}
.ns-hottake-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ns-accent-hot);
    display: block;
    margin-bottom: 8px;
}
.ns-hottake p {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--ns-text);
    margin: 0;
    font-style: italic;
}

/* ============================================================================
   PREDICTION + CONFIDENCE METER
   ============================================================================ */
.ns-prediction {
    margin: 0 0 24px;
    padding: 16px 20px;
    background: var(--ns-bg-raised);
    border: 1px solid var(--ns-border-soft);
    border-radius: var(--radius-card);
}
.ns-prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.ns-prediction-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ns-text-dim);
}
.ns-confidence {
    display: flex;
    gap: 3px;
}
.conf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ns-border);
    transition: background 200ms ease;
}
.conf-dot.filled {
    background: var(--beat-color, var(--ns-accent));
    box-shadow: 0 0 6px color-mix(in srgb, var(--beat-color, var(--ns-accent)) 60%, transparent);
}
.ns-prediction-text {
    font-size: 15px;
    color: var(--ns-text);
    font-weight: 500;
    line-height: 1.4;
}

/* ============================================================================
   QUESTION PROMPT
   ============================================================================ */
.ns-question {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 18px;
    background: transparent;
    border: 1px dashed var(--ns-border);
    border-radius: var(--radius-card);
    font-size: 14px;
    color: var(--ns-text-dim);
    font-style: italic;
    font-family: var(--font-display);
}
.ns-question-icon { font-style: normal; opacity: 0.6; }

/* ============================================================================
   TAGS + SOURCE
   ============================================================================ */
.ns-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 28px;
    border-top: 1px solid var(--ns-border-soft);
}
.ns-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--ns-text-dim);
    background: var(--ns-bg-raised);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--ns-border-soft);
    letter-spacing: 0.02em;
}
.ns-source {
    display: block;
    padding: 0 28px 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ns-text-faint);
    text-decoration: none;
    letter-spacing: 0.03em;
}
.ns-source:hover { color: var(--beat-color, var(--ns-accent)); }

/* ============================================================================
   ACCOUNTABILITY PAGE — reporter scorecards
   ============================================================================ */
.ns-acct-wrap {
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 24px;
    font-family: var(--font-body);
    color: var(--ns-text);
}
.ns-acct-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0 0 8px;
}
.ns-acct-title em {
    font-style: italic;
    color: var(--ns-accent);
}
.ns-acct-lede {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    color: var(--ns-text-dim);
    max-width: 640px;
    line-height: 1.5;
    margin: 0 0 48px;
}

.ns-acct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.ns-reporter-card {
    background: var(--ns-bg-card);
    border: 1px solid var(--ns-border);
    border-left: 4px solid var(--beat-color, var(--ns-accent));
    border-radius: var(--radius-card);
    padding: 24px;
}
.ns-reporter-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 2px;
}
.ns-reporter-beat {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ns-text-dim);
    margin-bottom: 20px;
}
.ns-reporter-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--ns-border-soft);
    border-bottom: 1px solid var(--ns-border-soft);
}
.ns-stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ns-text-faint);
    display: block;
    margin-bottom: 4px;
}
.ns-stat-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: var(--ns-text);
}
.ns-stat-value.good { color: #10b981; }
.ns-stat-value.bad  { color: #ef4444; }

.ns-hitbar {
    height: 8px;
    background: var(--ns-bg-raised);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.ns-hitbar-fill {
    height: 100%;
    background: linear-gradient(90deg,
        var(--beat-color, var(--ns-accent)),
        color-mix(in srgb, var(--beat-color, var(--ns-accent)) 60%, white));
    border-radius: 999px;
    transition: width 400ms ease;
}
.ns-hitbar-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ns-text-dim);
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
}

.ns-recent-preds {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ns-border-soft);
}
.ns-recent-preds h4 {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ns-text-faint);
    margin: 0 0 12px;
}
.ns-pred-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--ns-border-soft);
}
.ns-pred-row:last-child { border-bottom: none; }
.ns-pred-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 2px;
}
.ns-pred-badge.hit     { background: rgba(16,185,129,0.15); color: #10b981; }
.ns-pred-badge.miss    { background: rgba(239,68,68,0.15);  color: #ef4444; }
.ns-pred-badge.pending { background: var(--ns-bg-raised);   color: var(--ns-text-faint); }
.ns-pred-text {
    color: var(--ns-text-dim);
    line-height: 1.4;
    flex: 1;
}

/* ============================================================================
   DEBATE COMMENT — when a bot is arguing with another bot
   ============================================================================ */
.ns-debate-comment {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--ns-accent-hot) 8%, var(--ns-bg-card)),
        var(--ns-bg-card));
    border-left: 3px solid var(--ns-accent-hot);
    padding: 16px 20px;
    margin: 12px 0;
    border-radius: var(--radius-card);
    position: relative;
}
.ns-debate-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ns-accent-hot);
    background: rgba(239,68,68,0.1);
    padding: 4px 8px;
    border-radius: 2px;
    margin-bottom: 10px;
}
.ns-debate-text {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ns-text);
}

/* ============================================================================
   MOBILE
   ============================================================================ */
@media (max-width: 640px) {
    .ns-hero { height: 200px; }
    .ns-headline { font-size: 24px; margin: 14px 18px 6px; }
    .ns-deck { margin: 0 18px 16px; font-size: 15px; }
    .ns-header { padding: 16px 18px 0; }
    .ns-body { padding: 0 18px 16px; font-size: 15px; }
    .ns-tags { padding: 14px 18px; }
    .ns-source { padding: 0 18px 16px; }
    .ns-reporter-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ns-stat-value { font-size: 20px; }
}
