/* ---------- Theme (from your portfolio) ---------- */
:root {
	--bg: #0b0c10;
	--card: #111218;
	--muted: #b3b7c0;
	--text: #e8ecf1;
	--brand: #7c5cff;
	--online: #00d4ff; /* Using brand-2 as 'online' */
	--offline: #4a4d55;
	--error: #ff6b6b;
	--ring: rgba(124, 92, 255, 0.45);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 20px;
	color: var(--text);
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
		Arial, "Apple Color Emoji", "Segoe UI Emoji";
	background: radial-gradient(
			900px 520px at 70% -10%,
			rgba(124, 92, 255, 0.12),
			transparent 60%
		),
		var(--bg);
	line-height: 1.6;
	min-height: 100vh;
}

.container {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

.main-header {
	text-align: center;
	margin-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding-bottom: 24px;
}

.main-header h1 {
	margin: 0 0 8px;
	color: var(--brand);
}
.main-header p {
	margin: 0 0 16px;
	color: var(--muted);
}
.main-header a {
	color: var(--online);
	text-decoration: none;
}
.main-header a:hover {
	text-decoration: underline;
}

.filters {
	display: flex;
	justify-content: center;
	gap: 12px;
}

.filter-btn {
	background: #0e0e0e;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.16);
	height: 40px;
	padding: 0 16px;
	border-radius: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.filter-btn:hover {
	box-shadow: 0 0 0 6px var(--ring);
}
.filter-btn.active {
	background: var(--brand);
	border-color: var(--brand);
}

/* Container for all streamer cards */
.streamer-list {
	display: grid;
	/* Responsive grid: 1-3 columns */
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
}

.status-message {
	text-align: center;
	font-size: 18px;
	color: var(--muted);
	grid-column: 1 / -1; /* Span full width */
}

/* Individual streamer card */
.streamer-card {
	background: var(--card);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: var(--text);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	border-left: 5px solid var(--offline); /* Default border */
}

.streamer-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* Status variants */
.streamer-card.status-online {
	border-left-color: var(--online);
}
.streamer-card.status-error {
	border-left-color: var(--error);
}

.streamer-logo {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05); /* Placeholder bg */
	flex-shrink: 0;
}

.streamer-info {
	/* Allow text to shrink and wrap */
	min-width: 0;
}

.streamer-name {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	/* Truncate long names */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.streamer-status {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	/* Truncate long status */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* (User Story 3) Show game/title for online users */
.streamer-card.status-online .streamer-status-game {
	color: var(--online);
	font-weight: 600;
}
.streamer-card.status-online .streamer-status-title {
	color: var(--text);
}

.streamer-card.status-error .streamer-status {
	color: var(--error);
}

/* Hide/show based on filter */
.streamer-card.hide {
	display: none;
}
