/* ------------------------------------------------------------------
 * Theme integration (v1.15.0)
 * This stylesheet no longer defines its own color/font palette. Every
 * color, radius, shadow and heading font below is read live from the
 * VELYON theme's design tokens (assets/css/tokens.css on the theme),
 * so this UI automatically matches Brand Color changes and dark/light
 * mode with zero work here -- see the theme's design contract.
 *
 * Fallback values (the second arg to var()) are only a safety net for
 * previewing this plugin on a site that isn't running the VELYON
 * theme; on the real site the theme's tokens always win.
 *
 * Soft/tinted panel backgrounds (e.g. the "how it works" card) use
 * color-mix() against --velyon-accent / --velyon-surface rather than a
 * separate hardcoded "light green" swatch, so they track Brand Color
 * and dark/light mode automatically instead of drifting out of sync.
 * ------------------------------------------------------------------ */

.vc-muted {
	color: var(--velyon-text-muted, #6b7280);
	font-size: 13px;
}
.vc-download-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.vc-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	background: var(--velyon-accent, #16A34A);
	color: var(--velyon-on-accent, #05170A);
	text-decoration: none;
	border-radius: var(--velyon-radius-s, 8px);
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s ease, transform 0.1s ease;
}
.vc-download-btn:hover {
	background: var(--velyon-accent-deep, #15803D);
	color: var(--velyon-on-accent, #05170A);
	transform: translateY(-1px);
}
.vc-download-btn-secondary {
	background: transparent;
	color: var(--velyon-accent, #15803D);
	border: 1.5px solid var(--velyon-accent, #16A34A);
}
.vc-download-btn-secondary:hover {
	background: color-mix(in srgb, var(--velyon-accent, #16A34A) 12%, transparent);
	color: var(--velyon-accent, #15803D);
}

/* ------------------------------------------------------------------
 * [velyon_my_certificates]
 * No fixed white "card" background here on purpose -- this shortcode
 * is embedded inside other plugins' own containers (a Learner
 * Dashboard panel, a page builder section, etc.), so it should blend
 * into whatever hosts it rather than nesting a card inside a card.
 * ------------------------------------------------------------------ */
.vc-my-certificates-wrap {
	max-width: var(--velyon-maxw, 1180px);
	margin: 0 auto;
	padding: 8px 0 24px;
}
.vc-my-certificates-header {
	margin-bottom: 8px;
}
.vc-my-certificates-header .vc-verify-heading {
	text-align: left;
	font-size: 26px;
	margin-bottom: 4px;
}
.vc-my-certificates-header .vc-verify-subheading {
	text-align: left;
	margin: 0;
	max-width: none;
}

/* Gamified stats strip -- a quick "here's what you've earned" hit of
   progress before the grid, using the brand-decorative gold token
   (ratings / featured-style accents) for the trophy, not a semantic
   color, since this isn't a success/warning/error state. */
.vc-stats-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0 28px;
}
.vc-stat-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--velyon-surface, #fff);
	border: 1px solid var(--velyon-border, #E5E7EB);
	border-radius: var(--velyon-radius-l, 22px);
	font-family: var(--velyon-font-heading, 'Sora', sans-serif);
	font-weight: 700;
	font-size: 14px;
	color: var(--velyon-text, #0F172A);
}
.vc-stat-pill-icon {
	font-size: 16px;
	line-height: 1;
}

.vc-empty-certificates {
	text-align: center;
	padding: 48px 24px;
	color: var(--velyon-text-muted, #64748B);
	background: color-mix(in srgb, var(--velyon-accent, #16A34A) 6%, var(--velyon-surface, #fff));
	border: 1px solid var(--velyon-border, #E5E7EB);
	border-radius: var(--velyon-radius-m, 14px);
}
.vc-logged-out-state {
	text-align: center;
	padding: 56px 24px;
	background: color-mix(in srgb, var(--velyon-accent, #16A34A) 6%, var(--velyon-surface, #fff));
	border: 1px solid var(--velyon-border, #E5E7EB);
	border-radius: var(--velyon-radius-m, 14px);
}
.vc-logged-out-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}
.vc-logged-out-text {
	color: var(--velyon-text, #0F172A);
	font-size: 15.5px;
	margin: 0 0 22px;
}
.vc-login-btn {
	display: inline-block;
	padding: 12px 30px;
	background: var(--velyon-accent, #16A34A);
	color: var(--velyon-on-accent, #05170A);
	text-decoration: none;
	border-radius: var(--velyon-radius-s, 8px);
	font-weight: 700;
	font-size: 14.5px;
	transition: background 0.15s ease, transform 0.1s ease;
}
.vc-login-btn:hover {
	background: var(--velyon-accent-deep, #15803D);
	color: var(--velyon-on-accent, #05170A);
	transform: translateY(-1px);
}
.vc-certificates-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 22px;
}
.vc-certificate-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--velyon-surface, #fff);
	border: 1px solid var(--velyon-border, #E5E7EB);
	border-radius: var(--velyon-radius-m, 14px);
	overflow: hidden;
	box-shadow: var(--velyon-shadow, 0 1px 3px rgba(15, 23, 42, 0.05));
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.vc-certificate-card:hover {
	box-shadow: var(--velyon-shadow, 0 10px 24px rgba(15, 23, 42, 0.09));
	transform: translateY(-2px);
}
/* "New" ribbon for certificates issued in the last 14 days -- gold is
   reserved for exactly this kind of decorative/"featured" use per the
   theme's token contract, never used as a semantic status color. */
.vc-new-ribbon {
	position: absolute;
	top: 12px;
	right: -30px;
	transform: rotate(40deg);
	background: var(--velyon-gold, #FFB800);
	color: #1A1300;
	font-family: var(--velyon-font-heading, 'Sora', sans-serif);
	font-weight: 800;
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 34px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	z-index: 1;
}
.vc-certificate-thumb {
	aspect-ratio: 1.4 / 1;
	background: var(--velyon-surface-alt, #F0FDF4);
	border-bottom: 1px solid var(--velyon-border, #E5E7EB);
	overflow: hidden;
}
.vc-certificate-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.vc-certificate-card-body {
	padding: 16px 18px 2px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.vc-certificate-card-body strong {
	font-family: var(--velyon-font-heading, 'Sora', sans-serif);
	font-size: 15.5px;
	color: var(--velyon-text, #0F172A);
	line-height: 1.35;
}
.vc-certificate-card-actions {
	padding: 14px 18px 18px;
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* "Share hook" -- a deliberately prominent block (not a small icon row)
   under the download buttons on both My Certificates cards and the
   verify-page result. Purpose is brand-awareness through sharing, so this
   is sized to actually get noticed and clicked. */
.vc-share-hook {
	padding: 20px 22px;
	background: color-mix(in srgb, var(--velyon-accent, #16A34A) 5%, var(--velyon-surface, #fff));
	border: 1px solid var(--velyon-border, #E5E7EB);
	border-radius: var(--velyon-radius-m, 14px);
}
.vc-share-hook-heading {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 16px;
}
.vc-share-hook-emoji {
	font-size: 22px;
	line-height: 1.3;
}
.vc-share-hook-heading strong {
	display: block;
	font-family: var(--velyon-font-heading, 'Sora', sans-serif);
	font-size: 15px;
	color: var(--velyon-text, #0F172A);
	margin-bottom: 2px;
}
.vc-share-hook-heading span {
	font-size: 13px;
	color: var(--velyon-text-muted, #64748B);
	line-height: 1.5;
}
.vc-linkedin-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 13px 20px;
	margin-bottom: 18px;
	background: #0A66C2; /* LinkedIn's own brand color -- not a theme token, intentionally fixed */
	color: #fff;
	text-decoration: none;
	border-radius: var(--velyon-radius-s, 10px);
	font-weight: 700;
	font-size: 14.5px;
	box-sizing: border-box;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.vc-linkedin-cta:hover {
	background: #084d92;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(10, 102, 194, 0.3);
}
.vc-linkedin-cta svg {
	flex-shrink: 0;
}
.vc-share-hook-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.vc-share-hook-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--velyon-text, #0F172A);
}
.vc-share-icons {
	display: flex;
	gap: 12px;
}
.vc-share-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	flex-shrink: 0;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.12s ease;
}
.vc-share-circle:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: var(--velyon-shadow, 0 8px 16px rgba(15, 23, 42, 0.22));
	filter: brightness(1.06);
}
.vc-share-circle svg {
	display: block;
}
/* Facebook/X brand colors -- also intentionally fixed, same reasoning as LinkedIn above */
.vc-share-circle-facebook {
	background: #1877F2;
}
.vc-share-circle-x {
	background: #000000;
}
.vc-share-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 999px;
	background: transparent;
	border: 1.5px solid var(--velyon-accent, #16A34A);
	color: var(--velyon-accent, #15803D);
	font-weight: 700;
	font-size: 13.5px;
	font-family: var(--velyon-font-body, inherit);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease, color 0.15s ease, border-color 0.15s ease;
}
.vc-share-copy-btn:hover {
	background: color-mix(in srgb, var(--velyon-accent, #16A34A) 12%, transparent);
	transform: translateY(-1px);
}
.vc-share-copy-btn.is-copied {
	background: var(--velyon-accent, #16A34A);
	border-color: var(--velyon-accent, #16A34A);
	color: var(--velyon-on-accent, #05170A);
}
.vc-share-copy-btn svg {
	flex-shrink: 0;
}
.vc-share-copy-label {
	white-space: nowrap;
}

/* ------------------------------------------------------------------
 * [velyon_verify_certificate]
 * This one IS a standalone public page (reached via QR scan / typed
 * URL, not nested inside another plugin's container), so it keeps its
 * own centered max-width rather than deferring to a host container.
 * ------------------------------------------------------------------ */
.vc-verify-wrap {
	max-width: 920px;
	margin: 0 auto;
	padding: 8px 16px 40px;
}

.vc-verify-header {
	text-align: center;
	margin-bottom: 40px;
}
.vc-verify-seal {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}
.vc-verify-heading {
	font-family: var(--velyon-font-heading, 'Sora', sans-serif);
	font-weight: 700;
	font-size: 32px;
	color: var(--velyon-text, #0F172A);
	margin: 0 0 10px;
}
.vc-verify-subheading {
	color: var(--velyon-text-muted, #64748B);
	font-size: 15.5px;
	line-height: 1.6;
	max-width: 480px;
	margin: 0 auto;
}

.vc-verify-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
	align-items: start;
}
@media (max-width: 860px) {
	.vc-verify-grid {
		grid-template-columns: 1fr;
	}
}

/* "How it works" steps card */
.vc-steps {
	background: color-mix(in srgb, var(--velyon-accent, #16A34A) 6%, var(--velyon-surface, #fff));
	border: 1px solid var(--velyon-border, #E5E7EB);
	border-radius: var(--velyon-radius-m, 14px);
	padding: 26px 22px;
}
.vc-steps h3 {
	font-family: var(--velyon-font-heading, 'Sora', sans-serif);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--velyon-accent-deep, #15803D);
	margin: 0 0 20px;
}
.vc-step {
	display: flex;
	gap: 14px;
	margin-bottom: 22px;
}
.vc-step:last-child {
	margin-bottom: 0;
}
.vc-step-number {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--velyon-accent, #16A34A);
	color: var(--velyon-on-accent, #05170A);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--velyon-font-heading, 'Sora', sans-serif);
	font-weight: 700;
	font-size: 13px;
}
.vc-step-text {
	font-size: 14px;
	color: var(--velyon-text, #0F172A);
	line-height: 1.55;
	padding-top: 3px;
}
.vc-step-text strong {
	display: block;
	margin-bottom: 2px;
}

/* Form + result panel */
.vc-verify-panel {
	background: var(--velyon-surface, #fff);
	border: 1px solid var(--velyon-border, #E5E7EB);
	border-radius: var(--velyon-radius-m, 14px);
	padding: 26px;
	box-shadow: var(--velyon-shadow, 0 1px 3px rgba(15, 23, 42, 0.05));
}
.vc-verify-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.vc-verify-form label {
	font-weight: 600;
	font-size: 14px;
	color: var(--velyon-text, #0F172A);
}
.vc-verify-form input[type="text"] {
	padding: 12px 14px;
	background: var(--velyon-bg, #fff);
	color: var(--velyon-text, #0F172A);
	border: 1.5px solid var(--velyon-border, #E5E7EB);
	border-radius: var(--velyon-radius-s, 8px);
	font-size: 15px;
	font-family: var(--velyon-font-body, inherit);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vc-verify-form input[type="text"]:focus {
	outline: none;
	border-color: var(--velyon-accent, #16A34A);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--velyon-accent, #16A34A) 18%, transparent);
}
.vc-verify-form input[type="text"].vc-input-error {
	border-color: var(--velyon-danger, #DC2626);
}
.vc-field-error {
	color: var(--velyon-danger, #B91C1C);
	font-size: 13px;
	font-weight: 600;
}
.vc-verify-form button {
	align-self: flex-start;
	margin-top: 6px;
	padding: 11px 26px;
	background: var(--velyon-accent, #16A34A);
	color: var(--velyon-on-accent, #05170A);
	border: none;
	border-radius: var(--velyon-radius-s, 8px);
	cursor: pointer;
	font-weight: 700;
	font-size: 14.5px;
	font-family: var(--velyon-font-heading, inherit);
	transition: background 0.15s ease;
}
.vc-verify-form button:hover {
	background: var(--velyon-accent-deep, #15803D);
}

.vc-verify-result {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--velyon-border, #E5E7EB);
}
.vc-certificate-result {
	animation: vc-fade-in 0.25s ease;
}
@keyframes vc-fade-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}
.vc-result-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 14.5px;
	color: var(--velyon-success, #15803D);
	margin-bottom: 18px;
}
.vc-result-thumb {
	border: 1px solid var(--velyon-border, #E5E7EB);
	border-radius: var(--velyon-radius-s, 10px);
	overflow: hidden;
	margin-bottom: 18px;
	background: var(--velyon-surface-alt, #F0FDF4);
}
.vc-result-thumb img {
	width: 100%;
	display: block;
}
.vc-result-details {
	display: grid;
	gap: 12px;
	margin: 0 0 22px;
}
.vc-result-details > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px dashed var(--velyon-border, #E5E7EB);
}
.vc-result-details dt {
	color: var(--velyon-text-muted, #64748B);
	font-size: 13.5px;
}
.vc-result-details dd {
	margin: 0;
	font-weight: 600;
	color: var(--velyon-text, #0F172A);
	text-align: right;
}
.vc-result-details code {
	background: var(--velyon-surface-alt, #F0FDF4);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 13px;
}
.vc-certificate-result-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.vc-not-found {
	color: var(--velyon-danger, #B91C1C);
	font-weight: 600;
	background: color-mix(in srgb, var(--velyon-danger, #DC2626) 10%, var(--velyon-surface, #fff));
	border: 1px solid color-mix(in srgb, var(--velyon-danger, #DC2626) 35%, transparent);
	padding: 14px 16px;
	border-radius: var(--velyon-radius-s, 8px);
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.vc-certificate-result {
		animation: none;
	}
}

@media (max-width: 782px) {
	.vc-certificates-grid {
		grid-template-columns: 1fr;
	}
	.vc-stats-strip {
		gap: 8px;
	}
}
