/*
	Reebok FitList Spotify App — Web Compatibility Shim CSS
	Stands in for sp://resources/css/{adam,api}.css which used to be
	served by the Spotify desktop client.
*/

/* ------------------------------------------------------------------
   Tab bar — replaces the chrome the Spotify desktop client provided.
   Sits below #header (which has the Reebok wordmark). Matches the
   four arguments listed in manifest.json's DefaultTabs. Active class
   managed by fitlist.shim.js.
   ------------------------------------------------------------------ */
#fl-tabs {
	width: 100%;
	min-width: 840px;
	max-width: 1220px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	gap: 0;
	background: #efefef;
	border-bottom: 1px solid #d0d0d0;
}

#fl-tabs a {
	display: inline-block;
	padding: 12px 26px 10px;
	font-family: ReefontBold, Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #888;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color 120ms ease, border-color 120ms ease;
}

#fl-tabs a:hover  { color: #333; }
#fl-tabs a.active { color: #ce0017; border-bottom-color: #ce0017; }

/* ------------------------------------------------------------------
   Player / tile placeholders used by v.Player and v.Image. The original
   Spotify SDK delivered iframes; the shim hands back a static tile that
   opens the underlying entity on open.spotify.com when clicked.
   ------------------------------------------------------------------ */
.shim-tile {
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	height: 100%;
	min-height: 60px;
	display: block;
}

.sp-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.sp-player {
	position: relative;
	background-color: #2a2a2a;
	background-size: cover;
	background-position: center;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	cursor: pointer;
}

.sp-player .sp-player-image {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.sp-player .sp-image {
	display: block;
	width: 100%;
	height: 100%;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.sp-player .sp-player-button {
	position: absolute;
	bottom: 10px; right: 10px;
	width: 38px; height: 38px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.92);
	cursor: pointer;
	z-index: 2;
	transition: background 120ms ease, transform 120ms ease;
}

.sp-player .sp-player-button::before {
	content: '';
	display: block;
	width: 0; height: 0;
	margin: 12px 0 0 14px;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent #ce0017;
}

.sp-player:hover .sp-player-button { background: #fff; transform: scale(1.06); }

.sp-player-playing .sp-player-button::before {
	width: 10px; height: 10px;
	margin: 14px 0 0 13px;
	border: 0;
	background:
		linear-gradient(#ce0017, #ce0017) left  / 3px 100% no-repeat,
		linear-gradient(#ce0017, #ce0017) right / 3px 100% no-repeat;
}

/* Stand-in tracklist (v.List) — link out to Spotify. */
.shim-tracklist {
	padding: 14px 16px;
	color: #888;
	font-style: italic;
	font-size: 12px;
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
}
.shim-tracklist-msg { display: inline-block; }

/* ------------------------------------------------------------------
   Spotify SDK button + icon stubs. The original sp://resources/css/api
   defined .sp-button / .sp-icon / .sp-plus etc. so app code could use
   them ergonomically. Minimal replacements here so the templates that
   render Subscribe / Share / Vote / Save buttons stay legible.
   ------------------------------------------------------------------ */
.sp-button {
	display: inline-block;
	padding: 6px 14px;
	background: #ce0017;
	color: #fff;
	border: 0;
	border-radius: 3px;
	font-family: ReefontBold, Helvetica, Arial, sans-serif;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	line-height: 18px;
}
.sp-button:hover   { background: #a3000f; color: #fff; }
.sp-button:disabled,
.sp-button[disabled] { background: #999; cursor: default; }

.sp-button.subscribed { background: #333; }
.sp-button .sp-plus,
.sp-button .sp-minus,
.sp-button .sp-share {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 5px;
	vertical-align: middle;
	background: transparent;
	position: relative;
}
.sp-button .sp-plus::before,
.sp-button .sp-minus::before {
	content: '';
	position: absolute;
	left: 1px; right: 1px; top: 4px;
	height: 2px;
	background: #fff;
}
.sp-button .sp-plus::after {
	content: '';
	position: absolute;
	top: 1px; bottom: 1px; left: 4px;
	width: 2px;
	background: #fff;
}
.sp-button .sp-share::before {
	content: '↗';
	color: #fff;
	font-size: 13px;
	line-height: 10px;
	position: absolute;
	top: -2px; left: 0;
}

.sp-list { display: block; }
.sp-list-item-playing,
.sp-list-item-paused { background: rgba(206, 0, 23, 0.08); }

/* Spotify throbber stand-in (used by index.html's #loading). */
.throbber div {
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid rgba(0,0,0,0.1);
	border-top-color: #ce0017;
	border-radius: 50%;
	animation: shim-spin 0.8s linear infinite;
}
@keyframes shim-spin { to { transform: rotate(360deg); } }

#loading .throbber { margin: 50px auto; width: 24px; }

/* ------------------------------------------------------------------
   Visibility tweaks: hide UI elements that require Spotify-client APIs
   we can't shim usefully (drag-drop to share, auth-gated buttons).
   ------------------------------------------------------------------ */
#leaderboard .drop-container::after {
	content: ' (drag-drop unavailable in preview)';
	color: #999;
	font-size: 11px;
}
