/*
 * DigiPestControl — Ücretsiz araçlar
 * Ana site kabuğu (bootstrap/style.css) yüklüyken araç içeriğini (#dpc-tool-root) korur:
 * Tailwind preflight'ın kapsamlı bir kopyası + anasayfa tipografisi + araç alt menüsü.
 */

/* Bootstrap 3 kökü 10px yapar; Tailwind ölçüleri rem tabanlı olduğundan araçlar
   %62.5 küçük görünürdü. Site header/footer px tabanlıdır (ölçüldü: fark yok). */
html {
	font-size: 16px;
}

/* ---------- Kapsamlı reset (yalnızca araç içeriği) ---------- */
#dpc-tool-root {
	--tl-ink: #0f2328;
	--tl-soft: #475a60;
	--tl-line: #dbe4e6;
	--tl-paper: #f3f6f7;
	--tl-primary: #00687c;
	--tl-primary-strong: #004e5e;
	--tl-accent: #2ab1d0;

	background: var(--tl-paper);
	color: var(--tl-ink);
	font-family: "Inter", "Open Sans", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

#dpc-tool-root *,
#dpc-tool-root *::before,
#dpc-tool-root *::after {
	box-sizing: border-box;
	border-width: 0;
	border-style: solid;
	border-color: var(--tl-line);
}

#dpc-tool-root :is(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	color: inherit;
	font-family: "Manrope", "Inter", Arial, sans-serif;
	font-size: inherit;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-transform: none;
}

#dpc-tool-root :is(p, blockquote, dl, dd, figure, pre, hr, fieldset) {
	margin: 0;
}

#dpc-tool-root :is(ol, ul, menu) {
	margin: 0;
	padding: 0;
	list-style: none;
}

#dpc-tool-root :is(img, svg, video, canvas) {
	display: block;
	vertical-align: middle;
}

#dpc-tool-root :is(img, video) {
	max-width: 100%;
	height: auto;
}

#dpc-tool-root a {
	color: inherit;
	text-decoration: inherit;
}

#dpc-tool-root a:hover,
#dpc-tool-root a:focus {
	text-decoration: none;
}

#dpc-tool-root :is(button, input, optgroup, select, textarea) {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: 100%;
	font-weight: inherit;
	line-height: inherit;
}

#dpc-tool-root :is(button, select) {
	text-transform: none;
}

#dpc-tool-root :is(button, [type="button"], [type="reset"], [type="submit"]) {
	background-color: transparent;
	background-image: none;
	cursor: pointer;
	-webkit-appearance: button;
}

#dpc-tool-root label {
	display: inline;
	max-width: none;
	margin: 0;
	font-weight: inherit;
}

#dpc-tool-root table {
	border-collapse: collapse;
	border-color: inherit;
	text-indent: 0;
}

#dpc-tool-root :is(input, textarea)::placeholder {
	color: #8a999d;
	opacity: 1;
}

#dpc-tool-root :is(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid rgba(42, 177, 208, 0.55);
	outline-offset: 2px;
}

/* Anasayfa tipografisi: başlıklar Manrope, sıkı satır aralığı */
#dpc-tool-root :is(h1, h2) {
	font-weight: 800;
	letter-spacing: -0.02em;
}

/* ---------- Ortak araç bileşenleri (anasayfa / SPIDER ile aynı dil) ---------- */
#dpc-tool-root .tl-hero {
	border-bottom: 1px solid var(--tl-line);
	background:
		radial-gradient(60% 90% at 100% 0%, rgba(0, 104, 124, 0.08), transparent 60%),
		#fff;
}

#dpc-tool-root .tl-eyebrow {
	display: block;
	color: var(--tl-primary);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

#dpc-tool-root .tl-h1 {
	color: var(--tl-ink);
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

#dpc-tool-root .tl-lead {
	max-width: 62ch;
	color: var(--tl-soft);
	font-size: 18px;
	line-height: 1.65;
}

#dpc-tool-root .tl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

#dpc-tool-root .tl-btn--primary {
	background: var(--tl-primary);
	color: #fff;
}

#dpc-tool-root .tl-btn--primary:hover {
	background: var(--tl-primary-strong);
	color: #fff;
}

#dpc-tool-root .tl-btn--ghost {
	border-color: #c5d1d4;
	background: #fff;
	color: var(--tl-ink);
}

#dpc-tool-root .tl-btn--ghost:hover {
	border-color: var(--tl-primary);
	color: var(--tl-primary);
}

#dpc-tool-root .tl-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #eef9fb;
	color: var(--tl-primary);
}

#dpc-tool-root .tl-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#dpc-tool-root .tl-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	color: var(--tl-soft);
	font-size: 14px;
}

#dpc-tool-root .tl-tags li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

#dpc-tool-root .tl-tags li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tl-accent);
}

/* Sayfa girişleri: metin + görsel (eski phase4 düzeni, sadeleştirilmiş) */
#dpc-tool-root .dpc-tool-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

#dpc-tool-root .dpc-tool-intro-visual {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
	gap: 2.5rem;
	align-items: center;
}

#dpc-tool-root .dpc-tool-visual {
	position: relative;
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--tl-line);
	border-radius: 16px;
	background: #021b20;
}

#dpc-tool-root .dpc-tool-visual img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 240px;
	object-fit: cover;
}

#dpc-tool-root .dpc-tool-hero-grid .dpc-tool-visual {
	aspect-ratio: 16 / 10;
}

#dpc-tool-root .dpc-tool-intro-visual .dpc-tool-visual {
	aspect-ratio: 16 / 9;
}

