/* =========================================================
   NK Blog Detay Şablonu - nurkaratas.com
   Renkler: #A855F7 (açık mor) / #7C3AED (koyu mor) / #111827 (koyu lacivert-siyah)
   ========================================================= */

:root {
	--nk-purple-light: #A855F7;
	--nk-purple-dark: #7C3AED;
	--nk-dark: #111827;
	--nk-text-dark: #1F2937;
	--nk-text-gray: #6B7280;
	--nk-border: #E5E7EB;
	--nk-bg-soft: #F9FAFB;
	--nk-radius: 14px;
}

.nk-post * {
	box-sizing: border-box;
}

.nk-post {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--nk-text-dark);
}

/* -------------------------------------------------------
   TEMA / BREAKDANCE ÇAKIŞMA KORUMASI
   Bazı temalar "scroll'da belir" animasyonunu .entry-content
   veya benzeri sınıflara global olarak uygular ve elemanlar
   JS tetiklenene kadar soluk/saydam görünür. Bu blok, şablonun
   içindeki tüm elemanların HER ZAMAN tam görünür ve doğru
   renkte olmasını garantiye alır.
   ------------------------------------------------------- */
.nk-post,
.nk-post * {
	opacity: 1 !important;
	visibility: visible !important;
	animation: none !important;
	transform: none !important;
	filter: none !important;
	transition: color 0.15s ease, background-color 0.15s ease !important;
}

.nk-content__body,
.nk-content__body p,
.nk-content__body li,
.nk-content__body span,
.nk-content__body strong,
.nk-content__body b {
	color: var(--nk-text-dark) !important;
}

.nk-content__body h2,
.nk-content__body h3,
.nk-content__body h4 {
	color: var(--nk-text-dark) !important;
}

.nk-toc__link {
	color: var(--nk-purple-dark) !important;
}

/* ---------------- HERO ---------------- */
.nk-hero {
	background: linear-gradient(135deg, var(--nk-dark) 0%, #1a1030 60%, var(--nk-purple-dark) 140%);
	padding: 56px 24px;
	overflow: hidden;
}

.nk-hero__container {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 0.9fr;
	gap: 48px;
	align-items: center;
}

.nk-hero__badge {
	display: inline-block;
	background: #ffffff !important;
	color: var(--nk-purple-dark) !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	padding: 6px 14px;
	border-radius: 20px;
	text-decoration: none;
	margin-bottom: 18px;
}

.nk-hero__title {
	color: #fff;
	font-size: 44px;
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 18px;
}

.nk-hero__desc {
	color: #D1D5DB;
	font-size: 16px;
	line-height: 1.6;
	max-width: 560px;
	margin: 0 0 28px;
}

.nk-hero__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.nk-hero__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--nk-purple-light);
}

.nk-hero__author {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.nk-hero__author-name {
	color: #fff;
	font-weight: 700;
	font-size: 14px;
}

.nk-hero__author-title {
	color: #A78BFA;
	font-size: 12px;
}

.nk-hero__meta-divider {
	width: 1px;
	height: 28px;
	background: rgba(255,255,255,0.2);
}

.nk-hero__meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #D1D5DB;
	font-size: 13px;
}

.nk-hero__image {
	display: flex;
	justify-content: center;
	align-items: center;
}

.nk-hero__thumb {
	width: 100%;
	max-width: 420px;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(124, 58, 237, 0.35);
}

/* ---------------- BODY LAYOUT ---------------- */
.nk-body {
	padding: 48px 24px 80px;
	background: #fff;
}

.nk-body__container {
	max-width: 1180px;
	margin: 0 auto;
	display: grid !important;
	grid-template-columns: 1fr 235px !important;
	gap: 32px;
	align-items: start;
}

.nk-content {
	min-width: 0;
}

.nk-sidebar {
	min-width: 0;
}

