/**
 * Arsatar blog — premium archive grid + single reading styles.
 */

:root {
	--arsatar-blog-green: #1b6b4a;
	--arsatar-blog-green-deep: #0a3d2a;
	--arsatar-blog-ink: #1a2420;
	--arsatar-blog-muted: #5a6b63;
	--arsatar-blog-line: #d7e3dc;
	--arsatar-blog-surface: #f4f7f5;
	--ablog-rail: min(1222px, calc(100% - 2 * clamp(15px, 2vw, 24px)));
}

/* Hide author on archive + single */
body.arsatar-blog .meta-author,
body.arsatar-blog .wd-meta-author,
body.arsatar-blog .author-info,
body.arsatar-blog .entry-meta-list .meta-author {
	display: none !important;
}

/* ——— Archive page shell ——— */
body.arsatar-blog-page .wd-content-area,
body.arsatar-blog-page .main-page-wrapper,
body.arsatar-blog-page .site-content {
	background: var(--arsatar-blog-surface) !important;
	padding-top: 0 !important;
}

body.arsatar-blog-page .wd-page-content,
body.arsatar-blog-page .entry-content,
body.arsatar-blog-page .content-layout-wrapper {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.arsatar-blog-page .wd-page-title,
body.arsatar-blog-page .page-title {
	display: none !important;
}

.ablog-page {
	width: 100%;
	font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
	color: var(--arsatar-blog-ink);
	background: var(--arsatar-blog-surface);
	padding-bottom: clamp(48px, 6vw, 72px);
}

.ablog-archive__inner {
	width: var(--ablog-rail);
	margin: clamp(28px, 4vw, 44px) auto 0;
}

/* 4-column premium grid */
.ablog-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 1.8vw, 22px);
}

@media (max-width: 1280px) {
	.ablog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 992px) {
	.ablog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 576px) {
	.ablog-grid {
		grid-template-columns: 1fr;
	}
}

/* Card */
.ablog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: none !important;
	transition: border-color 0.2s ease;
}

.ablog-card:hover {
	transform: none;
	border-color: #15803d;
	box-shadow: none !important;
}

.ablog-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(145deg, #e8f1ec, #d7e3dc);
}

.ablog-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.ablog-card:hover .ablog-card__img {
	transform: scale(1.04);
}

.ablog-card__img--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 40%, rgba(27, 107, 74, 0.15), transparent 55%),
		linear-gradient(145deg, #e8f1ec, #d7e3dc);
}

.ablog-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 16px 16px 18px;
	gap: 0;
}

.ablog-card__cat {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.2;
}

.ablog-card__title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: -0.02em;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: calc(2 * 1.35em);
}

.ablog-card__title a {
	color: #0f172a !important;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.ablog-card__title a:hover {
	color: #15803d !important;
}

.ablog-card__excerpt {
	margin: 10px 0 0;
	font-size: 0.86rem;
	line-height: 1.55;
	color: #64748b;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: calc(2 * 1.55em);
}

.ablog-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid #f1f5f9;
}

.ablog-card__date {
	font-size: 0.78rem;
	color: #94a3b8;
	white-space: nowrap;
}

.ablog-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	border-radius: 0;
	background: transparent !important;
	color: #15803d !important;
	font-size: 0.82rem;
	font-weight: 650;
	text-decoration: none !important;
	line-height: 1;
	white-space: nowrap;
	box-shadow: none !important;
	border: none !important;
	transition: color 0.15s ease, transform 0.15s ease;
}

.ablog-card__btn:hover {
	background: transparent !important;
	color: #166534 !important;
	transform: translateX(3px);
	box-shadow: none !important;
}

.ablog-card__btn svg {
	flex-shrink: 0;
}

/* Pagination */
.ablog-pagination {
	margin-top: clamp(28px, 4vw, 40px);
}

.ablog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ablog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--arsatar-blog-line);
	background: #fff;
	color: var(--arsatar-blog-ink);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ablog-pagination .page-numbers.current,
.ablog-pagination .page-numbers:hover {
	background: var(--arsatar-blog-green);
	border-color: var(--arsatar-blog-green);
	color: #fff;
}

.ablog-empty {
	margin: 0;
	padding: 48px 24px;
	text-align: center;
	color: var(--arsatar-blog-muted);
	background: #fff;
	border-radius: 14px;
	border: 1px dashed var(--arsatar-blog-line);
}

/* ——— Single post reading ——— */
body.arsatar-blog-single .wd-content-area,
body.arsatar-blog-single .main-page-wrapper,
body.arsatar-blog-single .site-content,
body.arsatar-blog-single .wd-content-layout,
body.single-post .wd-content-area,
body.single-post .main-page-wrapper,
body.single-post .site-content,
body.single-post .wd-content-layout {
	display: block !important;
	background: var(--arsatar-blog-surface) !important;
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	grid-template-columns: none !important;
	grid-gap: 0 !important;
}