@media (max-width: 1023px) {
	#dpc-tool-root :is(.dpc-tool-hero-grid, .dpc-tool-intro-visual) {
		grid-template-columns: 1fr;
	}

	#dpc-tool-root .dpc-tool-visual img {
		min-height: 200px;
	}
}

@media print {
	#dpc-tool-root .dpc-tool-visual {
		display: none !important;
	}
}

/* Okunabilirlik: araçlardaki 10–12px metinleri anasayfa ölçeğine yaklaştır */
#dpc-tool-root.dpc-tools .text-xs {
	font-size: 14px;
	line-height: 1.55;
}

#dpc-tool-root.dpc-tools :is(.text-\[10px\], .text-\[11px\]) {
	font-size: 13px;
	line-height: 1.45;
}

#dpc-tool-root.dpc-tools .text-sm {
	font-size: 15px;
	line-height: 1.6;
}

#dpc-tool-root.dpc-tools .font-black {
	font-weight: 800;
}

#dpc-tool-root.dpc-tools .text-slate-400 {
	color: #6b7c81;
}

/* Kart kiti: tekdüze gölge/kalkma efektleri yerine sakin kenarlık vurgusu */
#dpc-tool-root.dpc-tools .rounded-3xl {
	border-radius: 20px;
}

#dpc-tool-root.dpc-tools .rounded-2xl {
	border-radius: 14px;
}

#dpc-tool-root.dpc-tools :is(.hover\:shadow-xl, .hover\:shadow-md, .hover\:shadow-lg):hover {
	box-shadow: 0 12px 32px rgba(0, 78, 94, 0.08);
}

/* ---------- Araç menüsü: hap biçimli butonlar ---------- */
.dpc-tools-nav {
	border-bottom: 1px solid #dbe4e6;
	background: #fff;
}

.dpc-tools-nav__inner {
	display: flex;
	align-items: center;
	gap: 12px 20px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 14px clamp(16px, 4vw, 32px);
}

.dpc-tools-nav__brand {
	flex: 0 0 auto;
	color: #0f2328;
	font-family: "Manrope", "Inter", Arial, sans-serif;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
}

.dpc-tools-nav__brand:hover,
.dpc-tools-nav__brand:focus {
	color: #00687c;
	text-decoration: none;
}

/* Sığmayan butonlar alt satıra geçer; hepsi her zaman görünür */
.dpc-tools-nav__links {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.dpc-tools-nav__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px 8px 12px;
	border: 1px solid #d5e0e3;
	border-radius: 999px;
	background: #fff;
	color: #2b3c41;
	font-family: "Inter", Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.dpc-tools-nav__links a svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #00687c;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dpc-tools-nav__links a:hover,
.dpc-tools-nav__links a:focus {
	border-color: #00687c;
	background: #eef9fb;
	color: #00687c;
	text-decoration: none;
}

.dpc-tools-nav__links a[aria-current="page"] {
	border-color: #00687c;
	background: #00687c;
	color: #fff;
}

.dpc-tools-nav__links a[aria-current="page"] svg {
	stroke: #fff;
}

.dpc-tools-nav a:focus-visible {
	outline: 3px solid rgba(42, 177, 208, 0.55);
	outline-offset: 2px;
}

/* Mobil/tablet: site header'ı içeriğin üzerine biner (mobile.css, absolute).
   Anasayfadaki gibi header'ın altında aynı koyu hero zemini kesintisiz devam eder. */
@media (max-width: 991px) {
	body.digipest-page--araclar .dpc-page-content {
		padding-top: 70px;
		background:
			radial-gradient(circle at 75% 45%, rgba(0, 104, 124, 0.34), transparent 28%),
			linear-gradient(120deg, #001115, #001d23 68%, #002b33);
	}

	.dpc-tools-nav {
		border-bottom: 0;
		background: transparent;
	}

	.dpc-tools-nav__inner {
		flex-direction: column;
		align-items: stretch;
		padding: 18px 16px 24px;
	}

	.dpc-tools-nav__brand {
		color: #fff;
		font-size: 18px;
	}

	.dpc-tools-nav__brand:hover,
	.dpc-tools-nav__brand:focus {
		color: #b0ecff;
	}

	.dpc-tools-nav__links a {
		border-color: rgba(255, 255, 255, 0.2);
		background: rgba(255, 255, 255, 0.05);
		color: rgba(255, 255, 255, 0.9);
	}

	.dpc-tools-nav__links a svg {
		stroke: #66defe;
	}

	.dpc-tools-nav__links a:hover,
	.dpc-tools-nav__links a:focus {
		border-color: rgba(102, 222, 254, 0.6);
		background: rgba(102, 222, 254, 0.1);
		color: #fff;
	}

	.dpc-tools-nav__links a[aria-current="page"] {
		border-color: #2ab1d0;
		background: #2ab1d0;
		color: #001115;
	}

	.dpc-tools-nav__links a[aria-current="page"] svg {
		stroke: #001115;
	}
}

@media (max-width: 640px) {
	/* dar ekranda düzenli 2 sütun; uzun çeviriler buton içinde alt satıra geçer */
	.dpc-tools-nav__links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dpc-tools-nav__links a {
		min-height: 48px;
		padding: 8px 12px;
		border-radius: 14px;
		white-space: normal;
	}
}

@media print {
	.dpc-tools-nav,
	#site-footer,
	.site-header,
	.mm__resMenu,
	.dpc-totop {
		display: none !important;
	}

	body.digipest-page--araclar .dpc-page-content {
		padding-top: 0;
		background: none;
	}
}
