/* ============================================================
   ARTICLE.CSS — Article Content + Single Page Styles
   Used on: single.php, single-*.php, page.php, gk_question
   ============================================================ */

/* ----------------------------------------------------------
   Article Wrapper
   ---------------------------------------------------------- */
.wl-single-article {
	background: var(--wl-color-white);
	border: 1px solid var(--wl-color-border);
	border-radius: var(--wl-radius-lg);
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* ----------------------------------------------------------
   Article Header (template-parts/article/article-header.php)
   ---------------------------------------------------------- */
.wl-article-header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wl-color-border);
}

.wl-article-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 1rem 0;
	color: var(--wl-color-text-main);
	border-left: 4px solid var(--wl-color-primary);
	padding-left: 1rem;
}

.wl-article-meta {
	font-size: 0.9rem;
	color: var(--wl-color-text-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.wl-badge-category {
	background-color: var(--wl-color-primary-light);
	color: var(--wl-color-primary);
	padding: 0.25rem 0.75rem;
	border-radius: var(--wl-radius-md);
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	display: inline-block;
}

/* ----------------------------------------------------------
   Article Intro Box (single-gk_question.php)
   ---------------------------------------------------------- */
.wl-article-intro-box {
	background-color: var(--wl-color-bg-alt);
	border: 1px solid var(--wl-color-border);
	border-radius: var(--wl-radius-md);
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.wl-intro-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1rem;
}

.wl-stat-badge {
	background: var(--wl-color-white);
	border: 1px solid var(--wl-color-border);
	padding: 0.25rem 0.75rem;
	border-radius: var(--wl-radius-sm);
	font-size: 0.85rem;
	color: var(--wl-color-text-main);
}

/* ----------------------------------------------------------
   Article Content Body
   ---------------------------------------------------------- */
.wl-article-content {
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--wl-color-text-main);
}

.wl-article-content h2,
.wl-article-content h3 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-weight: 600;
	color: var(--wl-color-heading);
}

.wl-article-content h2 {
	font-size: 1.5rem;
}

.wl-article-content h3 {
	font-size: 1.25rem;
}

.wl-article-content p {
	margin-bottom: 1.5rem;
}

.wl-article-content ul,
.wl-article-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.wl-article-content li {
	margin-bottom: 0.5rem;
}

/* ----------------------------------------------------------
   Important Facts Box
   ---------------------------------------------------------- */
.wl-important-facts {
	background-color: #f0f7ff;
	border: 1px solid #cce0ff;
	border-radius: var(--wl-radius-md);
	padding: 1.5rem;
	margin: 2rem 0;
}

.wl-important-facts-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #004085;
	text-transform: uppercase;
}

.wl-important-facts ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wl-important-facts li {
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(0, 64, 133, 0.1);
	display: flex;
	align-items: center;
}

.wl-important-facts li:last-child {
	border-bottom: none;
}

.wl-important-facts li::before {
	content: "•";
	color: #0056b3;
	font-weight: bold;
	display: inline-block;
	width: 1em;
	margin-right: 0.5rem;
}

/* ----------------------------------------------------------
   Ad Placeholder
   ---------------------------------------------------------- */
.wl-ad-placeholder {
	width: 100%;
	max-width: 728px;
	height: 90px;
	background-color: #f1f1f1;
	border: 1px dashed #ccc;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 2rem auto;
	color: #999;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ----------------------------------------------------------
   Related Articles Section
   ---------------------------------------------------------- */
.wl-related-section {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--wl-color-border);
}

.wl-related-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: var(--wl-color-heading);
}

.wl-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
}

.wl-related-card {
	background: var(--wl-color-white);
	border: 1px solid var(--wl-color-border);
	border-radius: var(--wl-radius-md);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.wl-related-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.wl-related-thumb img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
}

.wl-related-content {
	padding: 1rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.wl-related-card-title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.wl-related-card-title a {
	color: var(--wl-color-text-main);
	text-decoration: none;
}

.wl-related-card-title a:hover {
	color: var(--wl-color-primary);
}

.wl-related-meta {
	font-size: 0.8rem;
	color: var(--wl-color-text-muted);
	margin-top: auto;
}

/* ----------------------------------------------------------
   Share Buttons (template-parts/article/share.php)
   ---------------------------------------------------------- */
.wl-share-container {
	display: flex;
	gap: 0.5rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.wl-share-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border: 1px solid var(--wl-color-border);
	border-radius: var(--wl-radius-md);
	font-size: 0.85rem;
	color: var(--wl-color-text-main);
	text-decoration: none;
	background: var(--wl-color-white);
	cursor: pointer;
	transition: background 0.2s;
}

.wl-share-btn:hover {
	background: var(--wl-color-bg-alt);
}

.wl-share-btn svg {
	width: 16px;
	height: 16px;
	margin-right: 0.5rem;
}

/* ----------------------------------------------------------
   Single/Page Template Styles
   Used in: page.php, single.php
   ---------------------------------------------------------- */
.wl-single-header {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--wl-color-border);
}

