/*
 * Belge sayfaları (resources/views/pages, yerleşim resources/views/layouts/doc.blade.php): kurulum rehberi, eklenti belgeleri,
 * API bilgileri, Premium, destek ve gizlilik. landing.css'ten sonra yüklenir; renkler, düğmeler, rozetler, üst ve alt bilgi
 * oradadır. Bu dosya yalnızca metin sayfasının parçalarını ekler. Derleme yok, dışarıdan kaynak yok (içe aktarma ve adresli
 * kaynak yazılmaz, tests/Feature/PagesTest.php denetler), betik yok.
 */

/* Yalnızca ekran okuyucuya (tablo başlığı gibi). */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Üst menüde bulunulan sayfa. */
.nav a[aria-current="page"] {
	background: var(--primary-soft);
	color: var(--primary);
}

/* ------------------------------------------------------------------
   Sayfa başı: konum, başlık, giriş
   ------------------------------------------------------------------ */

.doc-hero {
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(48rem 22rem at 94% -30%, rgba(48, 128, 232, 0.16), transparent 62%),
		radial-gradient(30rem 18rem at -4% 110%, rgba(19, 85, 150, 0.06), transparent 60%),
		var(--bg);
}

.doc-hero__in {
	padding-block: 36px 48px;
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
}

.crumbs li + li::before {
	content: "›";
	margin-inline: 9px;
	color: var(--line-strong);
}

.crumbs a:hover {
	color: var(--primary);
}

.crumbs [aria-current] {
	font-weight: 500;
	color: var(--ink-secondary);
}

.doc-hero .kicker {
	margin-top: 32px;
}

.doc-hero h1 {
	max-width: 48rem;
	margin-top: 10px;
	font-size: clamp(2rem, 1.45rem + 2.1vw, 2.75rem);
	line-height: 1.12;
}

.doc-hero__lead {
	max-width: 46rem;
	font-size: 1.125rem;
}

.doc-hero__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 20px;
	font-size: 13.5px;
	color: var(--muted);
}

.doc-hero__meta .icon {
	width: 16px;
	height: 16px;
}

/* ------------------------------------------------------------------
   Gövde: "Bu sayfada" listesi ve metin
   ------------------------------------------------------------------ */

.doc-body {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 64px;
	align-items: start;
	padding-block: 56px 88px;
}

.doc-body--single {
	grid-template-columns: minmax(0, 1fr);
}

.toc {
	position: sticky;
	top: 92px;
	max-height: calc(100vh - 112px);
	overflow-y: auto;
}

.toc__title {
	margin-bottom: 10px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink);
}

.toc ol {
	border-left: 1px solid var(--line);
}

.toc a {
	display: block;
	margin-left: -1px;
	padding: 6px 0 6px 14px;
	border-left: 2px solid transparent;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--ink-secondary);
	transition: border-color 0.15s, color 0.15s;
}

.toc a:hover {
	border-left-color: var(--primary);
	color: var(--primary);
}

/* ------------------------------------------------------------------
   Metin
   ------------------------------------------------------------------ */

.prose {
	max-width: 46rem;
}

.prose > * + * {
	margin-top: 16px;
}

.prose h2 {
	margin-top: 64px;
	font-size: 1.625rem;
	line-height: 1.25;
	letter-spacing: -0.015em;
	scroll-margin-top: 88px;
}

.prose > h2:first-child,
.prose > section:first-child > h2:first-child {
	margin-top: 0;
}

.prose h3 {
	margin-top: 36px;
	font-size: 1.1875rem;
	line-height: 1.35;
	letter-spacing: -0.005em;
	color: var(--ink);
	scroll-margin-top: 88px;
}

.prose h2 + *,
.prose h3 + * {
	margin-top: 12px;
}

.prose ul {
	padding-left: 1.25em;
	list-style: disc;
}

.prose ol {
	padding-left: 1.4em;
	list-style: decimal;
}

.prose li + li {
	margin-top: 8px;
}

.prose li::marker {
	color: var(--primary);
}

.prose li > ul,
.prose li > ol,
.prose li > p {
	margin-top: 8px;
}

.prose a:not([class]) {
	font-weight: 500;
	color: var(--primary);
	text-decoration: underline;
	text-decoration-color: rgba(19, 85, 150, 0.35);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s;
}

.prose a:not([class]):hover {
	text-decoration-color: currentColor;
}

.prose strong {
	font-weight: 600;
	color: var(--ink);
}

.prose code {
	padding: 1px 6px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--surface-alt);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.86em;
	color: var(--ink);
	overflow-wrap: anywhere;
}

/* Ekrandaki ad: menü yolu, sekme, düğme, alan ("Pazaryeri › Trendyol › Ayarlar", "Bağlantıyı sına"). */
.ui {
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--primary-soft);
	font-size: 0.94em;
	font-weight: 600;
	color: var(--primary-deep);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* ------------------------------------------------------------------
   Adımlar: numaralı, her adım başlıklı
   ------------------------------------------------------------------ */

.prose .howto {
	padding-left: 0;
	list-style: none;
	counter-reset: howto;
}

.howto > li {
	position: relative;
	padding-left: 48px;
	counter-increment: howto;
}

.howto > li + li {
	margin-top: 24px;
}

