/**
 * HivePress Memberships — Frontend Styles
 */

/* ── Pricing Table ───────────────────────────── */

.hp-pricing-table {
	margin: 30px 0;
}

.hp-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
}

.hp-pricing-card {
	position: relative;
	background: #fff;
	border: 2px solid #e8e8e8;
	border-radius: 12px;
	padding: 32px 24px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hp-pricing-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
	border-color: #50a18e;
}

.hp-pricing-card.current-plan {
	border-color: #50a18e;
	background: linear-gradient(135deg, #f0faf7, #ffffff);
}

/* Plan badge */
.hp-plan-badge {
	display: inline-block;
	background: #50a18e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 20px;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Plan name */
.hp-plan-name {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #222;
}

/* Price */
.hp-plan-price {
	font-size: 36px;
	font-weight: 800;
	color: #50a18e;
	margin-bottom: 16px;
	line-height: 1.2;
}

.hp-plan-price del {
	font-size: 18px;
	color: #aaa;
	font-weight: 400;
}

.hp-plan-price ins {
	text-decoration: none;
}

/* Description */
.hp-plan-desc {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 20px;
}

/* Features */
.hp-plan-features {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	text-align: left;
}

.hp-plan-features li {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
	color: #444;
	position: relative;
	padding-left: 28px;
}

.hp-plan-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 8px;
	color: #50a18e;
	font-weight: 700;
	font-size: 16px;
}

/* Button */
.hp-plan-button {
	display: inline-block;
	background: #50a18e;
	color: #fff !important;
	padding: 12px 32px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

.hp-plan-button:hover {
	background: #3e8a78;
}

.hp-plan-button:disabled {
	background: #ccc;
	cursor: default;
}

/* ── Membership Status ───────────────────────── */

.hp-membership-status {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 20px;
	margin: 15px 0;
}

.hp-membership-status h3 {
	margin: 0 0 8px;
}

.hp-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
}

.hp-status-active {
	background: #e8f8f4;
	color: #2ecc71;
}

.hp-status-inactive {
	background: #fdf0ef;
	color: #e74c3c;
}

/* ── Notices ─────────────────────────────────── */

.hp-memberships-notice,
.hp-memberships-limit-notice {
	margin: 15px 0 !important;
}

/* ── My Account Table ────────────────────────── */

.woocommerce-membership .shop_table {
	margin-bottom: 20px;
}

.woocommerce-membership .shop_table th {
	width: 200px;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 600px) {
	.hp-pricing-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hp-pricing-card {
		padding: 24px 16px;
	}

	.hp-plan-price {
		font-size: 28px;
	}
}

/* ── Billing Toggle ──────────────────────────── */

.hp-price-period {
	font-size: 16px;
	font-weight: 500;
	color: #888;
}

.hp-billing-toggle {
	display: flex;
	gap: 0;
	margin-top: 12px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #e0e0e0;
}

.hp-toggle-btn {
	flex: 1;
	background: #f8f8f8;
	border: none;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hp-toggle-btn.active {
	background: #50a18e;
	color: #fff;
}

.hp-toggle-btn:hover:not(.active) {
	background: #e8e8e8;
}