/* ---------------- TOC (İÇİNDEKİLER) - artık sidebar'ın ilk kutusu ---------------- */
.nk-toc__toggle {
	display: none !important;
	width: 100%;
	background: none !important;
	border: none !important;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	font-size: 15px;
	color: var(--nk-text-dark);
	cursor: pointer;
	padding: 0 !important;
}

.nk-toc__toggle svg {
	transition: transform 0.2s ease;
}

.nk-toc__title {
	margin-bottom: 14px;
}

.nk-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nk-toc__list li {
	margin-bottom: 10px;
}

.nk-toc__link {
	color: var(--nk-purple-dark);
	text-decoration: none;
	font-size: 13.5px;
	line-height: 1.5;
	display: block;
	transition: color 0.15s ease;
}

.nk-toc__link:hover {
	color: var(--nk-purple-light);
	text-decoration: underline;
}

/* ---------------- CONTENT ---------------- */
.nk-content__body {
	font-size: 16px;
	line-height: 1.8;
	color: var(--nk-text-dark);
}

.nk-content__body h2 {
	font-size: 26px;
	font-weight: 800;
	margin: 40px 0 18px;
	color: var(--nk-text-dark);
	scroll-margin-top: 24px;
}

.nk-content__body h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 28px 0 14px;
}

.nk-content__body p {
	margin: 0 0 18px;
}

.nk-content__body a {
	color: var(--nk-purple-dark);
	text-decoration: underline;
}

.nk-content__body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Onaylı (checklist) listeler - hem gerçek WP listeleri hem de
   "• metin" şeklinde yazılan ve PHP tarafından otomatik dönüştürülen
   listeler için geçerlidir (bkz. nk-checklist sınıfı). */
.nk-content__body ul.nk-checklist,
.nk-content__body ul:not(.nk-toc__list) {
	list-style: none !important;
	margin: 0 0 20px;
	padding: 0;
}

.nk-content__body ul.nk-checklist li,
.nk-content__body ul:not(.nk-toc__list) li {
	position: relative;
	padding-left: 34px;
	margin-bottom: 12px;
	line-height: 1.6;
}

.nk-content__body ul.nk-checklist li::before,
.nk-content__body ul:not(.nk-toc__list) li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"),
		linear-gradient(135deg, var(--nk-purple-light), var(--nk-purple-dark));
	background-repeat: no-repeat, no-repeat;
	background-position: center, center;
	background-size: 12px 12px, cover;
}

.nk-content__body ol {
	margin: 0 0 20px;
	padding-left: 22px;
}

.nk-content__body ol li {
	margin-bottom: 10px;
	padding-left: 6px;
}

/* Bilgi Kutusu (shortcode: [nk_info]) */
.nk-info-box {
	display: flex;
	gap: 14px;
	background: #F5F3FF;
	border: 1px solid #E9D5FF;
	border-radius: var(--nk-radius);
	padding: 20px 22px;
	margin: 0 0 28px;
}

.nk-info-box__icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--nk-purple-light), var(--nk-purple-dark));
	display: flex;
	align-items: center;
	justify-content: center;
}

.nk-info-box__text {
	font-size: 14.5px;
	line-height: 1.7;
	color: #4C1D95;
}

.nk-info-box__text p {
	margin: 0;
}

/* Tablolar */
.nk-table-wrapper {
	overflow-x: auto;
	margin: 0 0 28px;
	border-radius: var(--nk-radius);
	border: 1px solid var(--nk-border);
}

.nk-table-wrapper table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.nk-table-wrapper thead th {
	background: linear-gradient(135deg, var(--nk-dark), var(--nk-purple-dark));
	color: #fff;
	text-align: left;
	padding: 14px 18px;
	font-weight: 700;
	white-space: nowrap;
}

.nk-table-wrapper tbody td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--nk-border);
	vertical-align: top;
}

.nk-table-wrapper tbody tr:last-child td {
	border-bottom: none;
}

.nk-table-wrapper tbody tr:nth-child(even) {
	background: var(--nk-bg-soft);
}

.nk-table-wrapper table {
	table-layout: auto;
}

