/*
 * Song cards: the songsubtext.com home card (structure, hover lift, image scale).
 * Everything here is scoped to .song-grid and .song-card; main.css stays untouched.
 */

.song-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 24px;
}

.song-card {
	background: #FFFFFF;
	border: 1px solid #F1F5F9;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}
.song-card:hover,
.song-card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	border-color: #E2E8F0;
}

.song-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	font-family: inherit;
}
.song-card-link:focus-visible {
	outline: 2px solid var(--accent, #0E9E78);
	outline-offset: -2px;
}

.song-card-image {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #E2E8F0;
	overflow: hidden;
}
.song-card-image .cover {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	border: 0;
	border-radius: 0;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.song-card-image .cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.song-card:hover .song-card-image .cover,
.song-card:focus-within .song-card-image .cover {
	transform: scale(1.06);
}

.song-cat-badge,
.song-score-badge {
	position: absolute;
	top: 15px;
	padding: 6px 12px;
	background: rgba(15, 23, 42, 0.85);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-radius: 8px;
	color: #F8FAFC;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.song-cat-badge { left: 15px; }
.song-score-badge {
	right: 15px;
	font-family: var(--font-mono, ui-monospace, monospace);
	letter-spacing: 0.02em;
	background: color-mix(in oklab, var(--accent, #0E9E78) 85%, black);
}

.song-card-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
	padding: 24px;
}
.song-card-title {
	margin: 0 0 15px;
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 26px;
	color: #1E293B;
}
.song-card-artist {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	color: var(--text-muted, #55555D);
}
.read-more-link {
	margin-top: auto;
	padding-top: 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--accent-text, #0E9E78);
}

@media (prefers-reduced-motion: reduce) {
	.song-card,
	.song-card-image .cover { transition: none; }
	.song-card:hover,
	.song-card:focus-within { transform: none; }
	.song-card:hover .song-card-image .cover,
	.song-card:focus-within .song-card-image .cover { transform: none; }
}
