/**
 * Görselleştirme kapsayıcıları.
 *
 * Tip renkleri panel metabox'ı ve madde şablonuyla aynı — üç yerde de
 * şahıs bordo, kurum mavi, olay pirinç.
 *
 * @package Atlas_Core
 */

.atlas-viz {
	--atlas-sahis: #8e2f3c;
	--atlas-kurum: #24566f;
	--atlas-olay: #7a5c25;
	--atlas-line: #e2ded7;
	--atlas-muted: #6b6560;

	position: relative;
	margin: 1.5em 0;
	border: 1px solid var(--atlas-line);
	border-radius: 3px;
	background: #fff;
	overflow: hidden;
}

.atlas-viz__stage {
	width: 100%;
	height: 100%;
}

.atlas-viz__loading,
.atlas-viz__error {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin: 0;
	color: var(--atlas-muted);
	font-size: 0.9em;
}

.atlas-viz__error {
	color: #b32d2e;
	padding: 1em;
	text-align: center;
}

.atlas-viz-notice {
	padding: 0.8em 1em;
	background: #fcf9e8;
	border-left: 4px solid #dba617;
	font-size: 0.9em;
}

/* ---------- Gösterge ---------- */

.atlas-viz__legend {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 500;
	display: flex;
	flex-wrap: wrap;
	gap: 0.9em;
	padding: 6px 10px;
	background: rgba( 255, 255, 255, 0.92 );
	border: 1px solid var(--atlas-line);
	border-radius: 3px;
	font-size: 0.78em;
	color: var(--atlas-muted);
}

.atlas-viz__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	white-space: nowrap;
}

.atlas-viz__legend i,
.atlas-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
	flex: none;
}

.atlas-dot--sahis { background: var(--atlas-sahis); }
.atlas-dot--kurum { background: var(--atlas-kurum); }
.atlas-dot--olay  { background: var(--atlas-olay); }

/* ---------- Ağ: seçili düğüm kutusu ---------- */

.atlas-viz__info {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 500;
	max-width: 240px;
	padding: 9px 12px;
	background: rgba( 255, 255, 255, 0.96 );
	border: 1px solid var(--atlas-line);
	border-radius: 3px;
	font-size: 0.85em;
	line-height: 1.5;
}

.atlas-viz__info strong {
	display: block;
	margin-bottom: 2px;
}

.atlas-viz__count {
	display: block;
	color: var(--atlas-muted);
	font-size: 0.9em;
	margin-bottom: 4px;
}

.atlas-viz__go {
	font-weight: 500;
	text-decoration: none;
}

/* ---------- Tünel ---------- */

.atlas-viz--timeline .vis-item.atlas-item--sahis {
	background-color: #f4e6e8;
	border-color: var(--atlas-sahis);
	color: #4a1a21;
}

.atlas-viz--timeline .vis-item.atlas-item--kurum {
	background-color: #e2edf3;
	border-color: var(--atlas-kurum);
	color: #16323f;
}

.atlas-viz--timeline .vis-item.atlas-item--olay {
	background-color: #f3eddd;
	border-color: var(--atlas-olay);
	color: #443318;
}

.atlas-viz--timeline .vis-item.vis-dot {
	border-width: 5px;
}

.atlas-viz--timeline .vis-item.vis-selected {
	box-shadow: 0 0 0 2px rgba( 142, 47, 60, 0.5 );
}

.atlas-viz--timeline .vis-item.vis-background.atlas-band--a {
	background-color: rgba( 142, 47, 60, 0.05 );
}

.atlas-viz--timeline .vis-item.vis-background.atlas-band--b {
	background-color: rgba( 36, 86, 111, 0.05 );
}

.atlas-viz--timeline .vis-item.vis-background .vis-item-content {
	font-size: 0.72em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--atlas-muted);
	padding-top: 3px;
}

.atlas-viz--timeline .vis-time-axis .vis-text {
	color: var(--atlas-muted);
	font-size: 0.78em;
}

/* ---------- Harita ---------- */

.atlas-viz--map .atlas-viz__stage.is-tileless {
	background: #f2f0ec;
}

.atlas-viz--map .leaflet-popup-content {
	margin: 10px 14px;
	line-height: 1.5;
}

.atlas-map__type {
	color: var(--atlas-muted);
	font-size: 0.85em;
}

/* Leaflet katmanları göstergenin altında kalsın. */
.atlas-viz--map .leaflet-pane {
	z-index: 400;
}