.wl-single-title {
	font-size: 2.5rem;
	margin: 1rem 0;
}

.wl-single-meta {
	display: flex;
	gap: 1rem;
	color: var(--wl-color-muted);
	font-size: 0.875rem;
}

.wl-single-thumbnail {
	margin-bottom: 2rem;
}

.wl-single-thumbnail img {
	width: 100%;
	border-radius: var(--wl-radius-lg);
}

.wl-single-content {
	font-size: 1.125rem;
}

.wl-single-content h2,
.wl-single-content h3 {
	margin-top: 2rem;
}

/* ============================================================
   Single Current Affair — Premium Article UI
   ============================================================ */

.wl-ca-article {
	background: var(--wl-color-white);
	border: 1px solid var(--wl-color-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.05);
	margin-bottom: 2rem;
}

/* ── Article Header ── */
.wl-ca-article-header {
	padding: 1.75rem 2rem 1.25rem;
	border-top: 4px solid var(--wl-color-blue, #1a73e8);
	background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
	border-bottom: 1px solid var(--wl-color-border);
}

.wl-ca-article-meta-top {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.85rem;
}

.wl-ca-cat-badge {
	display: inline-block;
	background: var(--wl-color-blue, #1a73e8);
	color: white;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 3px 10px;
	border-radius: 20px;
	text-decoration: none;
	transition: opacity 0.2s;
}

.wl-ca-cat-badge:hover {
	opacity: 0.85;
	color: white;
}

.wl-ca-date {
	font-size: 0.82rem;
	color: var(--wl-color-muted);
}

.wl-ca-article-title {
	font-size: clamp(1.4rem, 2.5vw, 2rem);
	font-weight: 800;
	line-height: 1.35;
	color: var(--wl-color-primary);
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

/* ── Tags ── */
.wl-ca-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.5rem;
}

.wl-ca-tag {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	text-decoration: none;
	transition: opacity 0.2s;
}

.wl-ca-tag-topic {
	background: #e8f0fe;
	color: #1a73e8;
}

.wl-ca-tag-state {
	background: #e6f4ea;
	color: #137333;
}

.wl-ca-tag:hover {
	opacity: 0.75;
}

/* ── Featured Image ── */
.wl-ca-article-thumb {
	overflow: hidden;
	max-height: 420px;
}

.wl-ca-article-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── Article Body ── */
.wl-ca-article-body {
	padding: 2rem;
	font-size: 1rem;
	line-height: 1.8;
	color: #2d2d2d;
}

.wl-ca-article-body h2 {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--wl-color-primary);
	margin: 2rem 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--wl-color-blue, #1a73e8);
}

.wl-ca-article-body h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--wl-color-primary);
	margin: 1.5rem 0 0.5rem;
}

.wl-ca-article-body p {
	margin-bottom: 1.25rem;
}

.wl-ca-article-body ul,
.wl-ca-article-body ol {
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}

.wl-ca-article-body li {
	margin-bottom: 0.4rem;
}

.wl-ca-article-body strong {
	color: var(--wl-color-primary);
}

.wl-ca-article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.92rem;
}

.wl-ca-article-body table th {
	background: var(--wl-color-blue, #1a73e8);
	color: white;
	padding: 0.6rem 1rem;
	text-align: left;
	font-weight: 600;
}

.wl-ca-article-body table td {
	padding: 0.55rem 1rem;
	border-bottom: 1px solid var(--wl-color-border);
}

.wl-ca-article-body table tr:nth-child(even) td {
	background: #f8fbff;
}

/* ── MCQ Section Header ── */
.wl-mcq-section-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 2rem 0;
	padding: 1rem 1.25rem;
	background: linear-gradient(135deg, #1a73e8, #1557b0);
	border-radius: 10px;
}

.wl-mcq-section-icon {
	font-size: 1.5rem;
}

.wl-mcq-section-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: white;
	margin: 0;
	flex: 1;
}

.wl-mcq-count-badge {
	background: rgba(255,255,255,0.2);
	color: white;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

.wl-mcq-wrapper {
	padding: 1.25rem 2rem 2rem;
}

.wl-mcq-qnum {
	color: var(--wl-color-blue, #1a73e8);
	font-weight: 700;
	margin-right: 6px;
}

/* ── Article Footer ── */
.wl-ca-article-footer {
	padding: 1rem 2rem;
	background: #f8fbff;
	border-top: 1px solid var(--wl-color-border);
}

.wl-ca-footer-note {
	font-size: 0.82rem;
	color: var(--wl-color-muted);
	margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.wl-ca-article-header,
	.wl-ca-article-body,
	.wl-mcq-section-header,
	.wl-mcq-wrapper,
	.wl-ca-article-footer {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.wl-ca-article-title {
		font-size: 1.3rem;
	}
}

