/* FPLC Membership Portal - Member Dashboard */

:root {
	--fplc-primary: #0b7a45;
	--fplc-primary-light: #5ab481;
	--fplc-primary-dark: #08301c;
	--fplc-text: #000000;
	--fplc-text-muted: #333333;
	--fplc-surface: #ffffff;
	--fplc-surface-tint: #f3faf6;
	--fplc-border: #e6efe9;
}

.fplc-member-portal {
	font-family: var(--fplc-font-body);
	color: #000;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	box-sizing: border-box;
}

.fplc-member-portal h1,
.fplc-member-portal h2,
.fplc-member-portal h3,
.fplc-member-portal h4,
.fplc-member-content h2,
.fplc-event-info h4,
.fplc-profile-info h3,
.fplc-invoice-info h4,
.fplc-invoice-amount,
.fplc-event-date .day {
	font-family: var(--fplc-font-heading);
}

.fplc-member-portal *,
.fplc-member-portal *::before,
.fplc-member-portal *::after {
	box-sizing: border-box;
}

.fplc-member-login-prompt {
	text-align: center;
	padding: 60px 24px;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e6efe9;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
}

.fplc-member-login-prompt p {
	font-size: 16px;
	color: #333;
	margin-bottom: 20px;
}

.fplc-member-layout {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	background: #fff;
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
	border: none;
}

/* Sidebar */
.fplc-member-sidebar {
	width: 260px;
	background: linear-gradient(180deg, #0b7a45 0%, #08301c 100%);
	color: #fff;
	flex-shrink: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-self: stretch;
}

.fplc-member-brand {
	padding: 28px 20px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	display: flex;
	align-items: center;
	gap: 14px;
}

.fplc-member-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255,255,255,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
}

.fplc-member-name {
	font-size: 15px;
	font-weight: 600;
}

.fplc-member-nav {
	padding: 16px 12px;
}

.fplc-member-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	margin-bottom: 4px;
	border: none;
	background: transparent;
	color: rgba(255,255,255,0.7);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border-radius: 10px;
	transition: all 0.2s ease;
	text-align: left;
}

.fplc-member-nav-item svg {
	flex-shrink: 0;
	opacity: 0.8;
}

.fplc-member-nav-item:hover {
	background: rgba(255,255,255,0.1);
	color: #fff;
}

.fplc-member-nav-item.active {
	background: rgba(255,255,255,0.15);
	color: #fff;
}

.fplc-member-nav-item.active svg {
	opacity: 1;
}

/* Content */
.fplc-member-content {
	flex: 1;
	padding: 32px 36px;
	overflow-y: auto;
	min-height: 0;
	align-self: stretch;
}

.fplc-member-content h2 {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 600;
	color: #000;
}

.fplc-member-tab {
	display: none;
	animation: fplcMemberFade 0.25s ease;
}

.fplc-member-tab.active {
	display: block;
}

@keyframes fplcMemberFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.fplc-loading {
	color: #333;
	padding: 40px;
	text-align: center;
}

/* Profile card */
.fplc-profile-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 28px;
	border: 1px solid #e6efe9;
}

.fplc-profile-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 16px;
}

.fplc-profile-info h3 {
	margin: 0 0 4px;
	font-size: 22px;
	color: #000;
}

.fplc-profile-info p {
	margin: 0;
	color: #333;
	font-size: 14px;
}

.fplc-membership-status {
	padding: 20px;
	background: #fff;
	border-radius: 10px;
	border: 1px solid #e6efe9;
	margin-bottom: 20px;
}

.fplc-membership-status h4 {
	margin: 0 0 12px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #333;
}

.fplc-status-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.fplc-status-label {
	color: #000;
	font-size: 14px;
}

.fplc-status-value {
	font-weight: 600;
	color: #000;
}

.fplc-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
}

