/* ==========================================================================
   NewsPersona — base theme
   ========================================================================== */

:root {
	--np-navy: #1e2559;
	--np-navy-2: #2d1e6b;
	--np-purple: #6d28d9;
	--np-bg: #f3f4f8;
	--np-card: #ffffff;
	--np-border: #e6e7ef;
	--np-text: #1f2333;
	--np-muted: #6b7280;
	--np-radius: 14px;
	--np-radius-sm: 8px;
	--np-shadow: 0 2px 10px rgba(30, 37, 89, 0.06);
}

* { box-sizing: border-box; }

body {
	background: var(--np-bg);
	color: var(--np-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
	line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

/* Header ------------------------------------------------------------------ */
.np-header {
	background: linear-gradient(90deg, var(--np-navy), var(--np-navy-2));
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
}
.np-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 14px 24px;
}
.np-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 19px; }
.np-logo-mark { font-size: 22px; }
.np-logo-text em { color: #a78bfa; font-style: normal; }
.np-nav { flex: 1; }
.np-menu { display: flex; gap: 26px; flex-wrap: wrap; }
.np-menu a { color: rgba(255,255,255,.88); font-size: 14.5px; }
.np-menu a:hover { color: #fff; }
.np-header-actions { display: flex; gap: 10px; align-items: center; }
.np-icon-btn {
	background: rgba(255,255,255,.12);
	border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%;
	cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.np-avatar { background: #fff; color: var(--np-navy); }
.np-search-overlay { display: none; background: rgba(0,0,0,.15); padding: 10px 24px 16px; }
.np-search-overlay.open { display: block; }
.np-search-overlay form { display: flex; max-width: 1280px; margin: 0 auto; gap: 8px; }
.np-search-overlay input { flex: 1; padding: 10px 14px; border-radius: var(--np-radius-sm); border: none; }
.np-search-overlay button { padding: 10px 18px; border: none; border-radius: var(--np-radius-sm); background: var(--np-purple); color: #fff; cursor: pointer; }

/* Layout -------------------------------------------------------------------*/
.np-home, .np-page, .np-article-wrap { max-width: 1280px; margin: 0 auto; padding: 24px; }
.np-archive-title { font-size: 26px; margin-bottom: 16px; }

/* Hero (front page top trending story) -------------------------------------*/
.np-hero { background: var(--np-card); border-radius: var(--np-radius); padding: 24px; box-shadow: var(--np-shadow); margin-bottom: 24px; }
.np-hero-badge { display: inline-block; background: #fee2e2; color: #dc2626; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }
.np-hero-title { display: block; font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.np-hero-title:hover { text-decoration: underline; }
.np-hero-meta { display: flex; gap: 16px; color: var(--np-muted); font-size: 13px; margin-bottom: 14px; }
.np-hero-image { border-radius: var(--np-radius-sm); margin-bottom: 14px; width: 100%; max-height: 380px; object-fit: cover; }
.np-hero-excerpt { color: #374151; }

/* Filters + tabs ------------------------------------------------------------*/
.np-filters { display: flex; gap: 20px; flex-wrap: wrap; background: var(--np-card); border-radius: var(--np-radius); padding: 14px 18px; box-shadow: var(--np-shadow); margin-bottom: 16px; }
.np-filter-group { display: flex; flex-direction: column; font-size: 12px; color: var(--np-muted); gap: 4px; }
.np-filter-group select { padding: 6px 10px; border-radius: var(--np-radius-sm); border: 1px solid var(--np-border); }
.np-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.np-tab-btn { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--np-border); background: #fff; cursor: pointer; font-weight: 600; }
.np-tab-btn.active { background: var(--np-navy); color: #fff; border-color: var(--np-navy); }

/* Card grid ------------------------------------------------------------- */
.np-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.np-card { background: var(--np-card); border-radius: var(--np-radius); overflow: hidden; box-shadow: var(--np-shadow); display: flex; flex-direction: column; }
.np-card-image-link { position: relative; display: block; }
.np-card-image { width: 100%; height: 170px; object-fit: cover; }
.np-card-image-placeholder { display: flex; align-items: center; justify-content: center; background: #eef0f7; font-size: 34px; }
.np-card-cat { position: absolute; top: 10px; left: 10px; background: rgba(30,37,89,.85); color: #fff; font-size: 11px; padding: 3px 9px; border-radius: 20px; }
.np-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.np-card-title { font-size: 16px; margin: 0; line-height: 1.35; }
.np-card-title a:hover { text-decoration: underline; }
.np-card-excerpt { font-size: 13.5px; color: var(--np-muted); margin: 0; flex: 1; }
.np-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--np-muted); }
.np-empty-state { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--np-muted); background: #fff; border-radius: var(--np-radius); }
.np-load-more-wrap { text-align: center; margin: 26px 0; }

/* Buttons / pills ------------------------------------------------------- */
.np-btn-outline, .np-btn-primary {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--np-radius-sm);
	font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.np-btn-outline { background: #fff; border: 1px solid var(--np-border); color: var(--np-text); }
.np-btn-primary { background: var(--np-navy); border: none; color: #fff; }
.np-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.np-pill-red { background: #fee2e2; color: #b91c1c; }
.np-pill-amber { background: #fef3c7; color: #92400e; }
.np-pill-gray { background: #e5e7eb; color: #374151; }
.np-pill-green { background: #dcfce7; color: #15803d; }

/* Article layout ------------------------------------------------------- */
.np-article-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .np-article-grid { grid-template-columns: 1fr; } }

.np-article-top { display: flex; gap: 8px; margin-bottom: 10px; }
.np-eyebrow { background: #ede9fe; color: #6d28d9; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.np-eyebrow-trend { background: #fee2e2; color: #dc2626; }
.np-article-title { font-size: 30px; font-weight: 800; margin: 6px 0 12px; line-height: 1.25; }
.np-article-meta { display: flex; gap: 16px; color: var(--np-muted); font-size: 13px; margin-bottom: 16px; }
.np-article-hero img { border-radius: var(--np-radius); width: 100%; max-height: 420px; object-fit: cover; margin-bottom: 16px; }
.np-article-toolbar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.np-box { background: var(--np-card); border-radius: var(--np-radius); padding: 20px; box-shadow: var(--np-shadow); margin-bottom: 20px; }
.np-box h3 { margin-top: 0; font-size: 16px; }
.np-box-head { display: flex; justify-content: space-between; align-items: center; }
.np-box-head a { font-size: 13px; color: var(--np-purple); font-weight: 600; }
.np-summary-box .np-article-content { color: #374151; }

.np-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .np-grid-2 { grid-template-columns: 1fr; } }
.np-check-list li { padding: 4px 0; color: #374151; font-size: 14px; }
.np-score-bar { background: #e5e7eb; border-radius: 6px; height: 8px; margin-top: 8px; overflow: hidden; }
.np-score-bar span { display: block; height: 100%; background: linear-gradient(90deg, #6d28d9, #a78bfa); }

.np-market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 12px; }
.np-market-stat { text-align: center; background: #f8f9fc; border-radius: var(--np-radius-sm); padding: 14px 8px; }
.np-market-label { font-size: 12px; color: var(--np-muted); }
.np-market-value { font-size: 20px; font-weight: 800; margin: 4px 0; }
.np-market-value.np-up { color: #15803d; }
.np-market-value.np-down { color: #b91c1c; }
.np-market-note { font-size: 11px; color: var(--np-muted); }

.np-related-list li { margin-bottom: 12px; }
.np-related-list a { display: flex; gap: 12px; align-items: center; }
.np-related-list img, .np-related-thumb-placeholder { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: #eef0f7; display: flex; align-items: center; justify-content: center; }
.np-related-list strong { display: block; font-size: 14px; }
.np-related-list em { font-style: normal; font-size: 12px; color: var(--np-muted); }

/* Persona sidebar -------------------------------------------------------- */
.np-sidebar-title { font-size: 16px; margin-bottom: 14px; }
.np-persona-list { display: flex; flex-direction: column; gap: 14px; }
.np-persona-card { background: var(--np-card); border-radius: var(--np-radius-sm); border-left: 5px solid #999; padding: 14px 16px; box-shadow: var(--np-shadow); }
.np-persona-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.np-persona-dot { width: 8px; height: 8px; border-radius: 50%; }
.np-persona-name { font-size: 14px; }
.np-persona-time { margin-left: auto; font-size: 11px; color: var(--np-muted); }
.np-persona-text { font-size: 15px; line-height: 1.55; color: #374151; margin: 0 0 10px; }
.np-persona-actions { display: flex; gap: 14px; font-size: 12px; color: var(--np-muted); }
.np-persona-actions button { background: none; border: none; cursor: pointer; color: var(--np-muted); font-size: 12px; padding: 0; }
.np-persona-actions button:hover { color: var(--np-navy); }

/* Comments ---------------------------------------------------------------*/
.np-comment-list { display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.np-comment { display: flex; gap: 12px; }
.np-comment-avatar img { border-radius: 50%; }
.np-comment-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.np-badge.np-country-badge { background: #eef0f7; color: var(--np-muted); font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.np-comment-time { color: var(--np-muted); font-size: 12px; margin-left: auto; }
.np-comment-text { font-size: 13.5px; color: #374151; margin: 4px 0; }
.np-comment-actions { display: flex; gap: 16px; font-size: 12px; color: var(--np-muted); }
#np-comments textarea, #np-comments input[type="text"], #np-comments input[type="email"] {
	width: 100%; padding: 10px 12px; border-radius: var(--np-radius-sm); border: 1px solid var(--np-border); margin-bottom: 10px; font-family: inherit;
}
.np-comment-guidelines { font-size: 12px; color: var(--np-muted); }

/* Footer -------------------------------------------------------------------*/
.np-footer { background: var(--np-navy); color: rgba(255,255,255,.85); margin-top: 40px; }
.np-footer-inner { max-width: 1280px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 24px; }
@media (max-width: 900px) { .np-footer-inner { grid-template-columns: repeat(2, 1fr); } }
.np-footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.np-footer-col ul li { margin-bottom: 8px; font-size: 13.5px; }
.np-footer-col a:hover { color: #fff; }
.np-social { display: flex; gap: 10px; margin-top: 12px; }
.np-newsletter-form { display: flex; gap: 6px; margin-top: 8px; }
.np-newsletter-form input { flex: 1; padding: 8px 10px; border-radius: 6px; border: none; }
.np-newsletter-form button { background: var(--np-purple); color: #fff; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.np-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 24px; max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 8px; }
.np-footer-bottom a { margin-right: 12px; }
