/**
 * Ambassador Fundraiser – Admin styles
 *
 * Shared header/footer design matching the Ambassador Core admin screens.
 * Loaded on all `fundraiser` post-type admin pages.
 */

/* ==========================================================================
   Layout wrapper
   ========================================================================== */

.ambh-dashboard {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   Page header
   ========================================================================== */

.ambh-dashboard__header {
	background: linear-gradient( 135deg, #1d2327 0%, #2c3338 100% );
	color: #fff;
	border-radius: 8px;
	padding: 28px 32px;
	margin: 16px 0 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ambh-dashboard__header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ambh-dashboard__logo-icon {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: color-mix( in srgb, var(--wp-admin-theme-color) 60%, #fff );
	flex-shrink: 0;
}

.ambh-dashboard__title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.ambh-dashboard__subtitle {
	margin: 0;
	font-size: 13px;
	color: #a7aaad;
}

/* ==========================================================================
   Header – "Add New" button
   ========================================================================== */

.ambh-header__add-new {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border: 2px solid rgba( 255, 255, 255, 0.55 );
	border-radius: 4px;
	color: #fff;
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ambh-header__add-new:hover {
	background: rgba( 255, 255, 255, 0.12 );
	border-color: #fff;
	color: #fff;
}

/* ==========================================================================
   Footer (Trybes branding, shared with settings pages)
   ========================================================================== */

.ambh-settings-footer {
	margin-top: 24px;
	padding-top: 12px;
	border-top: 1px solid #dcdcde;
	font-size: 12px;
	color: #8c8f94;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
}

.ambh-settings-footer a {
	color: #8c8f94;
	text-decoration: none;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 5px;
}

.ambh-settings-footer a:hover {
	color: var(--wp-admin-theme-color);
	text-decoration: underline;
}

/* ==========================================================================
   Fundraiser Attributes — Publish-style inline-edit rows
   ========================================================================== */

.ambh-fundraiser-attrs {
	margin: -6px -12px -12px;
}

.ambh-attr-row {
	padding: 7px 12px;
	border-bottom: 1px solid #f0f0f1;
}

.ambh-attr-row:last-child {
	border-bottom: none;
}

.ambh-attr-display {
	display: flex;
	align-items: center;
	gap: 5px;
	min-height: 24px;
}

.ambh-attr-icon {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: #8c8f94;
	flex-shrink: 0;
}

.ambh-attr-label-text {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
	white-space: nowrap;
	flex-shrink: 0;
}

.ambh-attr-value {
	flex: 1;
	font-size: 13px;
	color: #1d2327;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.ambh-attr-edit-link {
	font-size: 12px;
	flex-shrink: 0;
	color: var( --wp-admin-theme-color );
	text-decoration: none;
}

.ambh-attr-edit-link:hover {
	text-decoration: underline;
}

.ambh-attr-editor {
	margin-top: 6px;
}

.ambh-attr-editor[hidden] {
	display: none;
}

.ambh-attr-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0 0;
}

.ambh-attr-cancel {
	font-size: 12px;
	color: #646970;
	text-decoration: none;
}

.ambh-attr-cancel:hover {
	color: #1d2327;
}

/* ==========================================================================
   End Fundraiser Attributes
   ========================================================================== */

.ambh-settings-footer__favicon {
	width: 14px;
	height: 14px;
	display: block;
	vertical-align: middle;
	border-radius: 2px;
}
