/* =========================================================
   Brand List — plain, no-tracking display section
   Author: Masud Rana
   Standalone shortcode plugin — [mr_brand_list]

   SPECIFICITY NOTE: every selector chains ".mr-brand-list" three
   times, so this reliably outranks theme/page-builder default
   styles without needing "!important" anywhere.
   ========================================================= */

.mr-brand-list.mr-brand-list.mr-brand-list {
	--mr-text: #111827;
	--mr-muted: #6b7280;
	--mr-muted-2: #9ca3af;
	--mr-border: #e9e9ef;
	--mr-surface-muted: #f7f7f9;
	--mr-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	display: block;
	width: 100%;
	padding: 0px 0;
	font-family: inherit;
	color: var(--mr-text);
}

.mr-brand-list.mr-brand-list.mr-brand-list * {
	box-sizing: border-box;
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- List ---------- */
.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__list {
	border-top: 1px solid var(--mr-border);
	border-bottom: 1px solid var(--mr-border);
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 12px;
	margin: 0 -12px;
	border-bottom: 1px solid var(--mr-border);
	text-decoration: none;
	color: inherit;
	border-radius: 10px;
	transition: background-color 0.15s ease;
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__row:last-child {
	border-bottom: none;
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__row:hover {
	background-color: var(--mr-surface-muted);
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__rank {
	flex-shrink: 0;
	width: 28px;
	text-align: right;
	font-family: var(--mr-mono);
	font-size: 12px;
	color: var(--mr-muted-2);
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__avatar {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.01em;
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--mr-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__submeta {
	font-family: var(--mr-mono);
	font-size: 11px;
	color: var(--mr-muted-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__dot {
	margin: 0 4px;
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__count {
	flex-shrink: 0;
	display: none;
	align-items: center;
	gap: 4px;
	font-family: var(--mr-mono);
	font-size: 11px;
	color: var(--mr-muted);
}

@media (min-width: 640px) {
	.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__count {
		display: inline-flex;
	}
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__view-icon {
	width: 14px;
	height: 14px;
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__arrow {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'%3E%3C/path%3E%3Cpath d='m12 5 7 7-7 7'%3E%3C/path%3E%3C/svg%3E");
	transition: transform 0.15s ease;
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__row:hover .mr-brand-list__arrow {
	transform: translateX(3px);
}

.mr-brand-list.mr-brand-list.mr-brand-list .mr-brand-list__empty {
	padding: 40px 0;
	text-align: center;
	color: var(--mr-muted);
	font-size: 14px;
}