.fplc-badge-active { background: #d8f0e3; color: #08301c; }
.fplc-badge-expired { background: #fed7d7; color: #742a2a; }
.fplc-badge-inactive { background: #e6efe9; color: #333; }
.fplc-badge-pending { background: #fefcbf; color: #744210; }
.fplc-badge-paid { background: #d8f0e3; color: #08301c; }

.fplc-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.fplc-detail-item label {
	display: block;
	font-size: 12px;
	color: #333;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.fplc-detail-item span {
	font-size: 15px;
	color: #000;
	font-weight: 500;
}

/* Buttons */
.fplc-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.fplc-btn-primary {
	background: linear-gradient(135deg, #0b7a45 0%, #08301c 100%);
	color: #fff;
}

.fplc-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(11,122,69,0.35);
	background: linear-gradient(135deg, #5ab481 0%, #0b7a45 100%);
	color: #fff;
}

.fplc-btn-secondary {
	background: #f3faf6;
	color: #000;
}

.fplc-btn-secondary:hover {
	background: #e6efe9;
	color: #000;
}

.fplc-btn-outline {
	background: transparent;
	border: 2px solid #0b7a45;
	color: #0b7a45;
}

.fplc-btn-outline:hover {
	background: #0b7a45;
	color: #fff;
}

/* Events list */
.fplc-events-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fplc-event-card {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 20px;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e6efe9;
	transition: box-shadow 0.2s;
}

.fplc-ticket-picker {
	flex: 1 1 100%;
}

.fplc-event-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.fplc-event-date {
	width: 60px;
	text-align: center;
	flex-shrink: 0;
}

.fplc-event-date .day {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: #0b7a45;
	line-height: 1;
}

.fplc-event-date .month {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	color: #333;
	margin-top: 4px;
}

.fplc-event-info {
	flex: 1;
}

.fplc-event-info h4 {
	margin: 0 0 6px;
	font-size: 16px;
	color: #000;
}

.fplc-event-info p {
	margin: 0;
	font-size: 13px;
	color: #333;
}

.fplc-event-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
	justify-content: center;
}

.fplc-empty-state {
	text-align: center;
	padding: 48px 24px;
	color: #333;
}

/* Invoices / Billing */
.fplc-billing-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.fplc-billing-stat {
	background: #fff;
	border: 1px solid #e6efe9;
	border-radius: 12px;
	padding: 16px 18px;
}

.fplc-billing-stat .label {
	display: block;
	font-size: 12px;
	color: #333;
	margin-bottom: 6px;
}

.fplc-billing-stat strong {
	font-size: 24px;
	color: #08301c;
}

.fplc-renew-banner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding: 20px;
	background: #f3faf6;
	border-radius: 12px;
	border: 1px solid #5ab481;
}

.fplc-renew-banner h4 {
	margin: 0 0 6px;
	color: #0b7a45;
}

.fplc-renew-banner p {
	margin: 0;
	color: #000;
	font-size: 14px;
}

.fplc-billing-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.fplc-billing-empty {
	color: #333;
	margin: 0;
}

.fplc-invoice-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fplc-invoice-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: #ffffff;
	border-radius: 10px;
	border: 1px solid #e6efe9;
}

.fplc-invoice-info h4 {
	margin: 0 0 4px;
	font-size: 15px;
}

.fplc-invoice-info p {
	margin: 0;
	font-size: 13px;
	color: #333;
}

.fplc-invoice-meta {
	margin-top: 4px !important;
	font-size: 12px !important;
	color: #555 !important;
}

.fplc-invoice-side {
	text-align: right;
	flex-shrink: 0;
}

.fplc-invoice-amount {
	font-size: 18px;
	font-weight: 700;
	color: #000;
	margin-bottom: 6px;
}

.fplc-invoice-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 10px;
}

@media (max-width: 768px) {
	.fplc-billing-summary {
		grid-template-columns: 1fr;
	}

	.fplc-invoice-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.fplc-invoice-side {
		text-align: left;
		width: 100%;
	}

	.fplc-invoice-actions {
		justify-content: flex-start;
	}

	.fplc-member-layout {
		flex-direction: column;
		min-height: 100vh;
		min-height: 100dvh;
	}
	.fplc-member-sidebar {
		width: 100%;
	}
	.fplc-member-content {
		flex: 1;
	}
	.fplc-member-nav {
		display: flex;
		overflow-x: auto;
		gap: 4px;
	}
	.fplc-member-nav-item {
		white-space: nowrap;
		width: auto;
	}
	.fplc-detail-grid {
		grid-template-columns: 1fr;
	}
	.fplc-event-card {
		flex-direction: column;
	}
	.fplc-event-actions {
		flex-direction: row;
		align-items: flex-start;
	}
}
