/*
 * Buluşma Moderatörü public profile.
 *
 * Loads on top of meetup.css, which already supplies .bgm-moderator-page,
 * .bgm-shell, .bgm-meetup-breadcrumb, .bgm-meetup-eyebrow and the section-
 * heading rule this page's h2s already inherit from .bgm-moderator-shell.
 * Only what the hero, badge, metrics and follow control genuinely need on
 * top of that is added here — no local palette, no second button system.
 */

.bgm-moderator-profile-hero {
	padding-block: var(--bgm-space-8) var(--bgm-space-10);
	border-bottom: var(--bgm-border-width) solid var(--bgm-color-border);
}

.bgm-moderator-profile-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--bgm-space-8);
	padding-top: var(--bgm-space-6);
}

.bgm-moderator-profile-identity {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bgm-space-5);
	max-width: 42rem;
}

.bgm-moderator-profile-avatar {
	display: block;
	width: 5.5rem;
	height: 5.5rem;
	flex: 0 0 auto;
	border-radius: var(--bgm-radius-round);
	object-fit: cover;
	box-shadow: var(--bgm-shadow-soft);
}

.bgm-moderator-profile-badge {
	display: inline-block;
	margin-bottom: var(--bgm-space-2);
	padding: var(--bgm-badge-padding);
	border-radius: var(--bgm-badge-radius);
	background: var(--bgm-badge-success-bg);
	color: var(--bgm-badge-success-text);
	font-size: var(--bgm-text-2xs);
	font-weight: var(--bgm-weight-bold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bgm-moderator-profile-badge.is-inactive {
	background: var(--bgm-color-border);
	color: var(--bgm-color-text-soft);
}

.bgm-moderator-profile-identity h1 {
	max-width: 20ch;
	margin: 0;
	font-family: var(--bgm-font-heading);
	font-size: var(--bgm-text-hero);
	font-weight: var(--bgm-weight-extrabold);
	letter-spacing: var(--bgm-tracking-hero);
	line-height: var(--bgm-leading-hero);
	text-wrap: balance;
}

.bgm-moderator-profile-meta {
	margin: var(--bgm-space-2) 0 0;
	color: var(--bgm-color-text-soft);
	font-size: var(--bgm-text-sm);
}

.bgm-moderator-profile-meta:empty {
	display: none;
}

.bgm-moderator-profile-bio {
	max-width: 46ch;
	margin: var(--bgm-space-4) 0 0;
	color: var(--bgm-color-text-muted);
	font-size: var(--bgm-text-base);
	line-height: var(--bgm-leading-body);
}

.bgm-moderator-profile-inactive-note {
	max-width: 46ch;
	margin: var(--bgm-space-4) 0 0;
	color: var(--bgm-color-text-soft);
	font-size: var(--bgm-text-sm);
	font-style: italic;
}

.bgm-moderator-profile-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bgm-space-3);
	margin: var(--bgm-space-4) 0 0;
	padding: 0;
	list-style: none;
}

.bgm-moderator-profile-links a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	gap: var(--bgm-space-1);
	color: var(--bgm-color-text);
	font-size: var(--bgm-text-sm);
	font-weight: var(--bgm-weight-semibold);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.bgm-moderator-profile-links a:hover,
.bgm-moderator-profile-links a:focus-visible {
	color: var(--bgm-color-accent);
}

/* ------------------------------------------------------------- follow CTA */

[data-bgm-follow] {
	transition: opacity var(--bgm-duration-normal) var(--bgm-ease-out);
}

[data-bgm-follow].is-updating {
	opacity: 0.55;
}

.bgm-moderator-profile-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--bgm-space-4);
	flex: 0 0 auto;
}

.bgm-follow-button {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	gap: var(--bgm-space-2);
	padding: var(--bgm-button-padding);
	border: var(--bgm-border-width) solid var(--bgm-button-border);
	border-radius: var(--bgm-button-radius);
	background: var(--bgm-button-bg);
	color: var(--bgm-button-text);
	font-family: var(--bgm-font-sans);
	font-size: var(--bgm-button-font-size);
	font-weight: var(--bgm-button-font-weight);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--bgm-duration-fast) ease, border-color var(--bgm-duration-fast) ease, transform var(--bgm-duration-fast) var(--bgm-ease-out);
}

