/**
 * AME – Creator Card (Divi module)
 *
 * Self-contained: every colour, radius and size comes from a --ame-cc-* custom
 * property declared on .ame-cc itself, and the module writes the editor's
 * choices into that same inline style. Nothing here depends on a page-level
 * wrapper class or on the --amcp-* / --dark-2 tokens that only exist on the
 * original Get Started page, so the card looks the same on any page.
 */

.ame-cc {
	--ame-cc-bg: #2E2622;
	--ame-cc-border: rgba(217, 191, 151, .18);
	--ame-cc-radius: 22px;
	--ame-cc-pad: 22px;
	--ame-cc-gap: 22px;
	--ame-cc-media: 150px;
	--ame-cc-media-bg: #4A3E37;
	--ame-cc-accent: #D9BF97;
	--ame-cc-accent-bar: #B8956A;
	--ame-cc-name: #F6F1EA;
	--ame-cc-blurb: #EDE4D8;
	--ame-cc-offer-bg: rgba(246, 241, 234, .08);
	--ame-cc-offer-text: #F6F1EA;
	--ame-cc-offer-sub: #E2D6C6;
	--ame-cc-serif: 'Noto Serif', Georgia, serif;
	--ame-cc-sans: 'DM Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

	display: grid;
	grid-template-columns: var(--ame-cc-media) 1fr;
	gap: var(--ame-cc-gap);
	align-items: center;
	background: var(--ame-cc-bg);
	border: 1px solid var(--ame-cc-border);
	border-radius: var(--ame-cc-radius);
	padding: var(--ame-cc-pad);
	font-family: var(--ame-cc-sans);
	line-height: 1.6;
	box-sizing: border-box;
}

.ame-cc *,
.ame-cc *::before,
.ame-cc *::after { box-sizing: border-box; }

/* Divi/theme resets that would otherwise reach inside the card. */
.ame-cc p { margin: 0; padding: 0; }
.ame-cc a { text-decoration: none; }

/* ---------- Media ---------- */
.ame-cc__media {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--ame-cc-media-bg);
}

.ame-cc__media img,
.ame-cc__media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Placeholder shown until a photo is chosen. */
.ame-cc__ph {
	position: absolute;
	inset: 8px;
	border: 1.5px dashed var(--ame-cc-accent);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: var(--ame-cc-accent);
	text-align: center;
	font-size: 12px;
	padding: 8px;
	line-height: 1.3;
}

.ame-cc__ph svg { width: 40px; height: 40px; opacity: .8; }

/* ---------- Identity ---------- */
.ame-cc__label {
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ame-cc-accent);
	font-weight: 600;
}

.ame-cc__name {
	font-family: var(--ame-cc-serif);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ame-cc-name);
	margin-top: 2px;
}

.ame-cc__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 2px;
}

.ame-cc__handle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: var(--ame-cc-accent);
	text-decoration: none;
}

.ame-cc__handle:hover { color: var(--ame-cc-name); }
.ame-cc__handle svg { width: 15px; height: 15px; flex: none; }

/* ---------- Blurb ---------- */
.ame-cc__blurb {
	grid-column: 1 / -1;
	font-family: var(--ame-cc-serif);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ame-cc-blurb);
	border-left: 3px solid var(--ame-cc-accent-bar);
	padding-left: 14px;
}

.ame-cc__blurb p + p { margin-top: 10px; }

/* ---------- Offer ---------- */
.ame-cc__offer {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--ame-cc-offer-bg);
	border-radius: 14px;
	padding: 12px 14px;
}

.ame-cc__offer-title {
	font: 600 19px/1.3 var(--ame-cc-sans);
	color: var(--ame-cc-offer-text);
}

.ame-cc__offer small {
	display: block;
	font-size: 14px;
	color: var(--ame-cc-offer-sub);
}

/* ---------- Narrow layout ---------- */
@media (max-width: 980px) {
	.ame-cc {
		grid-template-columns: var(--ame-cc-media-sm, 96px) 1fr;
		gap: 14px;
		padding: 16px;
	}
	.ame-cc__name { font-size: 22px; }
}
