@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@400;500&display=swap');

.hat-widget {
	--hat-black: #0f1110;
	--hat-orange: #ff6b35;
	--hat-green: #2a7d4f;
	background: var(--hat-black);
	color: #f2f2f0;
	border-radius: 6px;
	overflow: hidden;
	font-family: 'DM Mono', monospace;
	max-width: 100%;
}

.hat-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 14px;
	border-bottom: 2px solid var(--hat-orange);
}

.hat-title {
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 0.05em;
	font-size: 1.3rem;
	color: var(--hat-orange);
}

.hat-updated {
	font-size: 0.7rem;
	opacity: 0.6;
}

#hat-map {
	width: 100%;
	position: relative;
	background: #1a1a1a;
}

.hat-widget .leaflet-tile-pane {
	filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.85);
}

.hat-widget .leaflet-control-attribution {
	background: rgba(15,17,16,0.75);
	color: #ccc;
	font-family: 'DM Mono', monospace;
	font-size: 0.65rem;
}

.hat-widget .leaflet-control-attribution a {
	color: var(--hat-orange, #ff6b35);
}

.hat-zoom-hint {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1000;
	background: rgba(15,17,16,0.85);
	color: #f2f2f0;
	font-family: 'DM Mono', monospace;
	font-size: 0.72rem;
	padding: 4px 8px;
	border-radius: 3px;
	border: 1px solid var(--hat-orange, #ff6b35);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.hat-zoom-hint-show {
	opacity: 1;
}

.hat-ticker-wrap {
	border-top: 2px solid var(--hat-orange);
	overflow: hidden;
	background: #171917;
	padding: 8px 0;
}

.hat-ticker {
	display: inline-flex;
	white-space: nowrap;
	animation: hat-scroll 40s linear infinite;
	will-change: transform;
}

.hat-ticker:hover {
	animation-play-state: paused;
}

@keyframes hat-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.hat-ticker-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 22px;
	font-size: 0.82rem;
}

.hat-ticker-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.hat-ticker-icon path {
	fill: var(--hat-orange);
}

.hat-ticker-name {
	color: var(--hat-orange);
	font-weight: 500;
}

.hat-ticker-meta {
	opacity: 0.7;
}

.hat-ticker-empty {
	padding: 0 22px;
	opacity: 0.5;
	font-size: 0.82rem;
}

.hat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 220px;
	overflow-y: auto;
}

.hat-list li {
	padding: 8px 14px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	font-size: 0.82rem;
	cursor: pointer;
	transition: background 0.15s ease;
}

.hat-list li:hover {
	background: rgba(255,107,53,0.1);
}

.hat-list .hat-empty {
	opacity: 0.5;
	cursor: default;
}

.hat-list .hat-empty:hover {
	background: none;
}

.hat-ship-name {
	color: var(--hat-orange);
	font-weight: 500;
	margin-right: 8px;
}

.hat-ship-meta {
	opacity: 0.75;
	font-size: 0.75rem;
}

.hat-marker-icon {
	background: var(--hat-orange);
	border: 2px solid var(--hat-black);
	border-radius: 50%;
	width: 12px;
	height: 12px;
	box-shadow: 0 0 0 3px rgba(255,107,53,0.25);
}

.leaflet-popup-content-wrapper {
	background: var(--hat-black);
	color: #f2f2f0;
	font-family: 'DM Mono', monospace;
	border: 1px solid var(--hat-orange);
	border-radius: 4px;
}

.leaflet-popup-tip {
	background: var(--hat-black);
}

.hat-popup-name {
	font-family: 'Bebas Neue', sans-serif;
	color: var(--hat-orange);
	font-size: 1.1rem;
	letter-spacing: 0.03em;
}
