/**
 * Bryzant Connector — Frontend Styles
 *
 * Minimal, theme-compatible styling for shortcode output.
 * Uses CSS custom properties for easy theme integration.
 */

/* Grid layouts */
.bryzant-playlists-grid,
.bryzant-releases-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

/* Cards */
.bryzant-playlist-card,
.bryzant-release-card,
.bryzant-analytics-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.bryzant-playlist-card:hover,
.bryzant-release-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card images */
.bryzant-playlist-image img,
.bryzant-release-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Card info */
.bryzant-playlist-info,
.bryzant-release-info {
	padding: 12px 16px;
}

.bryzant-playlist-name,
.bryzant-release-title {
	margin: 0 0 4px;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.3;
}

.bryzant-playlist-name a,
.bryzant-release-title a {
	color: inherit;
	text-decoration: none;
}

.bryzant-playlist-name a:hover {
	text-decoration: underline;
}

.bryzant-playlist-meta {
	display: flex;
	gap: 12px;
	font-size: 0.85em;
	color: #666;
}

.bryzant-release-artist {
	margin: 0;
	font-size: 0.9em;
	color: #666;
}

.bryzant-release-date {
	margin: 4px 0 0;
	font-size: 0.8em;
	color: #999;
}

/* Trending list */
.bryzant-trending-list {
	margin: 24px 0;
	border: 1px solid #e0e0e0;
	background: #fff;
}

.bryzant-trending-header {
	display: grid;
	grid-template-columns: 40px 1fr 80px;
	gap: 8px;
	padding: 10px 16px;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #999;
	border-bottom: 1px solid #e0e0e0;
}

.bryzant-trending-row {
	display: grid;
	grid-template-columns: 40px 1fr 80px;
	gap: 8px;
	align-items: center;
	padding: 10px 16px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 0.9em;
}

.bryzant-trending-row:last-child {
	border-bottom: 0;
}

.bryzant-trending-rank {
	font-weight: 700;
	color: #333;
}

.bryzant-trending-artist {
	color: #888;
	font-weight: 400;
}

.bryzant-trending-change {
	text-align: right;
	font-size: 0.85em;
	font-weight: 600;
}

.bryzant-trend-up {
	color: #2e7d32;
}

.bryzant-trend-down {
	color: #c62828;
}

.bryzant-trend-stable {
	color: #999;
}

/* Analytics summary */
.bryzant-analytics-summary {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.bryzant-analytics-card {
	padding: 20px;
	text-align: center;
}

.bryzant-analytics-platform {
	margin: 0 0 12px;
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #666;
}

.bryzant-analytics-metric {
	margin-bottom: 8px;
}

.bryzant-analytics-value {
	display: block;
	font-size: 1.6em;
	font-weight: 700;
	color: #212121;
}

.bryzant-analytics-label {
	display: block;
	font-size: 0.75em;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.bryzant-analytics-totals {
	grid-column: 1 / -1;
	display: flex;
	gap: 32px;
	justify-content: center;
	padding: 20px;
	border-top: 1px solid #e0e0e0;
}

.bryzant-analytics-total {
	text-align: center;
}

/* Error / empty */
.bryzant-error {
	padding: 12px 16px;
	background: #fce4ec;
	border-left: 3px solid #c62828;
	color: #c62828;
	font-size: 0.9em;
}

.bryzant-empty {
	padding: 12px 16px;
	color: #999;
	font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
	.bryzant-playlists-grid,
	.bryzant-releases-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 16px;
	}

	.bryzant-trending-header,
	.bryzant-trending-row {
		grid-template-columns: 32px 1fr 60px;
		padding: 8px 12px;
	}

	.bryzant-analytics-summary {
		grid-template-columns: repeat(2, 1fr);
	}
}
