/**
 * AR TMC News Frontend — Argon-styled news design
 */

.artmc-nf-wrap, .artmc-nf-archive-wrap, .artmc-nf-single, .artmc-nf-related, .artmc-nf-share {
	font-family: 'Cairo', system-ui, sans-serif;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ============================================================
 * ARCHIVE HEADER
 * ============================================================ */

.artmc-nf-archive-header {
	text-align: center;
	padding: 50px 16px 30px;
	max-width: 700px;
	margin: 0 auto;
}
.artmc-nf-archive-header h1 {
	font-size: 38px;
	font-weight: 800;
	color: #6f42c1;
	margin: 0 0 10px;
}
.artmc-nf-archive-header p {
	color: #64748b;
	font-size: 16px;
}

/* ============================================================
 * FILTERS BAR
 * ============================================================ */

.artmc-nf-filters {
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px;
	margin: 24px 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.artmc-nf-search {
	display: flex;
	gap: 8px;
	width: 100%;
}
.artmc-nf-search input {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	background: #fafbfc;
}
.artmc-nf-search input:focus {
	outline: none;
	border-color: #a855f7;
	background: white;
}
.artmc-nf-search button {
	padding: 12px 24px;
	background: linear-gradient(135deg, #6f42c1, #5a32a3);
	color: white;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
}

.artmc-nf-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.artmc-nf-cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	color: #475569;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.15s;
}
.artmc-nf-cat:hover {
	background: #faf5ff;
	border-color: #d8b4fe;
	color: #6f42c1;
	text-decoration: none;
}
.artmc-nf-cat.is-active {
	background: linear-gradient(135deg, #6f42c1, #5a32a3);
	border-color: transparent;
	color: white;
}
.artmc-nf-cat span {
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}
.artmc-nf-cat.is-active span {
	background: rgba(255, 255, 255, 0.25);
}

.artmc-nf-search-meta {
	color: #64748b;
	font-size: 14px;
	margin: 0 0 16px;
}

/* ============================================================
 * GRID
 * ============================================================ */

.artmc-nf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 22px;
	margin: 24px 0;
}

.artmc-nf-card {
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	transition: all 0.2s;
}
.artmc-nf-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(111, 66, 193, 0.13);
	border-color: #d8b4fe;
}
.artmc-nf-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.artmc-nf-card-link:hover { text-decoration: none; color: inherit; }

.artmc-nf-card-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	background-color: #f1f5f9;
}
.artmc-nf-card-thumb-empty {
	background-image: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 100%);
}
.artmc-nf-source-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	color: #6f42c1;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
}
.artmc-nf-card-press .artmc-nf-source-badge { color: #be185d; }

.artmc-nf-card-body { padding: 18px; }

.artmc-nf-card-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}
.artmc-nf-card-cats span {
	background: #faf5ff;
	color: #6f42c1;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}

.artmc-nf-card-title {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.artmc-nf-card:hover .artmc-nf-card-title { color: #6f42c1; }

.artmc-nf-card-excerpt {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 14px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.artmc-nf-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #94a3b8;
	font-size: 12px;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
}

/* ============================================================
 * EMPTY STATE
 * ============================================================ */

.artmc-nf-empty {
	text-align: center;
	padding: 60px 20px;
	background: #fafbfc;
	border-radius: 14px;
	margin: 24px 0;
}
.artmc-nf-empty-icon { font-size: 60px; line-height: 1; margin-bottom: 12px; }
.artmc-nf-empty h3 { color: #6f42c1; margin: 0 0 8px; }
.artmc-nf-empty p { color: #64748b; margin: 0; }

/* ============================================================
 * PAGINATION
 * ============================================================ */

.artmc-nf-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin: 30px 0;
}
.artmc-nf-page-link {
	padding: 9px 18px;
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	color: #475569;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.15s;
}
.artmc-nf-page-link:hover {
	border-color: #a855f7;
	background: #faf5ff;
	color: #6f42c1;
	text-decoration: none;
}
.artmc-nf-page-link.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.artmc-nf-page-info {
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
}

/* ============================================================
 * LATEST WIDGET
 * ============================================================ */

.artmc-nf-latest {
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px;
	font-family: 'Cairo', system-ui, sans-serif;
}
.artmc-nf-latest-title {
	margin: 0 0 14px;
	font-size: 16px;
	color: #6f42c1;
	font-weight: 700;
	padding-bottom: 10px;
	border-bottom: 2px solid #faf5ff;
}
.artmc-nf-latest-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.artmc-nf-latest-item a {
	display: flex;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s;
	padding: 6px;
	border-radius: 8px;
}
.artmc-nf-latest-item a:hover { background: #faf5ff; text-decoration: none; color: inherit; }
.artmc-nf-latest-thumb {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	background-size: cover;
	background-position: center;
	background-color: #f1f5f9;
	border-radius: 8px;
}
.artmc-nf-latest-body h4 {
	font-size: 13px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 4px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.artmc-nf-latest-item:hover h4 { color: #6f42c1; }
.artmc-nf-latest-body small {
	color: #94a3b8;
	font-size: 11px;
}

.artmc-nf-style-compact .artmc-nf-latest-thumb { display: none; }

/* ============================================================
 * SINGLE POST ENHANCEMENTS
 * ============================================================ */

.artmc-nf-single-head {
	padding: 16px 0;
	margin-bottom: 24px;
	border-bottom: 1px solid #f1f5f9;
}
.artmc-nf-single-head .artmc-nf-source-badge {
	position: static;
	display: inline-block;
	margin-bottom: 12px;
	background: #faf5ff;
	color: #6f42c1;
}
.artmc-nf-source-press .artmc-nf-source-badge,
.artmc-nf-single-head .artmc-nf-source-press {
	background: #fce7f3;
	color: #be185d;
}

.artmc-nf-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 13px;
	color: #64748b;
	align-items: center;
}
.artmc-nf-single-cats a {
	background: #faf5ff;
	color: #6f42c1;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	text-decoration: none;
	margin-right: 4px;
	font-weight: 600;
}
.artmc-nf-single-cats a:hover { background: #e9d5ff; }

.artmc-nf-single-content {
	font-size: 16px;
	line-height: 1.85;
	color: #1a1a2e;
}
.artmc-nf-single-content p { margin-bottom: 1.2em; }
.artmc-nf-single-content h2,
.artmc-nf-single-content h3 {
	color: #6f42c1;
	margin: 1.5em 0 0.6em;
}
.artmc-nf-single-content blockquote {
	border-right: 4px solid #6f42c1;
	background: #faf5ff;
	padding: 16px 20px;
	margin: 1.5em 0;
	border-radius: 0 10px 10px 0;
	color: #475569;
	font-style: italic;
}
.artmc-nf-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 1em 0;
}

/* ============================================================
 * SHARE BUTTONS
 * ============================================================ */

.artmc-nf-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 18px 0;
	margin: 30px 0;
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
}
.artmc-nf-share strong { color: #475569; margin-left: 6px; }
.artmc-nf-share-btn {
	padding: 8px 14px;
	border: 1px solid #e2e8f0;
	background: white;
	border-radius: 8px;
	text-decoration: none;
	font-size: 13px;
	color: #475569;
	font-weight: 600;
	font-family: 'Cairo', sans-serif;
	cursor: pointer;
	transition: all 0.15s;
}
.artmc-nf-share-fb:hover { background: #1877f2; color: white; border-color: transparent; text-decoration: none; }
.artmc-nf-share-tw:hover { background: #000;     color: white; border-color: transparent; text-decoration: none; }
.artmc-nf-share-in:hover { background: #0a66c2; color: white; border-color: transparent; text-decoration: none; }
.artmc-nf-share-wa:hover { background: #25d366; color: white; border-color: transparent; text-decoration: none; }
.artmc-nf-share-copy:hover { background: #6f42c1; color: white; border-color: transparent; }

/* ============================================================
 * RELATED POSTS
 * ============================================================ */

.artmc-nf-related {
	margin: 40px 0;
	padding: 24px 0;
}
.artmc-nf-related h3 {
	font-size: 20px;
	color: #6f42c1;
	margin: 0 0 18px;
	font-weight: 700;
}
.artmc-nf-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.artmc-nf-related-item {
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: all 0.15s;
	display: block;
}
.artmc-nf-related-item:hover {
	transform: translateY(-2px);
	border-color: #d8b4fe;
	text-decoration: none;
	color: inherit;
}
.artmc-nf-related-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
	background-color: #f1f5f9;
}
.artmc-nf-related-body { padding: 12px 14px; }
.artmc-nf-related-body h4 {
	font-size: 14px;
	margin: 0 0 4px;
	color: #1a1a2e;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.artmc-nf-related-body small { color: #94a3b8; font-size: 11px; }

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

@media (max-width: 600px) {
	.artmc-nf-archive-header { padding: 30px 16px 20px; }
	.artmc-nf-archive-header h1 { font-size: 28px; }
	.artmc-nf-grid { grid-template-columns: 1fr; }
	.artmc-nf-filters { padding: 14px; }
	.artmc-nf-share { flex-direction: column; align-items: stretch; }
	.artmc-nf-share strong { text-align: center; margin: 0 0 4px; }
}