body.arsatar-blog-single .wd-page-content,
body.arsatar-blog-single .content-layout-wrapper,
body.single-post .wd-page-content,
body.single-post .content-layout-wrapper {
	display: block !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}

body.arsatar-blog-single .sidebar,
body.arsatar-blog-single .sidebar-container,
body.arsatar-blog-single .wd-sidebar,
body.single-post .sidebar,
body.single-post .sidebar-container,
body.single-post .wd-sidebar {
	display: none !important;
}

.arsatar-blog-single-view {
	width: 100% !important;
	max-width: 100% !important;
	display: block !important;
}

body.arsatar-blog-single .entry-content,
body.arsatar-blog-single .wd-entry-content {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	color: var(--arsatar-blog-ink);
	font-size: 1.05rem;
	line-height: 1.75;
}

body.arsatar-blog-single .entry-content h2,
body.arsatar-blog-single .wd-entry-content h2 {
	margin-top: 2.1em;
	margin-bottom: 0.65em;
	font-size: 1.28rem;
	color: #0f172a;
	line-height: 1.3;
}

body.arsatar-blog-single .entry-content h3,
body.arsatar-blog-single .wd-entry-content h3 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-size: 1.05rem;
	color: #1e293b;
}

body.arsatar-blog-single .entry-content p,
body.arsatar-blog-single .wd-entry-content p {
	margin-bottom: 1.1em;
}

body.arsatar-blog-single .entry-content ul,
body.arsatar-blog-single .entry-content ol,
body.arsatar-blog-single .wd-entry-content ul,
body.arsatar-blog-single .wd-entry-content ol {
	margin: 0 0 1.25em 1.15em;
	padding: 0;
}

body.arsatar-blog-single .entry-content li,
body.arsatar-blog-single .wd-entry-content li {
	margin-bottom: 0.45em;
}

body.arsatar-blog-single .entry-content a,
body.arsatar-blog-single .wd-entry-content a {
	color: var(--arsatar-blog-green);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

body.arsatar-blog-single .entry-content table,
body.arsatar-blog-single .wd-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.95rem;
	overflow-x: auto;
	display: block;
}

body.arsatar-blog-single .entry-content th,
body.arsatar-blog-single .entry-content td,
body.arsatar-blog-single .wd-entry-content th,
body.arsatar-blog-single .wd-entry-content td {
	border: 1px solid var(--arsatar-blog-line);
	padding: 0.65em 0.75em;
	text-align: left;
	vertical-align: top;
}

body.arsatar-blog-single .entry-content th,
body.arsatar-blog-single .wd-entry-content th {
	background: #e8f1ec;
	color: var(--arsatar-blog-green-deep);
	font-weight: 600;
}

body.arsatar-blog-single .entry-content em,
body.arsatar-blog-single .wd-entry-content em {
	display: block;
	margin-top: 2em;
	padding: 1em 1.15em;
	background: #eef5f1;
	border-left: 3px solid var(--arsatar-blog-green);
	font-style: normal;
	color: var(--arsatar-blog-muted);
	font-size: 0.95rem;
}

.arsatar-blog-single__body {
	width: 100%;
	max-width: var(--arsatar-page-rail, 1240px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: clamp(28px, 4vw, 44px) var(--arsatar-page-gutter, clamp(16px, 2.5vw, 24px)) clamp(56px, 6vw, 80px) !important;
	box-sizing: border-box !important;
}

.arsatar-blog-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(24px, 3.5vw, 40px);
	align-items: start;
}

.arsatar-blog-single__main {
	min-width: 0;
	width: 100%;
}

.arsatar-blog-article {
	max-width: 100%;
	width: 100%;
	margin: 0;
	background: #ffffff;
	padding: clamp(24px, 3.5vw, 40px);
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	box-shadow: none !important;
	box-sizing: border-box;
}

.arsatar-blog-article__featured {
	margin-bottom: 28px;
	border-radius: 12px;
	overflow: hidden;
}

.arsatar-blog-article__img {
	width: 100%;
	height: auto;
	max-height: 460px;
	object-fit: cover;
	display: block;
}

.arsatar-blog-article__footer {
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.arsatar-blog-tag {
	display: inline-block;
	background: #f1f5f9;
	color: #475569 !important;
	border: 1px solid #e2e8f0;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none !important;
	margin-right: 6px;
	margin-bottom: 6px;
	transition: all 0.2s ease;
}

.arsatar-blog-tag:hover {
	background: #15803d;
	border-color: #15803d;
	color: #ffffff !important;
}

.arsatar-blog-article__share {
	display: flex;
	align-items: center;
	gap: 10px;
}

.arsatar-blog-article__share-label {
	font-size: 13px;
	font-weight: 650;
	color: #64748b;
}

.arsatar-blog-share-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 15px;
	transition: opacity 0.2s ease;
	box-shadow: none !important;
}

.arsatar-blog-share-btn:hover {
	transform: none;
	opacity: 0.85;
	box-shadow: none !important;
}

