/**
 * TrustPlay Brands block styles.
 *
 * @package TrustPlay_Partners
 */

.tp-brands {
	position: relative;
	overflow: hidden;
}

.tp-brands__glow {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 500px;
	height: 500px;
	background: hsl(43, 74%, 49%, 0.05);
	border-radius: 50%;
	filter: blur(150px);
	pointer-events: none;
}

/* Heading */
.tp-brands__header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.tp-brands__heading {
	font-family: var(--tp-font-display);
	font-size: clamp(2rem, 5vw, 3.75rem);
	color: var(--tp-fg);
	margin: 0;
}

/* ---- Featured card ---- */
.tp-brands__featured {
	border-radius: 1.5rem;
	padding: 2rem;
	max-width: 64rem;
	margin: 4rem auto 4rem;
	position: relative;
	overflow: hidden;
}

@media (min-width: 768px) {
	.tp-brands__featured {
		padding: 3.5rem;
	}
}

.tp-brands__featured-glow {
	position: absolute;
	top: 0;
	right: 0;
	width: 16rem;
	height: 16rem;
	background: hsl(43, 74%, 49%, 0.10);
	border-radius: 50%;
	filter: blur(100px);
	pointer-events: none;
}

/* Top row: logo + text */
.tp-brands__featured-top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.tp-brands__featured-top {
		flex-direction: row;
		align-items: center;
	}
}

.tp-brands__featured-logo-wrap {
	flex-shrink: 0;
}

.tp-brands__featured-logo {
	width: 13rem;
	height: auto;
}

@media (min-width: 768px) {
	.tp-brands__featured-logo {
		width: 18rem;
	}
}

.tp-brands__featured-body {
	text-align: center;
}

@media (min-width: 768px) {
	.tp-brands__featured-body {
		text-align: left;
	}
}

.tp-brands__featured-title {
	font-family: var(--tp-font-display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin: 0 0 1.25rem;
}

.tp-brands__featured-desc {
	font-family: var(--tp-font-body);
	color: var(--tp-muted);
	line-height: 1.7;
	margin: 0 0 1.5rem;
}

.tp-brands__featured-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.tp-brands__featured-tags {
		justify-content: flex-start;
	}
}

.tp-brands__featured-tag {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--tp-font-body);
	font-size: 0.875rem;
	color: hsl(240, 15%, 88%);
}

.tp-brands__tag-dot {
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--tp-gold);
	flex-shrink: 0;
}

/* Bottom row: features + stats */
.tp-brands__featured-bottom {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid hsl(240, 10%, 15%, 0.5);
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.tp-brands__featured-bottom {
		grid-template-columns: repeat(6, 1fr);
	}
}

/* Feature icons */
.tp-brands__feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.tp-brands__feature-icon {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	background: var(--tp-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
}

.tp-brands__icon {
	width: 1.5rem;
	height: 1.5rem;
	color: var(--tp-gold);
}

.tp-brands__feature-label {
	font-family: var(--tp-font-body);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tp-muted);
	margin: 0;
}

/* Numeric stats */
.tp-brands__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.tp-brands__stat-value {
	font-family: var(--tp-font-display);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.tp-brands__stat-label {
	font-family: var(--tp-font-body);
	font-size: 0.6875rem;
	color: var(--tp-muted);
	line-height: 1.4;
}

/* Featured CTA */
.tp-brands__featured-cta {
	text-align: center;
	margin-top: 2.5rem;
	position: relative;
	z-index: 1;
}

.tp-brands__featured-btn {
	letter-spacing: 0.15em;
	border-radius: 9999px;
	padding: 1rem 2.5rem;
}

/* Separator */
.tp-brands__separator {
	width: 6rem;
	height: 1px;
	background: hsl(43, 74%, 49%, 0.3);
	margin: 0 auto 3rem;
}

/* Secondary brands grid */
.tp-brands__secondary-grid {
	display: grid;
	gap: 2rem;
	max-width: 52rem;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.tp-brands__secondary-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Secondary card */
.tp-brands__secondary-card {
	border-radius: 1rem;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: border-color 0.5s ease;
}

.tp-brands__secondary-card:hover {
	border-color: hsl(43, 74%, 49%, 0.3);
}

.tp-brands__secondary-logo-wrap {
	height: 6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
}

.tp-brands__secondary-logo {
	max-height: 100%;
	width: auto;
	max-width: 12rem;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.tp-brands__secondary-card:hover .tp-brands__secondary-logo {
	transform: scale(1.05);
}

.tp-brands__secondary-url {
	font-family: var(--tp-font-body);
	font-size: 0.75rem;
	color: var(--tp-gold);
	letter-spacing: 0.08em;
	margin: 0 0 1rem;
	text-transform: lowercase;
}

.tp-brands__secondary-desc {
	font-family: var(--tp-font-body);
	font-size: 0.875rem;
	color: var(--tp-muted);
	line-height: 1.6;
	margin: 0;
}
