/* ==========================================================================
   Heptagon Trade Graph — Frontend Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
.heptagon-graph-wrapper {
	--hep-bg:           #111111;
	--hep-surface:      #1a1a1a;
	--hep-border:       #333333;
	--hep-red:          #e8312a;
	--hep-text:         #ffffff;
	--hep-text-muted:   #aaaaaa;
	--hep-radius:       8px;
	--hep-font:         'Segoe UI', Arial, sans-serif;

	font-family: inherit, var(--hep-font);
	width: 100%;
}

/* --------------------------------------------------------------------------
   Outer wrapper
   -------------------------------------------------------------------------- */
.heptagon-graph-wrapper {
	background: var(--hep-surface);
	border: 1px solid var(--hep-border);
	border-radius: var(--hep-radius);
	overflow: hidden;
	color: var(--hep-text);
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------------------
   Header (title + subtitle)
   -------------------------------------------------------------------------- */
.heptagon-graph-header {
	padding: 24px 28px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	margin-bottom: 0;
}

.heptagon-graph-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--hep-text) !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	border: none !important;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.heptagon-graph-subtitle {
	font-size: 0.85rem;
	color: var(--hep-red);
	margin: 0 0 18px !important;
	padding: 0 !important;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Canvas wrapper
   -------------------------------------------------------------------------- */
.heptagon-graph-canvas-wrap {
	padding: 24px 28px 28px;
	position: relative;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.heptagon-graph-canvas-wrap canvas {
	display: block;
	width: 100% !important;
	max-height: 480px;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.heptagon-graph-empty {
	color: var(--hep-text-muted);
	font-style: italic;
	text-align: center;
	padding: 40px 0;
	margin: 0;
	font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
	.heptagon-graph-header {
		padding: 18px 18px 0;
	}

	.heptagon-graph-canvas-wrap {
		padding: 16px 12px 20px;
		min-height: 240px;
	}

	.heptagon-graph-title {
		font-size: 1.1rem !important;
	}

	.heptagon-graph-subtitle {
		font-size: 0.78rem;
	}
}
