/* Noindex Checker — styles */

.nic-tool {
	--nic-bg: #ffffff;
	--nic-fg: #1a1a1a;
	--nic-muted: #6b7280;
	--nic-border: #e5e7eb;
	--nic-primary: #2563eb;
	--nic-primary-fg: #ffffff;
	--nic-pass: #16a34a;
	--nic-warning: #d97706;
	--nic-error: #dc2626;
	--nic-card-bg: #f9fafb;

	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--nic-fg);
}

@media (prefers-color-scheme: dark) {
	.nic-tool {
		--nic-bg: #111827;
		--nic-fg: #f3f4f6;
		--nic-muted: #9ca3af;
		--nic-border: #374151;
		--nic-card-bg: #1f2937;
	}
}

.nic-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.nic-input-group {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.nic-input {
	flex: 1 1 260px;
	min-width: 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--nic-border);
	border-radius: 8px;
	font-size: 1rem;
	background: var(--nic-bg);
	color: var(--nic-fg);
}

.nic-input:focus-visible {
	outline: 2px solid var(--nic-primary);
	outline-offset: 1px;
}

.nic-btn {
	padding: 0.65rem 1.1rem;
	border-radius: 8px;
	border: 1px solid var(--nic-border);
	font-size: 1rem;
	cursor: pointer;
	background: var(--nic-bg);
	color: var(--nic-fg);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.nic-btn:focus-visible {
	outline: 2px solid var(--nic-primary);
	outline-offset: 1px;
}

.nic-btn-primary {
	background: var(--nic-primary);
	border-color: var(--nic-primary);
	color: var(--nic-primary-fg);
	font-weight: 600;
}

.nic-btn-ghost {
	background: transparent;
}

.nic-spinner {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nic-spin 0.7s linear infinite;
}

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

.nic-example {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: #fff;
}

.nic-example-link {
	background: none;
	border: none;
	padding: 0;
	color: var(--nic-primary);
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
}

.nic-error {
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: rgba(220, 38, 38, 0.1);
	color: var(--nic-error);
	font-size: 0.9rem;
}

.nic-results {
	margin-top: 2rem;
}

.nic-verdict {
	padding: 0.9rem 1.1rem;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 1rem;
	word-break: break-all;
}

.nic-verdict-indexable {
	background: rgba(22, 163, 74, 0.12);
	color: var(--nic-pass);
}
.nic-verdict-crawl-blocked {
	background: rgba(217, 119, 6, 0.12);
	color: var(--nic-warning);
}
.nic-verdict-blocked {
	background: rgba(220, 38, 38, 0.12);
	color: var(--nic-error);
}

.nic-flags {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
}

.nic-flag {
	padding: 0.55rem 0.8rem;
	border-radius: 6px;
	font-size: 0.85rem;
}

.nic-flag-pass { background: rgba(22, 163, 74, 0.1); color: var(--nic-pass); }
.nic-flag-warning { background: rgba(217, 119, 6, 0.1); color: var(--nic-warning); }
.nic-flag-error { background: rgba(220, 38, 38, 0.1); color: var(--nic-error); }

.nic-section {
	margin-top: 1.5rem;
}

.nic-subheading {
	font-size: 1rem;
	margin: 0 0 0.75rem;
    color:#fff;
}

.nic-signals {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem;
}

.nic-signal-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	background: var(--nic-card-bg);
	border: 1px solid var(--nic-border);
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	font-size: 0.83rem;
}

.nic-signal-label {
	color: var(--nic-muted);
	flex-shrink: 0;
}

.nic-signal-value {
	text-align: right;
	word-break: break-all;
}

@media print {
	.nic-input-row {
		display: none !important;
	}
}
