/*!
 * Theme Name:  Merchato Child Theme
 * Theme URI:   https://demo.audiotheme.com/merchato/
 * Description: Sample child theme for Merchato.
 * Version:     1.1.0
 * Author:      AudioTheme
 * Author URI:  https://audiotheme.com/
 * License:     GPL-2.0+
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Template:    merchato
 */

/* =============================================================================
   Record Links — Smart-Link Style
   Horizontal rows with platform icon, name, and arrow chevron
   ============================================================================= */

.single-audiotheme_record .hero--panels {
	display: flex;
	flex-direction: column-reverse;
}

.single-audiotheme_record .record-links {
	max-width: 600px!important;
}

.single-audiotheme_record .hero .hero-media {
	width: 35%;
	margin: auto;
}


/* ── Wrapper ── */
.record-links {
	clear: both;
	margin-top: 1.5em;
	margin-bottom: 1.5em;
}

.record-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ── Each row ── */
.record-links li {
	display: block;
	width: 100%;
}

.record-links li a.button {
	/* Reset parent-theme button defaults */
	display: flex;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	padding: 0 16px 0 0;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;

	/* Smart-link dark card look */
	background-color: #414141;
	color: #ffffff;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
	text-decoration: none !important;
	transition: background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	position: relative;
}

/* ── Hover / focus ── */
.record-links li a.button:hover,
.record-links li a.button:focus {
	background-color: #3a3a3a;
	border-color: rgba(255, 255, 255, 0.22);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.60);
	color: #ffffff;
	text-decoration: none;
}

/* ── Platform icon (square, rounded corners) ── */
.record-links li a.button .record-link-image {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	margin-right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1a1a1a;
	border-top-left-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 8px;
}


.record-links li a.button .record-link-image img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	display: block;
}

/* ── Link label ── */
.record-links li a.button .record-link-text {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Right-side chevron arrow ── */
.record-links li a.button::after {
	content: "";
	flex-shrink: 0;
	margin-left: 12px;
	width: 8px;
	height: 8px;
	border-top: 2px solid rgba(255, 255, 255, 0.50);
	border-right: 2px solid rgba(255, 255, 255, 0.50);
	transform: rotate(45deg);
	display: block;
}

/* ── No-image fallback: coloured initial badge ── */
.record-links li a.button:not(:has(.record-link-image)) .record-link-text,
.record-links li a.button .record-link-image:empty + .record-link-text {
	/* nothing extra needed – chevron still shows */
}

/* ── Responsive: full-width on all screens already; cap on wide screens ── */
@media (min-width: 768px) {
	.record-links ul {
		max-width: 520px;
	}
}
