/* =============================================================================
   NewsSync PRO — Daily Briefing Styles
   Used by: [newssync_daily_briefing] and [newssync_briefing_ticker]
   ============================================================================= */

/* ── Briefing Ticker Overrides ───────────────────────────────────────────────
   Extends the base .nsp-ticker with larger, bolder text and a pulsing feel.
   The base ticker CSS + JS are always loaded first (nsp-ticker handle).
   =========================================================================== */

.nsp-briefing-ticker {
    height: 52px;
    background: #0a0f1e;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.nsp-briefing-ticker .nsp-ticker__track-wrap::before {
    background: linear-gradient(to right, #0a0f1e 0%, transparent 100%);
}

/* Left badge: show the date in a bold pill */
.nsp-bticker__label {
    font-size: 10px;
    letter-spacing: 0.14em;
    padding: 0 18px 0 14px;
}

/* The repeating "DAILY BRIEFING" text */
.nsp-bticker__item {
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase;
    color: #f1f5f9 !important;
    text-decoration: none !important;
    padding: 0 24px !important;
    white-space: nowrap;
    transition: color 0.2s;
}

a.nsp-bticker__item:hover {
    color: var(--nsp-ticker-accent, #e11d48) !important;
    text-decoration: none !important;
}

/* Separator between repetitions */
.nsp-bticker__sep {
    color: var(--nsp-ticker-accent, #e11d48);
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.85;
}

/* ── Daily Briefing Content Block ────────────────────────────────────────────
   Rendered by [newssync_daily_briefing] shortcode.
   =========================================================================== */

.nsp-briefing-container {
    font-family: inherit;
    line-height: 1.7;
    color: inherit;
    max-width: 820px;
}

/* Header: icon + title + date */
.nsp-briefing-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.nsp-briefing-icon {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
}

.nsp-briefing-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.5em !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    flex: 1;
}

.nsp-briefing-date {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */

.nsp-briefing-body {
    padding: 0;
}

/* Intro paragraph */
.nsp-brief-intro {
    font-size: 1.05em;
    color: inherit;
    margin: 0 0 28px !important;
    padding: 16px 20px;
    border-left: 4px solid #e11d48;
    background: #fafafa;
    border-radius: 0 6px 6px 0;
}

/* Each topic section */
.nsp-brief-section {
    margin: 0 0 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.nsp-brief-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Bold section headline */
.nsp-brief-headline {
    margin: 0 0 10px !important;
    font-size: 1.08em;
}

.nsp-brief-headline strong {
    font-weight: 800;
    color: #0f172a;
}

/* Body paragraph */
.nsp-brief-para {
    margin: 0 0 8px !important;
    color: inherit;
    font-size: 0.97em;
}

.nsp-brief-para:last-child {
    margin-bottom: 0 !important;
}

/* Inline source link */
.nsp-brief-source {
    display: inline;
    font-size: 0.85em;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-left: 4px;
    white-space: nowrap;
    border-bottom: 1px dotted #93c5fd;
    transition: color 0.15s, border-color 0.15s;
}

.nsp-brief-source:hover {
    color: #1d4ed8;
    border-bottom-style: solid;
}

/* ── Dark-mode support ───────────────────────────────────────────────────────
   Detects the site's OS/browser dark preference. Overrides are minimal
   to avoid fighting theme dark-mode implementations.
   =========================================================================== */

@media (prefers-color-scheme: dark) {
    .nsp-brief-intro {
        background: rgba(255, 255, 255, 0.04);
        color: #e2e8f0;
    }

    .nsp-brief-headline strong {
        color: #f1f5f9;
    }

    .nsp-brief-section {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .nsp-briefing-header {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .nsp-brief-source {
        color: #60a5fa;
        border-bottom-color: rgba(96, 165, 250, 0.4);
    }

    .nsp-brief-source:hover {
        color: #93c5fd;
    }
}
