/* WP Theme and Plugin Detector - front-end styles */

.wp-tpd-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1d2327;
}

.wp-tpd-scan-box {
	text-align: center;
	padding: 40px 20px;
}

.wp-tpd-title {
	font-size: 28px;
	margin: 0 0 8px;
}

.wp-tpd-subtitle {
	font-size: 15px;
	color: #666;
	margin: 0 0 24px;
}

#wp-tpd-form {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

#wp-tpd-url {
	width: 100%;
	max-width: 420px;
	padding: 12px 16px;
	font-size: 15px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	outline: none;
}

#wp-tpd-url:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

#wp-tpd-submit {
	padding: 12px 26px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #2271b1;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}

#wp-tpd-submit:hover {
	background: #135e96;
}

#wp-tpd-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.wp-tpd-message {
	margin: 20px auto 0;
	max-width: 500px;
	padding: 12px 16px;
	border-radius: 6px;
	background: #fcf0f1;
	border: 1px solid #d63638;
	color: #d63638;
	font-size: 14px;
}

.wp-tpd-message.wp-tpd-info {
	background: #f0f6fc;
	border-color: #2271b1;
	color: #2271b1;
}

/* ---------------- Theme hero (full screen) ---------------- */

.wp-tpd-theme-hero {
	position: relative;
	width: 100%;
	height: 92vh;
	min-height: 420px;
	background: #101318 center / cover no-repeat;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.wp-tpd-theme-hero-overlay {
	width: 100%;
	padding: 40px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
	color: #fff;
	box-sizing: border-box;
}

.wp-tpd-theme-label {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 12px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.15);
	padding: 4px 10px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.wp-tpd-theme-name {
	font-size: 40px;
	margin: 0 0 6px;
	line-height: 1.15;
}

.wp-tpd-theme-meta {
	font-size: 15px;
	opacity: 0.85;
	margin: 0;
}

/* ---------------- Plugins grid ---------------- */

.wp-tpd-plugins-section {
	padding: 50px 20px 60px;
}

.wp-tpd-plugins-heading {
	font-size: 22px;
	margin: 0 0 24px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.wp-tpd-plugins-count {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: #2271b1;
	padding: 3px 10px;
	border-radius: 999px;
}

.wp-tpd-plugins-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

@media (max-width: 980px) {
	.wp-tpd-plugins-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.wp-tpd-plugins-grid {
		grid-template-columns: 1fr;
	}
	.wp-tpd-theme-name {
		font-size: 28px;
	}
	.wp-tpd-theme-hero {
		height: 70vh;
	}
}

.wp-tpd-plugin-card {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 18px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.wp-tpd-plugin-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.wp-tpd-plugin-image-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f6f7f7;
	border-radius: 8px;
	overflow: hidden;
}

.wp-tpd-plugin-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-tpd-plugin-fallback-icon {
	font-size: 34px;
	font-weight: 700;
	color: #8c8f94;
}

.wp-tpd-plugin-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	word-break: break-word;
}

.wp-tpd-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wp-tpd-spin 0.7s linear infinite;
	vertical-align: -3px;
	margin-right: 6px;
}

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