/**
 * BuddyPress integration surfaces — shared styling.
 *
 * Keeps the group Events tab visually consistent with the native BuddyPress
 * profile subnav (text tabs with an underline on the active one) and the
 * Eventonomy design tokens. Loaded on BP group + member pages by the module.
 */

/* Group Events tab toolbar. */
.evnm-bp-group-events__bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--evnm-space-4, 1rem);
	flex-wrap: wrap;
	border-bottom: 1px solid var(--evnm-border, #e5e7eb);
	margin-bottom: var(--evnm-space-4, 1rem);
}

.evnm-bp-group-events__views {
	display: flex;
	gap: 0;
}

/* View toggle = native-style subnav text tabs (matches the profile Events tab). */
.evnm-bp-group-events__view {
	display: inline-block;
	padding: 0.6rem 1rem;
	margin-bottom: -1px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--evnm-text-muted, #6b7280);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.evnm-bp-group-events__view:hover,
.evnm-bp-group-events__view:focus {
	color: var(--evnm-accent, #2271b1);
}

.evnm-bp-group-events__view.is-active {
	color: var(--evnm-accent, #2271b1);
	border-bottom-color: var(--evnm-accent, #2271b1);
}

.evnm-bp-group-events__create {
	margin-bottom: 0.35rem;
	white-space: nowrap;
}

/* Empty-state placeholder — centered, muted, breathing room (both surfaces). */
.evnm-bp-group-events .evnm-empty,
.evnm-bp-group-events .evnm-events-list__empty,
.evnm-mbe .evnm-empty {
	text-align: center;
	color: var(--evnm-text-muted, #6b7280);
	padding: var(--evnm-space-6, 2.5rem) var(--evnm-space-4, 1rem);
	margin: 0;
}

/* Owner "Create Event" on the profile Events tab. */
.evnm-bp-profile-events__bar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: var(--evnm-space-4, 1rem);
}

/* Load more on the member profile buckets — quiet, centered secondary button.
   Scoped .evnm-scope prefix (0,2,0) so the !important resets beat both the Free
   .evnm-scope .evnm-btn guard and community-theme bare-<button> skinning. */
.evnm-scope .evnm-mbe__more {
	display: block;
	margin: var(--evnm-space-5, 1.5rem) auto 0;
	padding: 0.55rem 1.5rem;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	border-radius: var(--evnm-radius, 999px);
	background: transparent !important;
	border: 1px solid var(--evnm-border, #d1d5db) !important;
	color: var(--evnm-text, #1e1e1e) !important;
	box-shadow: none !important;
}

.evnm-scope .evnm-mbe__more:hover,
.evnm-scope .evnm-mbe__more:focus {
	border-color: var(--evnm-accent, #2271b1) !important;
	color: var(--evnm-accent, #2271b1) !important;
}

.evnm-scope .evnm-mbe__more[hidden] {
	display: none;
}

@media (max-width: 480px) {
	.evnm-bp-group-events__bar {
		align-items: stretch;
	}

	.evnm-bp-group-events__create {
		margin-top: 0.5rem;
	}
}
