/* Professional Academy Student Certificate Portal — Public Styles */

.pacp-wrap {
	--pacp-primary: #0f766e;
	--pacp-secondary: #0b3d3a;
	max-width: 760px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
	box-sizing: border-box;
}
.pacp-wrap *, .pacp-wrap *::before, .pacp-wrap *::after { box-sizing: border-box; }

.pacp-logo-wrap { text-align: center; margin-bottom: 16px; }
.pacp-logo { max-height: 70px; }

.pacp-title { text-align: center; font-size: 1.6em; margin: 0 0 4px; color: var(--pacp-secondary); }
.pacp-subtitle { text-align: center; color: #6b7280; margin: 0 0 20px; }

.pacp-search-form { margin-bottom: 24px; }
.pacp-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pacp-input {
	flex: 1 1 260px;
	padding: 12px 14px;
	font-size: 1em;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	outline: none;
	transition: border-color .2s ease;
}
.pacp-input:focus { border-color: var(--pacp-primary); }

.pacp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font-size: 1em;
	font-weight: 600;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform .1s ease, opacity .2s ease;
}
.pacp-btn:hover { opacity: .9; }
.pacp-btn:active { transform: scale(0.98); }
.pacp-btn-primary { background: var(--pacp-primary); color: #fff; }
.pacp-btn-secondary { background: var(--pacp-secondary); color: #fff; }
.pacp-btn-outline { background: #fff; color: var(--pacp-secondary); border-color: var(--pacp-secondary); }

.pacp-loader {
	width: 16px; height: 16px;
	border: 2px solid rgba(255,255,255,.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pacp-spin .7s linear infinite;
}
@keyframes pacp-spin { to { transform: rotate(360deg); } }

.pacp-result-container { min-height: 20px; }

.pacp-result {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	animation: pacp-fade-in .25s ease;
}
@keyframes pacp-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pacp-result-invalid { text-align: center; }

.pacp-badge {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	font-weight: 700;
	margin-bottom: 18px;
}
.pacp-badge-valid { background: #dcfce7; color: #166534; }
.pacp-badge-invalid { background: #fee2e2; color: #991b1b; }
.pacp-badge-expired { background: #fef3c7; color: #92400e; }
.pacp-badge-cancelled { background: #fee2e2; color: #991b1b; }
.pacp-badge-pending { background: #e0e7ff; color: #3730a3; }

.pacp-details-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.pacp-details-table tr { border-bottom: 1px solid #f1f5f9; }
.pacp-details-table th, .pacp-details-table td { text-align: left; padding: 10px 8px; font-size: .95em; }
.pacp-details-table th { width: 42%; color: #6b7280; font-weight: 600; }
.pacp-details-table td { color: #111827; font-weight: 500; }

.pacp-status-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .85em; font-weight: 700; }
.pacp-status-pill.pacp-badge-active { background: #dcfce7; color: #166534; }
.pacp-status-pill.pacp-badge-expired { background: #fef3c7; color: #92400e; }
.pacp-status-pill.pacp-badge-cancelled { background: #fee2e2; color: #991b1b; }
.pacp-status-pill.pacp-badge-pending { background: #e0e7ff; color: #3730a3; }

.pacp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.pacp-qr-wrap { text-align: center; padding-top: 12px; border-top: 1px dashed #e5e7eb; }
.pacp-qr-caption { color: #6b7280; font-size: .85em; margin-top: 8px; }

.pacp-notice { text-align: center; color: #6b7280; }

@media print {
	.no-print { display: none !important; }
	body * { visibility: hidden; }
	#pacp-printable-certificate, #pacp-printable-certificate * { visibility: visible; }
	#pacp-printable-certificate { position: absolute; left: 0; top: 0; width: 100%; }
}

@media (max-width: 600px) {
	.pacp-search-row { flex-direction: column; }
	.pacp-btn { width: 100%; }
	.pacp-details-table th { width: 50%; }
}
