/* ==========================================================================
   DNS Lookup — page-specific bits only. The breadcrumb comes from main.css;
   the test card shell, bulleted lists, numbered steps and results table
   come from tool-shared.css (loaded alongside this file); nothing here
   duplicates them.
   ========================================================================== */

/* ---------- Lookup card ---------- */

.pv-dns-tool { max-width: 720px; }

.pv-dns-form { text-align: left; }
.pv-dns-form__row {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

.pv-dns-field {
	display: flex;
	flex: 1 1 240px;
	min-width: 0;
	flex-direction: column;
	gap: 6px;
}
.pv-dns-field--select { flex: 0 0 152px; }

.pv-dns-field__label {
	color: var(--pv-muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.pv-dns-input,
.pv-dns-select {
	height: 52px;
	width: 100%;
	padding: 0 18px;
	border: 1px solid var(--pv-line);
	border-radius: var(--pv-r-sm);
	background: #fff;
	color: var(--pv-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -.005em;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.pv-dns-input::placeholder { color: var(--pv-muted); font-weight: 500; }
.pv-dns-input:focus,
.pv-dns-select:focus {
	outline: none;
	border-color: var(--pv-cyan);
	box-shadow: 0 0 0 3px rgba(14, 165, 196, .14);
}
.pv-dns-input[aria-invalid="true"] { border-color: #d63c3c; }

.pv-dns-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 38px;
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767c89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	cursor: pointer;
}

.pv-dns-submit { flex: 0 0 auto; height: 52px; }
.pv-dns-submit:disabled {
	opacity: .5;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none;
}

@media (max-width: 640px) {
	.pv-dns-form__row { flex-direction: column; align-items: stretch; }
	.pv-dns-field,
	.pv-dns-field--select { flex: 1 1 auto; }
	.pv-dns-submit { width: 100%; }
}

/* ---------- Example chips ---------- */

.pv-dns-examples {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
	text-align: left;
}
.pv-dns-examples__label {
	color: var(--pv-muted);
	font-size: 12.5px;
	font-weight: 600;
}
.pv-dns-example {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 14px;
	border: 1px solid var(--pv-line-2);
	border-radius: 999px;
	background: var(--pv-soft-2);
	color: var(--pv-ink-2);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}
.pv-dns-example:hover { border-color: var(--pv-ink); color: var(--pv-ink); }

/* ---------- Loading state ---------- */

.pv-dns-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 30px 0 6px;
}
.pv-dns-spinner {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 3px solid var(--pv-line-2);
	border-top-color: var(--pv-cyan);
	animation: pv-dns-spin .8s linear infinite;
}
.pv-dns-loading p { margin: 0; color: var(--pv-ink-2); font-size: 13.5px; font-weight: 600; }

@keyframes pv-dns-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.pv-dns-spinner { animation-duration: 1.6s; }
}

/* ---------- Results ---------- */

.pv-dns-results {
	margin-top: 28px;
	padding-top: 26px;
	border-top: 1px solid var(--pv-line-2);
	text-align: left;
	transition: opacity .15s ease;
}
.pv-dns-results.is-loading { opacity: .45; pointer-events: none; }

.pv-dns-results__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}
.pv-dns-results__head h3 {
	font-size: 18px;
	letter-spacing: -.01em;
}
.pv-dns-results__head h3 span { font-family: var(--pv-mono); color: var(--pv-cyan); }
.pv-dns-results__note { margin: 10px 0 22px; color: var(--pv-muted); font-size: 12.5px; line-height: 1.6; }

.pv-dns-empty {
	padding: 16px 18px;
	border: 1px solid var(--pv-line-2);
	border-radius: var(--pv-r);
	background: var(--pv-soft-2);
	color: var(--pv-ink-2);
	font-size: 13.5px;
	line-height: 1.6;
	text-align: center;
}

.pv-dns-group { margin-bottom: 22px; }
.pv-dns-group:last-child { margin-bottom: 0; }
.pv-dns-group__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -.005em;
}
.pv-dns-group__title .pv-tag { font-size: 10px; }

.pv-dns-value {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.pv-dns-value__text {
	overflow-wrap: anywhere;
	word-break: break-word;
	font-family: var(--pv-mono);
	font-size: 12.5px;
}

.pv-dns-copy {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-top: -1px;
	border: 1px solid var(--pv-line-2);
	border-radius: 8px;
	background: #fff;
	color: var(--pv-muted);
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.pv-dns-copy:hover { border-color: var(--pv-ink); color: var(--pv-ink); }
.pv-dns-copy .pv-ico { width: 13px; height: 13px; }
.pv-dns-copy.is-copied { border-color: var(--pv-green); background: rgba(18, 183, 106, .08); color: var(--pv-green); }

/* SOA: key/value card instead of a table — a domain has exactly one SOA record */
.pv-dns-soa {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 10px 20px;
	padding: 16px 18px;
	border: 1px solid var(--pv-line);
	border-radius: var(--pv-r);
	background: #fff;
}
.pv-dns-soa dt { color: var(--pv-muted); font-size: 12px; font-weight: 600; }
.pv-dns-soa dd {
	margin: 0;
	overflow-wrap: anywhere;
	font-family: var(--pv-mono);
	font-size: 12.5px;
}
@media (max-width: 560px) {
	.pv-dns-soa { grid-template-columns: 1fr; gap: 3px 0; }
	.pv-dns-soa dd { margin-bottom: 10px; }
}
