/**
 * Dashboard Level Card
 *
 * Compact level card component that fits in the stat card row.
 *
 * @package AgenticWP
 */

/* ==========================================================================
   Components: Level Card (Compact)
   ========================================================================== */

.agenticwp-level-card {
	grid-column: span 4;
	position: relative;
	background: linear-gradient(135deg, #2563eb, #1e3a8a);
	border-radius: var(--agenticwp-radius-lg);
	padding: 24px;
	color: white;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
	display: flex;
	flex-direction: column;
	min-height: 140px;
}

/* Abstract background shapes */
.agenticwp-level-card::before,
.agenticwp-level-card::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	z-index: 0;
}

.agenticwp-level-card::before {
	top: -60px;
	left: -60px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 35%, transparent 70%);
}

.agenticwp-level-card::after {
	bottom: -80px;
	right: -60px;
	width: 250px;
	height: 250px;
	background: radial-gradient(circle, rgba(30, 58, 138, 0.5) 0%, rgba(30, 58, 138, 0.2) 40%, transparent 70%);
}

.agenticwp-level-card-badge {
	position: relative;
	z-index: 1;
	background: rgba(0, 0, 0, 0.25);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.95);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
	align-self: flex-start;
	margin-bottom: var(--agenticwp-space-xs);
}

.agenticwp-level-card-name {
	position: relative;
	z-index: 1;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin-bottom: auto;
}

.agenticwp-level-card-progress {
	position: relative;
	z-index: 1;
	height: 8px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	margin-bottom: 8px;
	overflow: hidden;
}

.agenticwp-level-card-progress-bar {
	height: 100%;
	background: white;
	border-radius: 8px;
	box-shadow: 0 0 12px white;
	transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.agenticwp-level-card-calls {
	position: relative;
	z-index: 1;
	font-size: 12px;
	opacity: 0.8;
	font-weight: 500;
	text-align: right;
}