.bgm-follow-button:hover {
	border-color: var(--bgm-button-bg-hover);
	background: var(--bgm-button-bg-hover);
}

.bgm-follow-button:active {
	transform: scale(0.98);
}

.bgm-follow-button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

/*
 * base.css normalises every real <button type="button"> to the body text
 * colour (button[type="button"] carries element + attribute specificity,
 * which outranks the single class above it), so without this the control
 * quietly paints dark navy text on its own dark navy ground — matching the
 * exact bug .bgm-meetup-button already guards against in meetup.css. Same
 * fix: element + class, in a stylesheet that always loads after base.css.
 */
button.bgm-follow-button {
	color: var(--bgm-button-text);
}

button.bgm-follow-button:disabled {
	color: var(--bgm-button-text);
}

/*
 * Following state is never colour-only: the check mark and the label
 * "Takip Ediyorsun" both carry it, matching .bgm-meetup-going's own pattern.
 */
.bgm-follow-button.is-following {
	border: var(--bgm-border-width-strong) solid var(--bgm-color-success);
	background: var(--bgm-color-success-soft);
	color: var(--bgm-color-success-hover);
}

button.bgm-follow-button.is-following {
	color: var(--bgm-color-success-hover);
}

.bgm-follow-button.is-following:hover {
	border-color: var(--bgm-color-success);
	background: var(--bgm-color-success-soft);
}

.bgm-follow-button__mark {
	display: grid;
	width: 1.15rem;
	height: 1.15rem;
	flex: 0 0 auto;
	border-radius: var(--bgm-radius-round);
	background: var(--bgm-color-success);
	color: var(--bgm-color-surface);
	place-items: center;
	animation: bgm-confirm-in var(--bgm-duration-slow) var(--bgm-ease-out);
}

.bgm-follow-button__mark svg {
	width: 0.7rem;
	height: 0.7rem;
	stroke-width: 3;
}

.bgm-follow-unfollow,
button.bgm-follow-unfollow {
	min-height: 2.75rem;
	padding: var(--bgm-space-2) var(--bgm-space-3);
	border: 0;
	background: none;
	color: var(--bgm-color-text-muted);
	font-family: inherit;
	font-size: var(--bgm-text-sm);
	font-weight: var(--bgm-weight-semibold);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.bgm-follow-unfollow:hover,
.bgm-follow-unfollow:focus-visible {
	color: var(--bgm-color-danger-hover);
}

.bgm-follow-status {
	margin: 0;
	color: var(--bgm-color-text-soft);
	font-size: var(--bgm-text-xs);
	text-align: right;
}

.bgm-follow-status.is-error {
	color: var(--bgm-color-danger-hover);
}

/* --------------------------------------------------------------- metrics */

.bgm-moderator-profile-metrics {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bgm-space-6);
	margin: 0;
	padding: var(--bgm-space-6) 0 0;
}

.bgm-moderator-profile-metrics div {
	display: flex;
	flex-direction: column;
	gap: var(--bgm-space-1);
}

.bgm-moderator-profile-metrics dt {
	order: 2;
	color: var(--bgm-color-text-soft);
	font-size: var(--bgm-text-2xs);
	font-weight: var(--bgm-weight-semibold);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.bgm-moderator-profile-metrics dd {
	order: 1;
	margin: 0;
	font-family: var(--bgm-font-heading);
	font-size: var(--bgm-text-2xl);
	font-weight: var(--bgm-weight-extrabold);
}

/* --------------------------------------------------------------- sections */

.bgm-moderator-profile-empty {
	padding: var(--bgm-space-6);
	border: var(--bgm-border-width) dashed var(--bgm-color-border);
	border-radius: var(--bgm-radius-xl);
	color: var(--bgm-color-text-muted);
	font-size: var(--bgm-text-sm);
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 720px) {
	.bgm-moderator-profile-hero__inner {
		flex-direction: column;
	}

	.bgm-moderator-profile-actions {
		align-items: stretch;
		width: 100%;
	}

	.bgm-follow-button {
		width: 100%;
	}

	.bgm-follow-status {
		text-align: left;
	}

	.bgm-moderator-profile-metrics {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		gap: var(--bgm-space-4);
	}
}
