/* =========================================================
   Footebet API — Front-end styles
   Dark, premium sportsbook UI. No external frameworks.
   ========================================================= */

.footebet-wrapper {
	--fb-bg: #0a0e16;
	--fb-card-bg-1: #10151f;
	--fb-card-bg-2: #0c1019;
	--fb-border: rgba(255, 255, 255, 0.07);
	--fb-green: #22c55e;
	--fb-green-soft: rgba(34, 197, 94, 0.12);
	--fb-red: #ef4444;
	--fb-red-soft: rgba(239, 68, 68, 0.12);
	--fb-gray: #8b93a1;
	--fb-gray-soft: rgba(139, 147, 161, 0.12);
	--fb-blue: #3b82f6;
	--fb-blue-soft: rgba(59, 130, 246, 0.12);
	--fb-text: #f3f4f6;
	--fb-text-dim: #9aa2b1;
	--fb-radius: 18px;

	box-sizing: border-box;
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--fb-text);
	background: transparent;
}

.footebet-wrapper *,
.footebet-wrapper *::before,
.footebet-wrapper *::after {
	box-sizing: border-box;
}

/* ---------- Header ---------- */

.fb-header {
	text-align: center;
	margin-bottom: 28px;
}

.fb-title {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--fb-text);
}

.fb-subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--fb-text-dim);
}

.fb-error {
	text-align: center;
	color: var(--fb-text-dim);
	font-size: 14px;
	padding: 24px;
}

/* ---------- List / Card ---------- */

.fb-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fb-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	background: linear-gradient(135deg, var(--fb-card-bg-1), var(--fb-card-bg-2));
	border: 1px solid var(--fb-border);
	border-radius: var(--fb-radius);
	padding: 22px 24px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fb-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.14);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.fb-card--pressed {
	transform: scale(0.99);
}

.fb-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--fb-radius);
	padding: 1px;
	pointer-events: none;
}

.fb-card--upcoming {
	border-color: rgba(34, 197, 94, 0.35);
	box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.fb-card--live {
	border-color: rgba(239, 68, 68, 0.4);
	box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.18), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.fb-card--finished {
	border-color: rgba(255, 255, 255, 0.08);
}

/* ---------- Left: badge column ---------- */

.fb-badge-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	flex: 0 0 auto;
	min-width: 128px;
}

.fb-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 7px 12px;
	border-radius: 999px;
	white-space: nowrap;
}

.fb-badge-icon {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.fb-badge--upcoming {
	color: var(--fb-green);
	background: var(--fb-green-soft);
	border: 1px solid rgba(34, 197, 94, 0.35);
}

.fb-badge--live {
	color: var(--fb-red);
	background: var(--fb-red-soft);
	border: 1px solid rgba(239, 68, 68, 0.4);
	animation: fb-pulse 1.6s ease-in-out infinite;
}

.fb-badge--finished {
	color: var(--fb-gray);
	background: var(--fb-gray-soft);
	border: 1px solid rgba(139, 147, 161, 0.3);
}

.fb-badge--default {
	color: var(--fb-gray);
	background: var(--fb-gray-soft);
	border: 1px solid rgba(139, 147, 161, 0.3);
}

@keyframes fb-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

.fb-league {
	font-size: 11px;
	color: var(--fb-text-dim);
	padding-left: 2px;
}

/* ---------- Center: teams + score ---------- */

.fb-center {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	min-width: 0;
}

.fb-team {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
}

.fb-team--home {
	text-align: right;
}

.fb-team--away {
	text-align: left;
}

.fb-team-name {
	font-size: 19px;
	font-weight: 700;
	color: var(--fb-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
	max-width: 100%;
}

.fb-mid {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}

.fb-vs-circle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--fb-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--fb-text-dim);
	flex: 0 0 auto;
}

.fb-score-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.fb-status-tag {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 2px 10px;
	border-radius: 6px;
	border: 1px solid var(--fb-border);
	color: var(--fb-text-dim);
	background: rgba(255, 255, 255, 0.04);
}

.fb-status-tag--live {
	color: var(--fb-red);
	border-color: rgba(239, 68, 68, 0.4);
}

.fb-status-tag--upcoming {
	color: var(--fb-green);
	border-color: rgba(34, 197, 94, 0.35);
}

.fb-score {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--fb-text);
	white-space: nowrap;
}

/* ---------- Right: stat boxes + arrow ---------- */

.fb-right {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 0 auto;
}

.fb-stats {
	display: flex;
	align-items: stretch;
	gap: 14px;
}

.fb-stat-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 84px;
}

.fb-stat-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--fb-text-dim);
}

.fb-stat-tips .fb-stat-label { color: var(--fb-green); }
.fb-stat-odds .fb-stat-label { color: var(--fb-blue); }
.fb-stat-prob .fb-stat-label { color: var(--fb-green); }

.fb-stat-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 68px;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--fb-text);
	white-space: nowrap;
}

.fb-stat-tips .fb-stat-value {
	border: 1px solid rgba(34, 197, 94, 0.35);
}

.fb-stat-odds .fb-stat-value {
	border: 1px solid rgba(59, 130, 246, 0.35);
	color: var(--fb-blue);
}

.fb-stat-prob .fb-stat-value {
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: var(--fb-green);
}

.fb-stat-value.fb-stat-empty {
	border: 1px dashed var(--fb-border);
	color: var(--fb-text-dim);
}

.fb-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fb-text-dim);
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	transition: transform 0.2s ease, color 0.2s ease;
}

.fb-arrow svg {
	width: 20px;
	height: 20px;
}

.fb-card:hover .fb-arrow {
	color: var(--fb-green);
	transform: translateX(3px);
}

/* ---------- Bottom button ---------- */

.fb-btn-wrap {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.fb-btn {
	display: inline-block;
	background: var(--fb-green);
	color: #06210f;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.02em;
	text-decoration: none;
	padding: 14px 34px;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-btn:hover,
.fb-btn:focus {
	background: #4ade80;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(34, 197, 94, 0.38);
	color: #06210f;
}

.fb-btn:active {
	transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet */
@media (max-width: 900px) {
	.fb-card {
		flex-wrap: wrap;
		row-gap: 16px;
	}

	.fb-badge-col {
		min-width: auto;
		flex-direction: row;
		align-items: center;
	}

	.fb-center {
		order: 3;
		width: 100%;
		flex-basis: 100%;
	}

	.fb-right {
		margin-left: auto;
	}
}

/* Mobile */
@media (max-width: 600px) {
	.footebet-wrapper {
		padding: 20px 12px;
	}

	.fb-title {
		font-size: 22px;
	}

	.fb-card {
		padding: 18px 16px;
		gap: 14px;
	}

	.fb-team-name {
		font-size: 15px;
	}

	.fb-score {
		font-size: 24px;
	}

	.fb-vs-circle {
		width: 32px;
		height: 32px;
	}

	.fb-mid {
		gap: 10px;
	}

	.fb-stats {
		gap: 8px;
	}

	.fb-stat-box {
		min-width: 64px;
	}

	.fb-stat-value {
		min-width: 52px;
		font-size: 11px;
		padding: 6px 8px;
	}

	.fb-right {
		gap: 10px;
		width: 100%;
		justify-content: space-between;
	}

	.fb-badge {
		font-size: 11px;
		padding: 6px 10px;
	}
}

@media (max-width: 420px) {
	.fb-center {
		gap: 10px;
	}

	.fb-team-name {
		font-size: 13px;
	}

	.fb-score {
		font-size: 20px;
	}

	.fb-stats {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
}
