/*
Theme Name: DNSCheck Child
Theme URI: https://dnscheck.pl/
Description: Custom Kadence child theme for the DNSCheck.pl homepage.
Author: DNSCheck.pl
Author URI: https://dnscheck.pl/
Template: kadence
Version: 1.1.85
Text Domain: dnscheck-child
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--dnscheck-float-right: 24px;
	--dnscheck-float-bottom: 24px;
	--dnscheck-float-gap: 10px;
	--dnscheck-report-float-width: 116px;
	--dnscheck-back-to-top-size: 44px;
}

.dnscheck-managed-ad {
	display: grid;
	width: min(100%, 728px);
	max-width: 100%;
	margin: 28px auto;
	padding: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	gap: 0;
	justify-items: center;
	overflow: hidden;
	text-align: center;
}

.dnscheck-managed-ad--300x250,
.dnscheck-managed-ad--300x300,
.dnscheck-managed-ad--300x600 {
	width: min(100%, 300px);
}

.dnscheck-managed-ad--responsive {
	width: 100%;
}

.dnscheck-managed-ad__body {
	display: flex;
	width: 100%;
	max-width: 100%;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.dnscheck-managed-ad__body iframe,
.dnscheck-managed-ad__body img,
.dnscheck-managed-ad__body ins {
	max-width: 100%;
}

.dnscheck-managed-ad__body img {
	height: auto;
}

.dnscheck-managed-ad__body ins {
	display: block;
}

.dnscheck-managed-ad--dismissible {
	position: relative;
}

html.ad-sidebar-closed .floating-sidebar-ad,
html.ad-sidebar-closed .homepage-sidebar-ad,
html.ad-sidebar-closed .dnscheck-home-sidebar-ad {
	display: none !important;
}

.dnscheck-managed-ad__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #475569;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dnscheck-managed-ad__close:hover,
.dnscheck-managed-ad__close:focus-visible {
	border-color: #2563eb;
	color: #2563eb;
	transform: translateY(-1px);
	outline: none;
}

.dnscheck-home-sidebar-ad {
	position: fixed;
	top: 150px;
	right: 24px;
	z-index: 890;
	width: fit-content;
	min-width: 0;
	min-height: 0;
	height: auto;
	margin: 0;
	box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.dnscheck-home-sidebar-ad .dnscheck-managed-ad__body {
	width: auto;
	min-width: 0;
	overflow: visible;
}

.dnscheck-sponsored-links {
	border-top: 1px solid #e5e7eb;
	background: #ffffff;
}

.dnscheck-sponsored-links__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
	padding: 12px 20px;
	color: #64748b;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.dnscheck-sponsored-links__inner > span {
	color: #475569;
	font-weight: 750;
}

.dnscheck-sponsored-links__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0;
}

.dnscheck-sponsored-links__list a {
	display: inline-flex;
	align-items: center;
	color: #2563eb;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s ease;
}

.dnscheck-sponsored-links__list a::after {
	margin: 0 8px;
	color: #cbd5e1;
	font-weight: 600;
	content: "|";
}

.dnscheck-sponsored-links__list a:last-child::after {
	content: "";
	margin: 0;
}

.dnscheck-sponsored-links__list a:hover,
.dnscheck-sponsored-links__list a:focus-visible {
	color: #1d4ed8;
	outline: none;
}

.dnscheck-turnstile {
	display: flex;
	justify-content: center;
	margin: 4px 0 12px;
}

@media (max-width: 1500px) {
	.dnscheck-home-sidebar-ad {
		display: none;
	}
}

.dnscheck-sidebar__sticky .dnscheck-managed-ad {
	margin-top: 0;
	margin-bottom: 0;
}

@media (max-width: 760px) {
	.dnscheck-managed-ad,
	.dnscheck-managed-ad--300x250,
	.dnscheck-managed-ad--300x300,
	.dnscheck-managed-ad--300x600,
	.dnscheck-managed-ad--728x90,
	.dnscheck-managed-ad--responsive {
		width: 100%;
	}

	.dnscheck-home-sidebar-ad {
		display: none;
	}
}

.dnscheck-report-issue-is-open {
	overflow: hidden;
}

.dnscheck-report-issue-float {
	position: fixed;
	right: var(--dnscheck-float-right);
	bottom: var(--dnscheck-float-bottom);
	z-index: 998;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	background: #ffffff;
	color: #2563eb;
	box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18);
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.dnscheck-report-issue-float:hover,
.dnscheck-report-issue-float:focus-visible {
	border-color: #2563eb;
	background: #eff6ff;
	color: #1d4ed8;
	box-shadow: 0 22px 48px rgba(37, 99, 235, 0.24);
	transform: translateY(-3px);
	outline: none;
}

.dnscheck-nav-list > li {
	position: relative;
	list-style: none;
}

.dnscheck-nav-list .menu-item-has-children::after {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 998;
	height: 24px;
	content: "";
}

.dnscheck-nav-list .menu-item-has-children > a {
	gap: 6px;
}

.dnscheck-nav-list .menu-item-has-children > a::after {
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	content: "";
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.dnscheck-nav-list .menu-item-has-children:hover > a::after,
.dnscheck-nav-list .menu-item-has-children:focus-within > a::after,
.dnscheck-nav-list .menu-item-has-children.is-submenu-open > a::after {
	transform: translateY(2px) rotate(225deg);
}

.dnscheck-nav-list .sub-menu {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	z-index: 999;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	border: 1px solid rgba(226, 232, 240, 0.92);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
	list-style: none;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	visibility: hidden;
}

.dnscheck-nav-list .menu-item-has-children:hover > .sub-menu,
.dnscheck-nav-list .menu-item-has-children:focus-within > .sub-menu,
.dnscheck-nav-list .menu-item-has-children.is-submenu-open > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

.dnscheck-nav-list .sub-menu a {
	display: flex;
	width: 100%;
	min-height: 38px;
	padding: 8px 11px;
	border-radius: 9px;
	color: #0f172a;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.25;
	white-space: nowrap;
	transform: none;
}

.dnscheck-nav-list .sub-menu a:hover,
.dnscheck-nav-list .sub-menu a:focus-visible {
	background: #eff6ff;
	color: #2563eb;
	transform: none;
	outline: none;
}

.dnscheck-nav-list .sub-menu .current-menu-item > a,
.dnscheck-nav-list .sub-menu .current_page_item > a {
	background: #eff6ff;
	color: #2563eb;
}

.dnscheck-nav-list .sub-menu:hover .current-menu-item:not(:hover) > a,
.dnscheck-nav-list .sub-menu:hover .current_page_item:not(:hover) > a {
	background: transparent;
	color: #0f172a;
}

.dnscheck-nav-list .sub-menu li:hover > a,
.dnscheck-nav-list .sub-menu li:focus-within > a {
	background: #eef5ff;
	color: #1d5cff;
}

.dnscheck-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.86);
	color: #0f172a;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dnscheck-nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.dnscheck-nav-toggle:hover,
.dnscheck-nav-toggle:focus-visible {
	border-color: #2563eb;
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.13);
	transform: translateY(-1px);
	outline: none;
}

.dnscheck-header.is-nav-open .dnscheck-nav-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.dnscheck-header.is-nav-open .dnscheck-nav-toggle span:nth-child(2) {
	opacity: 0;
}

.dnscheck-header.is-nav-open .dnscheck-nav-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
	.dnscheck-header .dnscheck-header__inner {
		flex-wrap: nowrap !important;
		min-height: 64px;
		padding-top: 10px;
		padding-bottom: 10px;
		position: relative;
	}

	.dnscheck-header .dnscheck-logo {
		min-width: 0;
	}

	.dnscheck-header .dnscheck-header__actions {
		margin-left: auto;
	}

	.dnscheck-nav-toggle {
		display: inline-flex;
	}

	.dnscheck-header .dnscheck-nav {
		position: absolute;
		top: calc(100% + 10px);
		right: 0;
		left: 0;
		z-index: 1001;
		display: block !important;
		width: auto !important;
		max-height: min(72vh, 620px);
		padding: 14px;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		border: 1px solid rgba(226, 232, 240, 0.96);
		border-radius: 18px;
		background: rgba(255, 255, 255, 0.98);
		box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-8px) scale(0.98);
		transform-origin: top right;
		transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
		visibility: hidden;
	}

	.dnscheck-header.is-nav-open .dnscheck-nav {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0) scale(1);
		visibility: visible;
	}

	.dnscheck-nav-list {
		display: grid !important;
		grid-template-columns: 1fr;
		width: 100%;
		min-width: 0 !important;
		gap: 6px !important;
	}

	.dnscheck-nav-list > li {
		width: 100%;
	}

	.dnscheck-nav-list > li > a {
		width: 100%;
		min-height: 46px;
		padding: 0 12px;
		border-radius: 12px;
	}

	.dnscheck-nav-list > li > a:hover,
	.dnscheck-nav-list > li > a:focus-visible {
		background: #eff6ff;
		transform: none;
	}

	.dnscheck-nav-list .menu-item-has-children {
		max-width: 100%;
	}

	.dnscheck-nav-list .menu-item-has-children::after {
		display: none;
	}

	.dnscheck-nav-list .menu-item-has-children > a {
		justify-content: space-between;
		width: 100%;
	}

	.dnscheck-nav-list .sub-menu {
		position: static;
		width: 100%;
		min-width: 0;
		max-height: 0;
		margin-top: 0;
		padding: 0 8px;
		overflow: hidden;
		border-color: transparent;
		background: rgba(248, 250, 252, 0.95);
		box-shadow: none;
		opacity: 1;
		pointer-events: auto;
		transform: none;
		transition: max-height 0.24s ease, margin-top 0.24s ease, padding 0.24s ease, border-color 0.24s ease;
		visibility: visible;
	}

	.dnscheck-nav-list .menu-item-has-children:hover > .sub-menu,
	.dnscheck-nav-list .menu-item-has-children:focus-within > .sub-menu {
		max-height: 0;
		margin-top: 0;
		padding: 0 8px;
		border-color: transparent;
	}

	.dnscheck-nav-list .menu-item-has-children.is-submenu-open > .sub-menu {
		max-height: 520px;
		margin-top: 6px;
		padding: 8px;
		border-color: rgba(226, 232, 240, 0.92);
	}

	.dnscheck-nav-list .menu-item-has-children:hover > a::after,
	.dnscheck-nav-list .menu-item-has-children:focus-within > a::after {
		transform: rotate(45deg);
	}

	.dnscheck-nav-list .menu-item-has-children.is-submenu-open > a::after {
		transform: translateY(2px) rotate(225deg);
	}

	.dnscheck-nav-list .sub-menu a {
		white-space: normal;
	}
}

.dnscheck-report-issue-modal[hidden] {
	display: none;
}

.dnscheck-report-issue-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 24px;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dnscheck-report-issue-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.46);
	backdrop-filter: blur(10px);
}

.dnscheck-report-issue-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 560px);
	max-height: min(760px, calc(100vh - 48px));
	overflow-y: auto;
	border: 1px solid #dbeafe;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.dnscheck-report-issue-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #ffffff;
	color: #64748b;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.dnscheck-report-issue-modal__close:hover,
.dnscheck-report-issue-modal__close:focus-visible {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #2563eb;
	outline: none;
}

.dnscheck-report-issue-modal__header {
	padding: 30px 30px 18px;
	border-bottom: 1px solid #e2e8f0;
	background:
		radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
		linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.dnscheck-report-issue-modal__header span {
	display: inline-flex;
	margin: 0 0 8px;
	color: #2563eb;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.dnscheck-report-issue-modal__header h2 {
	margin: 0 44px 10px 0;
	color: #0f172a;
	font-size: 28px;
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.15;
}

.dnscheck-report-issue-modal__header p {
	margin: 0;
	color: #475569;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.65;
}

.dnscheck-report-issue-form {
	display: grid;
	gap: 14px;
	padding: 24px 30px 30px;
}

.dnscheck-report-issue-field {
	display: grid;
	gap: 7px;
	margin: 0;
}

.dnscheck-report-issue-field span {
	color: #334155;
	font-size: 13px;
	font-weight: 800;
}

.dnscheck-report-issue-field em {
	color: #dc2626;
	font-style: normal;
}

.dnscheck-report-issue-field input,
.dnscheck-report-issue-field textarea {
	width: 100%;
	border: 1px solid #dbe3ef;
	border-radius: 14px;
	background: #ffffff;
	color: #0f172a;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dnscheck-report-issue-field input {
	height: 46px;
	padding: 0 14px;
}

.dnscheck-report-issue-field textarea {
	min-height: 128px;
	padding: 12px 14px;
	resize: vertical;
}

.dnscheck-report-issue-field input:focus,
.dnscheck-report-issue-field textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
	outline: none;
}

.dnscheck-report-issue-field input[readonly] {
	background: #f8fafc;
	color: #64748b;
}

.dnscheck-report-issue-field--honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dnscheck-report-issue-status {
	min-height: 20px;
	color: #64748b;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.dnscheck-report-issue-status.is-success {
	color: #047857;
}

.dnscheck-report-issue-status.is-error {
	color: #b91c1c;
}

.dnscheck-report-issue-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 2px;
}

.dnscheck-report-issue-secondary,
.dnscheck-report-issue-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 850;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dnscheck-report-issue-secondary {
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #475569;
}

.dnscheck-report-issue-submit {
	border: 1px solid #1d4ed8;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #ffffff;
	box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.dnscheck-report-issue-secondary:hover,
.dnscheck-report-issue-secondary:focus-visible,
.dnscheck-report-issue-submit:hover,
.dnscheck-report-issue-submit:focus-visible {
	transform: translateY(-2px);
	outline: none;
}

.dnscheck-report-issue-secondary:hover,
.dnscheck-report-issue-secondary:focus-visible {
	border-color: #cbd5e1;
	background: #f8fafc;
}

.dnscheck-report-issue-submit:hover,
.dnscheck-report-issue-submit:focus-visible {
	box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.dnscheck-report-issue-submit:disabled {
	cursor: wait;
	opacity: 0.72;
	transform: none;
}

@media (max-width: 640px) {
	:root {
		--dnscheck-float-right: 16px;
		--dnscheck-float-bottom: 18px;
		--dnscheck-float-gap: 8px;
		--dnscheck-report-float-width: 104px;
		--dnscheck-back-to-top-size: 40px;
	}

	.dnscheck-report-issue-float {
		right: var(--dnscheck-float-right);
		bottom: var(--dnscheck-float-bottom);
		min-height: 40px;
		padding: 0 13px;
		font-size: 12px;
	}

	.dnscheck-report-issue-modal {
		padding: 14px;
	}

	.dnscheck-report-issue-modal__dialog {
		max-height: calc(100vh - 28px);
		border-radius: 20px;
	}

	.dnscheck-report-issue-modal__header,
	.dnscheck-report-issue-form {
		padding-right: 20px;
		padding-left: 20px;
	}

	.dnscheck-report-issue-modal__header h2 {
		font-size: 24px;
	}

	.dnscheck-report-issue-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.dnscheck-report-issue-secondary,
	.dnscheck-report-issue-submit {
		width: 100%;
	}
}