/* İlk hücrede emoji ile başlayan satırlarda otomatik oluşan ikon rozeti */
.nk-td-has-icon {
	display: table-cell;
}

.nk-td-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #F3E8FF;
	font-size: 16px;
	margin-right: 10px;
	vertical-align: middle;
}

.nk-td-text {
	vertical-align: middle;
	font-weight: 700;
	color: var(--nk-text-dark);
}

/* ---------------- CTA ---------------- */
.nk-cta {
	margin-top: 48px;
	background: var(--nk-bg-soft);
	border: 1px solid var(--nk-border);
	border-radius: var(--nk-radius);
	padding: 22px 26px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.nk-cta__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--nk-purple-light), var(--nk-purple-dark));
	display: flex;
	align-items: center;
	justify-content: center;
}

.nk-cta__text {
	flex: 1;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nk-cta__text strong {
	font-size: 15px;
	color: var(--nk-text-dark);
}

.nk-cta__text span {
	font-size: 13.5px;
	color: var(--nk-text-gray);
}

.nk-cta__button {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffffff !important;
	color: var(--nk-purple-dark) !important;
	border: 2px solid var(--nk-purple-light);
	font-weight: 700;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: 10px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.nk-cta__button:hover {
	background: var(--nk-purple-light) !important;
	color: #fff !important;
}

/* ---------------- SIDEBAR ---------------- */
.nk-sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.nk-sidebar__box {
	background: var(--nk-bg-soft);
	border: 1px solid var(--nk-border);
	border-radius: var(--nk-radius);
	padding: 20px;
}

.nk-sidebar__title {
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 0 0 14px !important;
	color: var(--nk-text-dark) !important;
}

.nk-sidebar__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nk-cat-pill {
	display: inline-block;
	background: #fff;
	border: 1px solid var(--nk-border);
	color: var(--nk-text-dark);
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 20px;
	text-decoration: none;
	transition: all 0.15s ease;
}

.nk-cat-pill--active {
	background: #ffffff !important;
	border-color: var(--nk-purple-light) !important;
	color: var(--nk-purple-dark) !important;
	font-weight: 700;
}

.nk-cat-pill:hover {
	background: var(--nk-purple-light);
	border-color: var(--nk-purple-light);
	color: #fff;
}

.nk-related-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nk-related-item {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.nk-related-item__thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--nk-dark);
}

.nk-related-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nk-related-item__title {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--nk-text-dark);
}

.nk-related-item:hover .nk-related-item__title {
	color: var(--nk-purple-dark);
}

/* =========================================================
   MOBİL UYUMLULUK
   ========================================================= */

@media (max-width: 1024px) {
	.nk-body__container {
		grid-template-columns: 1fr 220px !important;
		gap: 24px;
	}
}

@media (max-width: 900px) {
	.nk-hero__container {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.nk-hero__image {
		order: -1;
	}
	.nk-hero__title {
		font-size: 32px;
	}
}

@media (max-width: 768px) {
	.nk-body__container {
		grid-template-columns: 1fr !important;
	}

	.nk-sidebar {
		flex-direction: column;
	}

	.nk-toc {
		order: -1;
	}

	.nk-toc__title {
		display: none;
	}

	.nk-toc__toggle {
		display: flex !important;
	}

	.nk-toc__list {
		display: none;
		margin-top: 14px;
	}

	.nk-toc.nk-toc--open .nk-toc__list {
		display: block;
	}

	.nk-toc.nk-toc--open .nk-toc__toggle svg {
		transform: rotate(180deg);
	}

	.nk-hero {
		padding: 40px 18px;
	}

	.nk-hero__title {
		font-size: 26px;
	}

	.nk-hero__desc {
		font-size: 14.5px;
	}

	.nk-body {
		padding: 32px 18px 60px;
	}

	.nk-content__body h2 {
		font-size: 21px;
	}

	.nk-cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.nk-cta__button {
		width: 100%;
		justify-content: center;
	}
}
