/**
 * BP Member Tier — My Account membership card.
 *
 * Base layout is shared; each `.bp-mt-card--{design}` modifier swaps the
 * appearance via CSS variables. See BP_MT_Options::designs().
 */

.bp-mt-card {
	/* Per-tier accent color; overridable inline via style="--bp-mt-accent:…". */
	--bp-mt-accent: #4f46e5;

	/* Themeable tokens (overridden per design below). */
	--bp-mt-fg: #fff;
	--bp-mt-muted: rgba( 255, 255, 255, 0.8 );
	--bp-mt-badge-bg: rgba( 255, 255, 255, 0.14 );
	--bp-mt-badge-border: rgba( 255, 255, 255, 0.35 );
	--bp-mt-chip-bg: rgba( 255, 255, 255, 0.18 );
	--bp-mt-chip-border: rgba( 255, 255, 255, 0.3 );
	--bp-mt-chip-fg: #fff;

	display: flex;
	align-items: center;
	gap: 22px;
	padding: 26px 28px;
	margin: 0 0 28px;
	border-radius: 16px;
	position: relative;
	overflow: hidden;
	color: var( --bp-mt-fg );
}

/* ---- Design: Gradient (default) ---- */
.bp-mt-card--gradient {
	background: linear-gradient( 135deg, #1f2937 0%, var( --bp-mt-accent ) 100% );
	box-shadow: 0 12px 30px -12px rgba( 0, 0, 0, 0.4 );
}

.bp-mt-card--gradient::after {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 240px;
	height: 240px;
	background: radial-gradient( circle, rgba( 255, 255, 255, 0.18 ) 0%, rgba( 255, 255, 255, 0 ) 70% );
	pointer-events: none;
}

/* ---- Design: Minimal (light) ---- */
.bp-mt-card--minimal {
	--bp-mt-fg: #1f2937;
	--bp-mt-muted: #6b7280;
	--bp-mt-badge-bg: #f3f4f6;
	--bp-mt-badge-border: var( --bp-mt-accent );
	--bp-mt-chip-bg: #f3f4f6;
	--bp-mt-chip-border: var( --bp-mt-accent );
	--bp-mt-chip-fg: var( --bp-mt-accent );

	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 6px 20px -14px rgba( 17, 24, 39, 0.35 );
}

.bp-mt-card--minimal .bp-mt-card__initials {
	color: var( --bp-mt-accent );
}

/* ---- Design: Outline ---- */
.bp-mt-card--outline {
	--bp-mt-fg: #1f2937;
	--bp-mt-muted: #6b7280;
	--bp-mt-badge-bg: #f6f7fb;
	--bp-mt-badge-border: var( --bp-mt-accent );
	--bp-mt-chip-bg: transparent;
	--bp-mt-chip-border: var( --bp-mt-accent );
	--bp-mt-chip-fg: var( --bp-mt-accent );

	background: transparent;
	border: 2px solid var( --bp-mt-accent );
}

.bp-mt-card--outline .bp-mt-card__initials {
	color: var( --bp-mt-accent );
}

/* ---- Shared sub-elements ---- */
.bp-mt-card__badge {
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --bp-mt-badge-bg );
	border: 2px solid var( --bp-mt-badge-border );
	overflow: hidden;
	z-index: 1;
}

.bp-mt-card__badge-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 6px;
	box-sizing: border-box;
}

.bp-mt-card__initials {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var( --bp-mt-fg );
}

.bp-mt-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 1;
}

.bp-mt-card__greeting {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var( --bp-mt-muted );
}

.bp-mt-card__name {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
}

.bp-mt-card__tier {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: 6px;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.4px;
	border-radius: 999px;
	color: var( --bp-mt-chip-fg );
	background: var( --bp-mt-chip-bg );
	border: 1px solid var( --bp-mt-chip-border );
}

.bp-mt-card__tier--none {
	opacity: 0.85;
}

@media ( max-width: 520px ) {
	.bp-mt-card {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}

	.bp-mt-card__body {
		align-items: center;
	}

	.bp-mt-card__tier {
		align-self: center;
	}
}
