/* TFT Certificate Verification — Public Styles
   Matches Transfotech Academy dark glassmorphism theme */

/* ── Wrapper ── */
.tft-verify-wrap {
	max-width: 640px;
	margin: 0 auto;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #f0f0ff;
}

/* ── Page title ── */
.tft-verify-title {
	font-family: 'Exo 2', sans-serif;
	font-size: clamp(22px, 3vw, 34px);
	font-weight: 800;
	margin: 0 0 24px;
	letter-spacing: 0.01em;
	background: linear-gradient(90deg, #00d4ff, #7c3aff, #ff3366);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ── Search form ── */
.tft-verify-form {
	margin-bottom: 32px;
}

.tft-verify-input-group {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(13, 13, 31, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 50px;
	padding: 6px 6px 6px 22px;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tft-verify-input-group:focus-within {
	border-color: rgba(0, 212, 255, 0.35);
	box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.07);
}

.tft-verify-input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	outline: none;
	font-family: 'JetBrains Mono', 'DM Sans', monospace;
	font-size: 14px;
	font-weight: 500;
	color: #f0f0ff;
	letter-spacing: 0.04em;
	padding: 8px 0;
}

.tft-verify-input::placeholder {
	color: rgba(240, 240, 255, 0.3);
	font-family: 'DM Sans', sans-serif;
	font-weight: 400;
	letter-spacing: 0;
}

.tft-verify-btn {
	flex-shrink: 0;
	padding: 13px 28px;
	background: linear-gradient(135deg, #c278d6, #8a3aa5);
	color: #fff;
	border: none;
	border-radius: 50px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	letter-spacing: 0.02em;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tft-verify-btn:hover,
.tft-verify-btn:focus {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 8px 28px rgba(124, 58, 255, 0.45);
	outline: none;
}

/* ── Result card (glass) ── */
.tft-verify-result {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	padding: 36px 28px 32px;
	background: rgba(13, 13, 31, 0.7);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.07);
	text-align: center;
}

/* Colored accent line at top */
.tft-verify-result::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
}

/* ── Valid state ── */
.tft-result--valid {
	border-color: rgba(0, 212, 255, 0.2);
	box-shadow: 0 0 48px rgba(0, 212, 255, 0.05), 0 4px 32px rgba(0, 0, 0, 0.3);
}

.tft-result--valid::before {
	background: linear-gradient(90deg, #00d4ff, #00ff9d);
}

/* ── Invalid state ── */
.tft-result--invalid {
	border-color: rgba(255, 51, 102, 0.2);
	box-shadow: 0 0 48px rgba(255, 51, 102, 0.05), 0 4px 32px rgba(0, 0, 0, 0.3);
}

.tft-result--invalid::before {
	background: linear-gradient(90deg, #ff3366, #ff6b6b);
}

/* ── Revoked state ── */
.tft-result--revoked {
	border-color: rgba(244, 210, 27, 0.2);
	box-shadow: 0 0 48px rgba(244, 210, 27, 0.05), 0 4px 32px rgba(0, 0, 0, 0.3);
}

.tft-result--revoked::before {
	background: linear-gradient(90deg, #f4d21b, #ff9a3c);
}

/* ── Result icon ── */
.tft-result-icon {
	display: block;
	font-size: 54px;
	line-height: 1;
	margin-bottom: 16px;
}

.tft-result-icon--valid {
	color: #00d4ff;
	filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.55));
}

.tft-result-icon--invalid {
	color: #ff3366;
	filter: drop-shadow(0 0 14px rgba(255, 51, 102, 0.55));
}

/* ── Result heading ── */
.tft-verify-result h3 {
	font-family: 'Exo 2', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #f0f0ff;
	margin: 0 0 6px;
	letter-spacing: 0.01em;
}

.tft-result-subtitle {
	font-size: 13px;
	color: rgba(240, 240, 255, 0.5);
	margin: 0 0 28px;
}

/* ── Certificate details table ── */
.tft-cert-details {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	border-collapse: collapse;
	text-align: left;
}

.tft-cert-details th,
.tft-cert-details td {
	padding: 11px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 14px;
	vertical-align: middle;
}

.tft-cert-details tbody tr:last-child th,
.tft-cert-details tbody tr:last-child td {
	border-bottom: none;
}

.tft-cert-details th {
	width: 42%;
	color: rgba(240, 240, 255, 0.4);
	font-weight: 500;
	white-space: nowrap;
}

.tft-cert-details td {
	color: #f0f0ff;
}

.tft-cert-details td strong {
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	font-weight: 500;
	color: #00d4ff;
	letter-spacing: 0.06em;
}

/* ── Invalid / revoked message text ── */
.tft-verify-result p {
	font-size: 14px;
	color: rgba(240, 240, 255, 0.55);
	margin: 8px 0 0;
	line-height: 1.6;
}

/* ── Rate limit wait message ── */
.tft-wait-msg {
	margin-top: 10px !important;
	font-size: 15px !important;
	font-weight: 600;
	color: #ff3366 !important;
	letter-spacing: 0.01em;
}

/* ── Responsive ── */
@media (max-width: 520px) {
	.tft-verify-input-group {
		flex-direction: column;
		border-radius: 16px;
		padding: 14px 14px;
		gap: 10px;
	}

	.tft-verify-input {
		padding: 4px 0;
	}

	.tft-verify-btn {
		width: 100%;
		padding: 13px 20px;
	}

	.tft-verify-result {
		padding: 28px 18px 24px;
	}

	.tft-cert-details th {
		width: 38%;
	}
}
