/**
 * IOM Social Name Checker – card grid + badges.
 * Built by IOM Web Design, helping support small businesses on the Isle of Man and UK.
 */

.iom-social-name-checker {
	width: 100%;
	max-width: none;
	margin: 1em 0;
}

.iom-social-name-checker label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
}

.iom-snc-input {
	display: block;
	width: 100%;
	max-width: 20em;
	padding: 0.5em 0.6em;
	margin-bottom: 0.25em;
	font-size: 1em;
	line-height: 1.4;
	border: 1px solid #555;
	border-radius: 3px;
	box-sizing: border-box;
}

.iom-snc-helper {
	margin: 0 0 0.75em;
	font-size: 0.9em;
	color: #555;
}

.iom-snc-check {
	padding: 0.5em 1em;
	font-size: 1em;
	font-weight: 600;
	color: #fff;
	background: #2271b1;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}

.iom-snc-check:hover {
	background: #135e96;
}

.iom-snc-check:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.iom-snc-error {
	margin-top: 0.75em;
	padding: 0.6em 0.75em;
	color: #721c24;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 3px;
	font-size: 0.95em;
}

.iom-snc-checking {
	margin-top: 0.75em;
	font-size: 0.95em;
	color: #555;
}

.iom-snc-results {
	margin-top: 1em;
}

/* Grid: 1 → 2 → 3 → 5 columns by breakpoint */
.iom-snc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1em;
	align-items: stretch;
}

@media (min-width: 600px) {
	.iom-snc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.iom-snc-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1200px) {
	.iom-snc-grid {
		grid-template-columns: repeat(5, minmax(180px, 1fr));
	}
}

.iom-snc-card {
	padding: 1em;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5em;
	min-height: 0;
}

.iom-snc-card__logo {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
}

.iom-snc-card__logo svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.iom-snc-card__name {
	font-weight: 600;
	font-size: 0.95em;
}

.iom-snc-card .iom-snc-badge {
	margin-top: 0.25em;
}

/* Status badges */
.iom-snc-badge {
	display: inline-block;
	padding: 0.35em 0.65em;
	font-size: 0.85em;
	font-weight: 600;
	border-radius: 4px;
	white-space: nowrap;
}

.iom-snc-badge--available {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.iom-snc-badge--not_available {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.iom-snc-badge--unknown {
	background: #e2e3e5;
	color: #383d41;
	border: 1px solid #d6d8db;
}

.iom-snc-note {
	margin-top: 1em;
	font-size: 0.9em;
	color: #555;
}

@media (min-width: 900px) {
	.iom-snc-note {
		white-space: nowrap;
	}
}

.iom-snc-badge--placeholder {
	background: #e9ecef;
	color: #495057;
	border: 1px solid #dee2e6;
}

.iom-snc-card__debug {
	margin-top: 0.35em;
	font-size: 0.75em;
	color: #6c757d;
}
