/**
 * Live Roles WPBakery Addon
 * "Select your role to get started" section + role cards grid.
 */

.live-roles-section {
	margin-top: 2.5rem;
}

.live-roles-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--copan-border, #e3e8ef);
}

.live-roles-eyebrow {
	margin: 0;
	padding: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--copan-foreground-subtle, #6b7588);
}

body.copan-app-shell .copan-app-main .live-roles-section p.live-roles-eyebrow,
html.theme-dark body.copan-app-shell .copan-app-main .live-roles-section p.live-roles-eyebrow {
	color: var(--copan-foreground-subtle, #6b7588) !important;
}

.live-roles-count {
	margin: 0;
	padding: 0;
	font-size: 11px;
	color: var(--copan-foreground-subtle, #6b7588);
	white-space: nowrap;
}

body.copan-app-shell .copan-app-main .live-roles-section p.live-roles-count,
html.theme-dark body.copan-app-shell .copan-app-main .live-roles-section p.live-roles-count {
	color: var(--copan-foreground-subtle, #6b7588) !important;
}

.live-roles-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	margin-top: 1.25rem;
}

@media (min-width: 768px) {
	.live-roles-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.live-roles-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.role-card {
	display: block;
	height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--copan-border, #e3e8ef);
	border-radius: 14px;
	background: var(--copan-surface, #ffffff);
	box-shadow: var(--copan-shadow-sm, 0 1px 2px rgba(11, 27, 51, 0.06));
	text-decoration: none;
	color: inherit;
}

.role-card--live.role-card-lift {
	transition:
		transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
		box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
		border-color 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.role-card--live.role-card-lift:hover {
	transform: translateY(-2px);
	box-shadow: var(--copan-shadow, 0 4px 14px rgba(11, 27, 51, 0.1));
	border-color: var(--copan-border-strong, #cfd6e0);
}

.role-card--coming-soon {
	opacity: 0.95;
	cursor: default;
}

.role-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.role-card-icon-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 12px;
	background: var(--copan-brand-soft, #e8f4fc);
	color: var(--copan-brand-strong, #117bb5);
	box-shadow: inset 0 0 0 1px rgba(125, 203, 232, 0.45);
	flex-shrink: 0;
}

.role-card-icon-tile.is-muted {
	background: var(--copan-surface-muted, #f1f4f8);
	color: var(--copan-foreground-subtle, #6b7588);
	box-shadow: inset 0 0 0 1px var(--copan-border, #e3e8ef);
}

.role-card-lucide-icon {
	width: 1.5rem;
	height: 1.5rem;
	stroke-width: 1.75;
}

.role-card-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: normal;
}

.role-card-badge-icon {
	width: 0.75rem;
	height: 0.75rem;
}

.role-card-badge--live {
	background: rgba(31, 157, 104, 0.12);
	color: var(--copan-success, #1f9d68);
}

.role-card-badge--new {
	background: var(--copan-brand, #1b96d3);
	color: #fff;
}

.role-card-badge--coming-soon {
	background: var(--copan-surface-muted, #f1f4f8);
	color: var(--copan-foreground-subtle, #6b7588);
}

.role-card-title {
	margin: 1rem 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	line-height: 1.35;
	letter-spacing: -0.02em;
	font-weight: 400;
	color: var(--copan-foreground, #0b1b33);
	transition: color 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.copan-app-shell .copan-app-main .live-roles-section .role-card-title,
html.theme-dark body.copan-app-shell .copan-app-main .live-roles-section h3.role-card-title {
	color: var(--copan-foreground, #0b1b33) !important;
}

.role-card--live:hover .role-card-title {
	color: var(--copan-brand-strong, #117bb5);
}

.role-card--coming-soon .role-card-title {
	color: var(--copan-foreground-muted, #54627a);
}

body.copan-app-shell .copan-app-main .live-roles-section .role-card--coming-soon .role-card-title,
html.theme-dark body.copan-app-shell .copan-app-main .live-roles-section .role-card--coming-soon h3.role-card-title {
	color: var(--copan-foreground-muted, #54627a) !important;
}

.role-card-description {
	margin: 0.375rem 0 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--copan-foreground-muted, #54627a);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.copan-app-shell .copan-app-main .live-roles-section .role-card-description,
html.theme-dark body.copan-app-shell .copan-app-main .live-roles-section p.role-card-description {
	color: var(--copan-foreground-muted, #54627a) !important;
}

.role-card--coming-soon .role-card-description {
	color: var(--copan-foreground-subtle, #6b7588);
}

.role-card-footer {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 1rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.role-card-footer-icon {
	width: 0.875rem;
	height: 0.875rem;
	transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.role-card-footer--cta {
	color: var(--copan-brand-strong, #117bb5);
}

.role-card--live:hover .role-card-footer-icon {
	transform: translateX(2px);
}

.role-card-footer--muted {
	color: var(--copan-foreground-subtle, #6b7588);
}

@keyframes copan-rise-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.live-roles-section.rise-in {
	animation: copan-rise-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.live-roles-section.rise-in-delay-1 {
	animation-delay: 60ms;
}

.coming-soon-roles-section {
	margin-top: 3rem;
}

.coming-soon-roles-section.rise-in-delay-2 {
	animation-delay: 120ms;
}

html.theme-dark .live-roles-section .role-card {
	background: var(--copan-surface, #0f172a);
	border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .live-roles-section .live-roles-header {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .live-roles-section .role-card-title,
html.theme-dark body.copan-app-shell .copan-app-main .live-roles-section h3.role-card-title {
	color: #f8fafc !important;
}

html.theme-dark .live-roles-section .role-card--coming-soon .role-card-title {
	color: #94a3b8 !important;
}

html.theme-dark .live-roles-section .role-card-description,
html.theme-dark body.copan-app-shell .copan-app-main .live-roles-section p.role-card-description {
	color: #94a3b8 !important;
}

html.theme-dark .live-roles-section .role-card-icon-tile,
html.theme-dark body.copan-app-shell .copan-app-main .live-roles-section .role-card-icon-tile {
	background: rgba(27, 150, 211, 0.14);
	color: var(--copan-cyan-200, #7dcbe8);
	box-shadow: inset 0 0 0 1px rgba(125, 203, 232, 0.35);
}

html.theme-dark .live-roles-section .role-card-icon-tile.is-muted,
html.theme-dark body.copan-app-shell .copan-app-main .live-roles-section .role-card-icon-tile.is-muted {
	background: rgba(255, 255, 255, 0.05);
	color: #94a3b8;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html.theme-dark .live-roles-section .role-card-badge--coming-soon,
html.theme-dark .coming-soon-roles-section .role-card-badge--coming-soon,
html.theme-dark body.copan-app-shell .copan-app-main .live-roles-section .role-card-badge--coming-soon,
html.theme-dark body.copan-app-shell .copan-app-main .coming-soon-roles-section .role-card-badge--coming-soon {
	background: rgba(255, 255, 255, 0.06) !important;
	color: #94a3b8 !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

html.theme-dark .live-roles-section .role-card-badge--coming-soon .role-card-badge-icon,
html.theme-dark .coming-soon-roles-section .role-card-badge--coming-soon .role-card-badge-icon,
html.theme-dark body.copan-app-shell .copan-app-main .role-card-badge--coming-soon .role-card-badge-icon {
	color: inherit !important;
	stroke: currentColor;
}
