/**
 * 我的活动页 — [my_event_bookings] / [user_event_history] 浅色适配（Athens）
 */

body.ausbia-my-activities-surface {
	--athens-bg: #edebe3;
	--athens-panel: #f1efe8;
	--athens-inner: #f7f5f0;
	--athens-border: #d6d0c3;
	--athens-ink: #403a32;
	--athens-muted: #756d60;
	--athens-gold: #a8322d;
	background-color: var(--athens-bg);
	color: var(--athens-ink);
}

body.ausbia-my-activities-surface .entry-content,
body.ausbia-my-activities-surface .entry-content p {
	color: var(--athens-muted);
}

body.ausbia-my-activities-surface .wp-block-cover {
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--athens-border);
}

body.ausbia-my-activities-surface .wp-block-columns {
	margin-bottom: 0.5rem;
}

/* —— 报名列表 —— */
body.ausbia-my-activities-surface .lms-my-event-bookings {
	margin: 0 0 2.75rem;
}

body.ausbia-my-activities-surface .lms-my-event-bookings > h3,
body.ausbia-my-activities-surface .lms-user-event-history > h3 {
	margin: 0 0 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 2px solid rgba(168, 50, 45, 0.35);
	color: var(--athens-ink);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.35;
}

body.ausbia-my-activities-surface .lms-bookings-list {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

body.ausbia-my-activities-surface .lms-booking-item {
	margin-bottom: 0;
	padding: 1.15rem 1.25rem;
	background: var(--athens-inner);
	border: 1px solid var(--athens-border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(64, 58, 50, 0.06);
}

body.ausbia-my-activities-surface .lms-booking-item:hover {
	background: var(--athens-panel);
	border-color: rgba(168, 50, 45, 0.28);
	box-shadow: 0 2px 8px rgba(64, 58, 50, 0.08);
}

body.ausbia-my-activities-surface .lms-booking-event-name {
	color: var(--athens-ink);
	font-size: 1.05rem;
	font-weight: 600;
}

body.ausbia-my-activities-surface .lms-booking-details,
body.ausbia-my-activities-surface .lms-booking-description {
	color: var(--athens-muted);
}

body.ausbia-my-activities-surface .lms-booking-times,
body.ausbia-my-activities-surface .lms-booking-meta,
body.ausbia-my-activities-surface .lms-time-zone {
	color: var(--athens-muted);
	font-size: 0.8125rem;
}

body.ausbia-my-activities-surface .lms-booking-meta {
	opacity: 0.95;
}

body.ausbia-my-activities-surface .lms-btn-cancel-booking {
	padding: 0.5rem 1rem;
	background: var(--athens-gold);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	transition: background 0.2s ease, transform 0.15s ease;
}

body.ausbia-my-activities-surface .lms-btn-cancel-booking:hover {
	background: #8f2724;
}

/* —— 签到历史表格 —— */
body.ausbia-my-activities-surface .lms-user-event-history {
	margin: 0 0 2rem;
}

body.ausbia-my-activities-surface .lms-event-history-table {
	margin-top: 0;
	background: var(--athens-inner);
	border: 1px solid var(--athens-border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(64, 58, 50, 0.06);
	overflow: hidden;
}

body.ausbia-my-activities-surface .lms-event-history-table th,
body.ausbia-my-activities-surface .lms-event-history-table td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--athens-border);
	color: var(--athens-ink);
}

body.ausbia-my-activities-surface .lms-event-history-table th {
	background: var(--athens-panel);
	font-weight: 600;
	color: var(--athens-ink);
	font-size: 0.875rem;
}

body.ausbia-my-activities-surface .lms-event-history-table td {
	font-size: 0.9rem;
	color: var(--athens-muted);
}

body.ausbia-my-activities-surface .lms-event-history-table tbody tr:hover {
	background: rgba(168, 50, 45, 0.05);
}

body.ausbia-my-activities-surface .lms-event-history-table tbody tr:last-child td {
	border-bottom: none;
}

/* —— 空状态 / 提示 —— */
body.ausbia-my-activities-surface .lms-notice {
	padding: 1rem 1.15rem;
	margin: 1rem 0;
	background: var(--athens-panel);
	border: 1px solid var(--athens-border);
	border-left: 4px solid var(--athens-gold);
	border-radius: 8px;
	color: var(--athens-ink);
}

@media (max-width: 782px) {
	body.ausbia-my-activities-surface .lms-booking-item {
		flex-direction: column;
		gap: 1rem;
	}

	body.ausbia-my-activities-surface .lms-booking-actions {
		margin-left: 0;
		width: 100%;
	}

	body.ausbia-my-activities-surface .lms-btn-cancel-booking {
		width: 100%;
	}

	body.ausbia-my-activities-surface .lms-event-history-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.ausbia-my-activities-surface .lms-event-history-table th,
	body.ausbia-my-activities-surface .lms-event-history-table td {
		white-space: nowrap;
		min-width: 5.5rem;
	}
}
