
/* ==================================== */
/* 🎶 LAST.FM WIDGET STYLES - DOSTOSOWANE DO MOTYWU 'MÓJ' */
/* ==================================== */

:root {
    --ciemnofioletowy: #8e2c8e;
    --rozowy: #B82294;
    --jasnorozowy: #d584bf;
}

.lastfm-played-widget {
	/* Użycie głównej czcionki Twojego motywu */
	font-family: 'Lato', Calibri, "Lucida Grande", Arial, Helvetica, sans-serif;
}

/* Właściwości Flexbox dla wierszy */
.lastfm-row {
	display: flex;
	gap: 14px;
	align-items: center;
	font-size: 14px;
	line-height: 1.5;
	transition: all 0.2s ease;
}

/*
 * ----------------------------------------
 * 1. SEKCJA UŻYTKOWNIKA (.lastfm-user)
 * ----------------------------------------
 */
.lastfm-user {
	margin-bottom: 20px;
	padding: 16px;
	/* Tło: ciemnoszare, spójne z sidebar */
	background: #333333;
	/* Obramowanie: Subtelny kolor, spójny z Twoim #eeeced */
	border: 1px solid #eeeced;
	/* Zaokrąglenie: Spójne z Twoim motywem (np. 4px) */
	border-radius: 4px; 
	/* Cień: Subtelny cień zewnętrzny */
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
}

/* Styl zdjęcia profilowego */
.lastfm-user .lastfm-col-quarter img {
	/* Ramka zdjęcia pasująca do post-thumbnail */
	border: 3px solid #dddddd; 
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lastfm-user strong {
	font-size: 15px;
	color: #1a1a1a;
	font-weight: 600;
}

.lastfm-user a {
	/* ZMIANA: Główny kolor akcentu linków */
	color: var(--rozowy); /* #B82294 */
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.lastfm-user a:hover {
	/* ZMIANA: Kolor hover z Twojego motywu */
	color: var(--ciemnofioletowy); /* #8e2c8e */
	text-decoration: none; /* Utrzymujemy brak podkreślenia na hover */
}

.lastfm-user small {
	color: #6c757d;
	font-size: 12px;
}

/*
 * ----------------------------------------
 * 2. SEKCJA UTWORÓW (.lastfm-tracklist)
 * ----------------------------------------
 */
.lastfm-tracklist {
	margin-bottom: 12px;
	padding: 12px;
	background: #434343;
	border-radius: 4px; /* Spójność */
	border: 1px solid #333333; /* Subtelne obramowanie */
	transition: all 0.2s ease;
}

.lastfm-tracklist:hover {
	background: #5a5959; /* Delikatne podświetlenie tła */
	/* ZMIANA: Kolor obramowania na Twój akcent */
	border-color: #333333; /*ramka po najechaniu na utwór - była różowa*/
	/* ZMIANA: Subtelny cień z użyciem akcentu */
	box-shadow: 0 2px 8px rgba(184, 34, 148, 0.15); 
	/* Zmiana: Usunięcie transformacji, aby było spójne z Twoją stroną */
	transform: none; 
}

.lastfm-tracklist:last-child {
	margin-bottom: 0;
}

/* Właściwości kolumn */
.lastfm-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.lastfm-col-quarter {
	flex: 0 0 70px;
	max-width: 70px;
}

.lastfm-col-quarter img {
	border-radius: 8px;
	max-width: 100%;
	height: auto;
	display: block;
}

.lastfm-col-twenty {
	flex: 0 0 56px;
	max-width: 56px;
}

.lastfm-col-twenty img {
	/*border-radius: 4px; /* Spójność */
	width: 100%;
	height: auto;
	display: block;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lastfm-tracklist:hover .lastfm-col-twenty img {
	/* Delikatniejszy efekt hover */
	transform: scale(1.02);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lastfm-col-center {
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

/* Styl tekstu utworu */
.lastfm-track-title {
	font-size: 13px;
	color: #999999;
	line-height: 1.3;
	font-weight: bold;
}

.lastfm-track-artist {
	font-size: 12px;
	color: #eeeced;
	line-height: 1.2;
	margin-top: 2px;
}

.lastfm-track-time {
	font-size: 11px;
	/* ZMIANA: Kolor akcentu czasu */
	color: #999999;
	font-weight: 500;
	line-height: 1.2;
	margin-top: 3px;
}

/* Zapobieganie przepełnieniu tekstu */
.lastfm-track-title,
.lastfm-track-artist {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*
 * ----------------------------------------
 * 3. TRYB CIEMNY (DARK MODE)
 * ----------------------------------------
 */
@media (prefers-color-scheme: dark) {
	/* Tła: Dopasowane do #333 sidebar */
	.lastfm-user {
		background: #2a2a2a; 
		border-color: #4a4a4a;
	}

	.lastfm-user strong {
		color: #ffffff;
	}

	.lastfm-user small {
		color: #a0aec0;
	}

	.lastfm-user a {
		/* ZMIANA: Jasny akcent w Dark Mode */
		color: var(--jasnorozowy); /* #d584bf */
	}

	.lastfm-user a:hover {
		color: #ffffff;
	}

	.lastfm-tracklist {
		background: #2a2a2a;
		border-color: #4a4a4a;
	}

	.lastfm-tracklist:hover {
		background: #333333; /* Spójne z kolorem Twojego sidebar */
		border-color: var(--jasnorozowy); /* #d584bf */
	}

	.lastfm-track-title {
		color: #ffffff;
	}

	.lastfm-track-title strong {
		color: #ffffff;
	}

	.lastfm-track-artist {
		color: #cccccc;
	}

	.lastfm-track-time {
		/* ZMIANA: Kolor akcentu czasu w Dark Mode */
		color: var(--jasnorozowy); /* #d584bf */
	}
}

/*
 * ----------------------------------------
 * 4. RESPONSIVE I ANIMACJE
 * ----------------------------------------
 */
@media (max-width: 480px) {
	.lastfm-row {
		gap: 10px;
	}

	.lastfm-user {
		padding: 12px;
	}

	.lastfm-col-quarter {
		flex: 0 0 56px;
		max-width: 56px;
	}

	.lastfm-col-twenty {
		flex: 0 0 48px;
		max-width: 48px;
	}

	.lastfm-tracklist {
		padding: 10px;
	}

	.lastfm-track-title {
		font-size: 12px;
	}

	.lastfm-track-artist {
		font-size: 11px;
	}

	.lastfm-track-time {
		font-size: 10px;
	}
}

/* Animacja FadeIn */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lastfm-tracklist {
	animation: fadeIn 0.3s ease;
}

.lastfm-tracklist:nth-child(1) { animation-delay: 0.05s; }
.lastfm-tracklist:nth-child(2) { animation-delay: 0.1s; }
.lastfm-tracklist:nth-child(3) { animation-delay: 0.15s; }
.lastfm-tracklist:nth-child(4) { animation-delay: 0.2s; }
.lastfm-tracklist:nth-child(5) { animation-delay: 0.25s; }