.howto > li::before {
	content: counter(howto);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--primary);
	box-shadow: 0 2px 4px rgba(19, 85, 150, 0.3);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.howto > li > strong:first-child {
	display: block;
	padding-top: 4px;
	font-size: 1.0625rem;
}

.howto > li > * + * {
	margin-top: 8px;
}

/* ------------------------------------------------------------------
   Kutular: not, uyarı, olumlu sonuç
   ------------------------------------------------------------------ */

.callout {
	display: flex;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid rgba(19, 85, 150, 0.18);
	border-radius: 10px;
	background: #f1f6fe;
	font-size: 15.5px;
	line-height: 1.6;
}

.callout > .icon {
	margin-top: 2px;
	color: var(--primary);
}

.callout > div > * + * {
	margin-top: 8px;
}

.callout--warn {
	border-color: rgba(242, 92, 26, 0.3);
	background: #fff5ef;
}

.callout--warn > .icon {
	color: var(--ty);
}

.callout--ok {
	border-color: rgba(31, 157, 87, 0.28);
	background: #f0faf4;
}

.callout--ok > .icon {
	color: var(--success-strong);
}

/* ------------------------------------------------------------------
   Alan listesi ve tablo
   ------------------------------------------------------------------ */

.fields {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
}

.fields > div {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 16px;
	padding: 12px 16px;
}

.fields > div + div {
	border-top: 1px solid var(--line);
}

.fields dt {
	font-weight: 600;
	color: var(--ink);
}

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.prose th,
.prose td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	background: var(--bg);
	font-weight: 600;
	color: var(--ink);
}

.prose tbody tr:last-child td {
	border-bottom: 0;
}

/* İki sütunlu "evet / hayır" listesi (gizlilik, eklentinin yapmadıkları). */
.ticklist {
	padding-left: 0 !important;
	list-style: none !important;
}

.ticklist li {
	display: flex;
	gap: 10px;
}

.ticklist .icon {
	margin-top: 3px;
	color: var(--success-strong);
}

.ticklist--never .icon {
	color: var(--danger);
}

/* ------------------------------------------------------------------
   Kart ızgarası: belgeler dizini, Premium özellikleri, ilgili sayfalar
   ------------------------------------------------------------------ */

.tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	padding-left: 0 !important;
	list-style: none !important;
}

.tiles > li + li {
	margin-top: 0;
}

/* "Bu sayfada" listesi olmayan sayfada (belgeler dizini) kartlar bütün genişliği kullanır. */
.doc-body--single .prose {
	max-width: none;
}

.doc-body--single .tiles {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

a.tile:hover {
	border-color: rgba(19, 85, 150, 0.35);
	box-shadow: var(--shadow-card);
}

.tile__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.tile__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 9px;
	background: var(--primary-soft);
	color: var(--primary);
}

.tile strong {
	font-size: 16px;
	line-height: 1.4;
	color: var(--ink);
}

.tile__text {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--muted);
}

.tile__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--primary);
}

.tile__more .icon {
	width: 16px;
	height: 16px;
	transition: transform 0.15s;
}

a.tile:hover .tile__more .icon {
	transform: translateX(3px);
}

.related {
	padding-block: 56px 72px;
	border-top: 1px solid var(--line);
	background: var(--bg);
}

.related__title {
	margin-top: 0;
	font-size: 1.375rem;
}

.related__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.related__card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.related__card:hover {
	border-color: rgba(19, 85, 150, 0.35);
	box-shadow: var(--shadow-card);
}

.related__card strong {
	font-size: 16px;
	color: var(--ink);
}

.related__card span:last-child {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--muted);
}

.related__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
	border-radius: 9px;
	background: var(--primary-soft);
	color: var(--primary);
}

/* ------------------------------------------------------------------
   Premium: fiyat kartı ve düğmeler
   ------------------------------------------------------------------ */

.offer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 28px;
	align-items: center;
	padding: 24px 26px;
	border: 1px solid rgba(19, 85, 150, 0.2);
	border-radius: 12px;
	background: linear-gradient(135deg, #f4f8ff, #fff 60%);
	box-shadow: var(--shadow-card);
}

.offer__price {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.offer__price small {
	font-size: 1rem;
	font-weight: 600;
	color: var(--muted);
}

.offer__terms {
	margin-top: 6px;
	font-size: 14.5px;
	color: var(--muted);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

/* ------------------------------------------------------------------
   Dar ekranlar
   ------------------------------------------------------------------ */

@media (max-width: 1020px) {
	.doc-body {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.toc {
		position: static;
		max-height: none;
		padding: 16px 18px;
		border: 1px solid var(--line);
		border-radius: 10px;
		background: var(--bg);
	}

	.related__list,
	.doc-body--single .tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.doc-hero__in {
		padding-block: 24px 36px;
	}

	.doc-hero .kicker {
		margin-top: 24px;
	}

	.doc-body {
		padding-block: 32px 64px;
	}

	.prose h2 {
		margin-top: 48px;
		font-size: 1.4375rem;
	}

	.fields > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.tiles,
	.related__list,
	.doc-body--single .tiles {
		grid-template-columns: minmax(0, 1fr);
	}

	.offer {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px;
	}

	.howto > li {
		padding-left: 44px;
	}
}