.arsatar-blog-share-btn--wa {
	background: #25d366;
}

.arsatar-blog-share-btn--fb {
	background: #1877f2;
}

.arsatar-blog-share-btn--x {
	background: #0f172a;
}

/* ——— İlgili Yazılar Alt Alanı ——— */
.arsatar-blog-related {
	max-width: 100%;
	margin: 36px 0 0;
	padding-top: 28px;
	border-top: 1px solid #e2e8f0;
}

.arsatar-blog-related__title {
	margin: 0 0 20px;
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
}

.arsatar-blog-grid--2col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

/* ——— Sağ Sidebar Stilleri ——— */
.arsatar-blog-sidebar {
	width: 100%;
	min-width: 0;
}

.arsatar-blog-sidebar__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: sticky;
	top: 90px;
}

.arsatar-blog-widget {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 22px 20px;
	box-shadow: none !important;
}

.arsatar-blog-widget__title {
	margin: 0 0 16px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f5f9;
	position: relative;
}

.arsatar-blog-widget__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 32px;
	height: 2px;
	background: #15803d;
	border-radius: 2px;
}

/* Son Eklenen Yazılar Listesi */
.arsatar-blog-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.arsatar-blog-recent-item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}

.arsatar-blog-recent-item__thumb {
	position: relative;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f5f9;
	display: block;
	flex-shrink: 0;
}

.arsatar-blog-recent-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.arsatar-blog-recent-item:hover .arsatar-blog-recent-item__img {
	transform: scale(1.08);
}

.arsatar-blog-recent-item__img--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #e2e8f0;
}

.arsatar-blog-recent-item__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.arsatar-blog-recent-item__cat {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.arsatar-blog-recent-item__title {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.arsatar-blog-recent-item__title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.15s ease;
}

.arsatar-blog-recent-item__title a:hover {
	color: #15803d;
}

.arsatar-blog-recent-item__date {
	font-size: 0.72rem;
	color: #94a3b8;
}

/* Kategoriler Widget'ı */
.arsatar-blog-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.arsatar-blog-cat-list li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border-radius: 8px;
	color: #334155;
	font-size: 0.88rem;
	font-weight: 550;
	text-decoration: none;
	transition: all 0.15s ease;
	background: #f8fafc;
}

.arsatar-blog-cat-list li a:hover {
	background: #f0fdf4;
	color: #15803d;
	padding-left: 14px;
}

.arsatar-blog-cat-list__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #64748b;
	font-size: 0.72rem;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}

.arsatar-blog-cat-list li a:hover .arsatar-blog-cat-list__count {
	background: #dcfce7;
	color: #15803d;
}

/* Sidebar CTA Kartı */
.arsatar-blog-sidebar-cta {
	background: linear-gradient(145deg, #0b2f1f 0%, #15803d 100%);
	color: #ffffff;
	border-radius: 12px;
	padding: 24px 20px;
	text-align: center;
}

.arsatar-blog-sidebar-cta__icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	margin-bottom: 14px;
}

.arsatar-blog-sidebar-cta__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #ffffff !important;
	line-height: 1.3;
}

.arsatar-blog-sidebar-cta__desc {
	margin: 0 0 18px;
	font-size: 0.84rem;
	line-height: 1.55;
	color: #e2e8f0 !important;
}

.arsatar-blog-sidebar-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 18px;
	border-radius: 8px;
	background: #ffffff;
	color: #0b2f1f !important;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: none !important;
	border: 1px solid #ffffff;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.arsatar-blog-sidebar-cta__btn:hover {
	background: #f0fdf4;
	color: #15803d !important;
	border-color: #f0fdf4;
	transform: none;
	box-shadow: none !important;
}

.arsatar-blog-widget__empty {
	margin: 0;
	font-size: 0.85rem;
	color: #94a3b8;
}

/* Responsive Düzen */
@media (max-width: 991px) {
	.arsatar-blog-single__layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.arsatar-blog-sidebar__inner {
		position: static;
	}

	.arsatar-blog-grid--2col {
		grid-template-columns: 1fr;
	}
}

.arsatar-blog-related__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.arsatar-blog-related__list li {
	margin: 0;
	border-top: 1px solid var(--arsatar-blog-line);
}

.arsatar-blog-related__list li:first-child {
	border-top: 0;
}

.arsatar-blog-related__list a {
	display: block;
	padding: 0.7rem 0;
	color: var(--arsatar-blog-ink);
	text-decoration: none;
	font-weight: 600;
}

.arsatar-blog-related__list a:hover {
	color: var(--arsatar-blog-green);
}

@media (max-width: 767px) {
	body.arsatar-blog-single .entry-content,
	body.arsatar-blog-single .wd-entry-content {
		font-size: 1rem;
	}

	.ablog-card__foot {
		flex-direction: column;
		align-items: stretch;
	}

	.ablog-card__btn {
		justify-content: center;
	}
}
