/* ==========================================================================
   MyCreaTools Analytics Chart & Statistics Widget CSS
   ========================================================================== */

.mct-analytics-wrapper {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

/* Card Container matching screenshot design */
.mct-analytics-card {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 24px;
	padding: 26px 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
	box-sizing: border-box;
	width: 100%;
}

/* Header Section */
.mct-analytics-header {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 24px;
}

.mct-analytics-title {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.mct-analytics-subtitle {
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	margin: 0;
}

/* SVG Chart Container */
.mct-chart-container {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
}

.mct-chart-svg {
	width: 100%;
	height: auto;
	display: block;
	overflow: visible;
}

/* Y-Axis and X-Axis Text */
.mct-chart-axis-text {
	font-size: 13px;
	font-weight: 600;
	fill: #64748b;
	font-family: inherit;
}

/* Grid Lines */
.mct-chart-grid-line {
	stroke: #f1f5f9;
	stroke-width: 1;
	stroke-dasharray: 0;
}

/* Data Points with Pulse & Tooltip */
.mct-chart-point {
	cursor: pointer;
	transition: r 0.2s ease, fill 0.2s ease;
}

.mct-chart-point:hover {
	r: 7.5;
}

/* Interactive SVG Tooltip */
.mct-chart-tooltip {
	position: absolute;
	padding: 6px 12px;
	background: #0f172a;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 8px;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -120%);
	transition: opacity 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mct-chart-tooltip.is-active {
	opacity: 1;
	transform: translate(-50%, -135%);
}

/* Bottom Metrics Summary Bar */
.mct-analytics-metrics-bar {
	border-top: 1px solid #f1f5f9;
	padding-top: 22px;
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.mct-metric-col {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mct-metric-label {
	font-size: 13.5px;
	font-weight: 600;
	color: #64748b;
	margin: 0;
	line-height: 1.3;
}

.mct-metric-val {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

/* Responsive Adaptations */
@media (max-width: 768px) {
	.mct-analytics-card {
		padding: 20px 18px;
	}

	.mct-analytics-metrics-bar {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.mct-metric-val {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.mct-analytics-metrics-bar {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}
