/**
 * ELUX - Points & Rewards Styles
 * Modern & Clean Design
 */

/* ================================
   Points Page Layout
   ================================ */
.vs-points-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.vs-points-header {
	margin-bottom: 40px;
}

.vs-points-title {
	font-size: 32px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 24px;
	text-align: center;
}

.vs-points-balance {
	color: #dc2626;
	font-weight: 800;
}

.vs-points-tabs {
	display: flex;
	justify-content: center;
	gap: 8px;
	border-bottom: 2px solid #e5e7eb;
	padding-bottom: 0;
	max-width: 560px;
}

.vs-tab-link {
	padding: 12px 24px;
	color: #6b7280;
	font-size: 18px;
	font-weight: 500;
	text-decoration: none;
	position: relative;
	transition: all 0.3s ease;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}

.vs-tab-link:hover {
	color: #111827;
	background: #f9fafb;
}

.vs-tab-link.active {
	color: #034C8C;
	border-bottom-color: #034C8C;
}

.vs-points-content {
	background: white;
	border-radius: 12px;
	/* padding: 32px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}

.vs-points-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #e5e7eb;
}

.vs-section-title {
	font-size: 24px;
	font-weight: 600;
	color: #111827;
	margin: 0;
}

/* ================================
   Filter Checkbox
   ================================ */
.vs-filter-checkbox {
	margin-top: 8px;
}

.vs-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.vs-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #034C8C;
}

.vs-checkbox-text {
	color: #374151;
	font-size: 14px;
}

/* ================================
   Rewards Grid (Points for Gifts)
   ================================ */
.vs-rewards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.vs-reward-card {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.vs-reward-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
	border-color: #d1d5db;
}

.vs-reward-card.cannot-redeem {
	opacity: 0.6;
}

.vs-reward-image {
	position: relative;
	width: 100%;
	padding-top: 75%;
	overflow: hidden;
	background: #f9fafb;
}

.vs-reward-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vs-coupon-display {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vs-coupon-value {
	font-size: 48px;
	font-weight: 900;
	color: white;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vs-reward-details {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.vs-reward-info {
	flex-grow: 1;
	margin-bottom: 16px;
}

.vs-reward-name {
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.vs-reward-description {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.5;
	margin: 0;
}

.vs-reward-pricing {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding: 12px 0;
	border-top: 1px solid #e5e7eb;
}

.vs-regular-price {
	font-size: 14px;
	color: #9ca3af;
	text-decoration: line-through;
}

.vs-points-price {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.vs-price-label {
	font-size: 13px;
	color: #6b7280;
}

.vs-price-value {
	font-size: 18px;
	color: #dc2626;
	font-weight: 700;
}

.vs-redeem-btn {
	width: 100%;
	padding: 12px 24px;
	background: #16a34a;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.vs-redeem-btn:hover:not(:disabled) {
	background: #15803d;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.vs-redeem-btn:active:not(:disabled) {
	transform: translateY(0);
}

.vs-redeem-btn:disabled,
.vs-redeem-btn.disabled {
	background: #d1d5db;
	color: #9ca3af;
	cursor: not-allowed;
	transform: none;
}

/* ================================
   Points History
   ================================ */
.vs-points-history {
	margin-top: 24px;
}

.vs-history-item {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
}

.vs-history-description {
	font-size: 15px;
	color: #374151;
	line-height: 1.5;
}

.vs-history-points {
	font-size: 18px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 6px;
	min-width: 80px;
	text-align: center;
}

.vs-history-points.positive {
	color: #059669;
	background: #d1fae5;
}

.vs-history-points.negative {
	color: #dc2626;
	background: #fee2e2;
}

.vs-history-date {
	font-size: 13px;
	color: #9ca3af;
	white-space: nowrap;
}

.vs-history-divider {
	height: 1px;
	background: #e5e7eb;
	margin: 4px 0;
}

/* ================================
   How to Earn Points
   ================================ */
.vs-earn-points-content {
	max-width: 800px;
	margin: 0 auto;
}

.vs-earn-intro {
	background: #eff6ff;
	border-left: 4px solid #3b82f6;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 32px;
}

.vs-earn-intro p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #1e40af;
}

.vs-earn-section {
	margin-bottom: 32px;
	padding: 24px;
	background: #f9fafb;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.vs-earn-section.vs-earn-tips {
	background: #fef3c7;
	border-color: #fbbf24;
}

.vs-earn-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 16px 0;
}

.vs-earn-icon {
	flex-shrink: 0;
	color: #034C8C;
}

.vs-earn-desc {
	font-size: 15px;
	line-height: 1.7;
	color: #374151;
	margin: 0;
}

.vs-earn-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.vs-earn-list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 12px;
	font-size: 15px;
	line-height: 1.7;
	color: #374151;
}

.vs-earn-list li:before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: #16a34a;
	font-weight: 700;
	font-size: 18px;
}

.vs-earn-list li:last-child {
	margin-bottom: 0;
}

.vs-earn-footer {
	text-align: center;
	margin-top: 40px;
	padding: 32px;
	background: linear-gradient(135deg, #034C8C 0%, #0369a1 100%);
	border-radius: 12px;
	color: white;
}

.vs-earn-footer p {
	font-size: 18px;
	margin: 0 0 24px 0;
}

.vs-earn-footer .vs-btn {
	background: white;
	color: #034C8C;
}

.vs-earn-footer .vs-btn:hover {
	background: #f0f9ff;
	transform: translateY(-2px);
}

/* ================================
   Redeem Modal
   ================================ */
.vs-redeem-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.vs-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	animation: fadeIn 0.3s ease;
}

.vs-modal-content {
	position: relative;
	background: white;
	border-radius: 12px;
	max-width: 500px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: slideUp 0.3s ease;
}

.vs-modal-header {
	padding: 24px;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.vs-modal-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #111827;
}

.vs-modal-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #6b7280;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.vs-modal-close:hover {
	background: #f3f4f6;
	color: #111827;
}

.vs-modal-body {
	padding: 24px;
}

.vs-modal-message {
	padding: 12px 16px;
	border-radius: 8px;
	margin-top: 16px;
	font-size: 14px;
	display: none;
}

.vs-modal-message.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
	display: block;
}

.vs-modal-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
	display: block;
}

.vs-modal-footer {
	padding: 24px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.vs-modal-footer .vs-btn-outline,
.vs-modal-footer .vs-btn-primary {
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
}

.vs-modal-footer .vs-btn-outline {
	background: white;
	color: #6b7280;
	border: 1px solid #d1d5db;
}

.vs-modal-footer .vs-btn-outline:hover {
	background: #f3f4f6;
	color: #374151;
}

.vs-modal-footer .vs-btn-primary {
	background: #16a34a;
	color: white;
}

.vs-modal-footer .vs-btn-primary:hover {
	background: #15803d;
}

.vs-modal-footer .vs-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
	.vs-points-page {
		padding: 20px 16px;
	}
	
	.vs-points-title {
		font-size: 24px;
	}
	
	.vs-points-tabs {
		flex-direction: row;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	
	.vs-points-tabs::-webkit-scrollbar {
		display: none;
	}
	
	.vs-tab-link {
		padding: 10px 16px;
		font-size: 14px;
		white-space: nowrap;
	}
	
	.vs-points-content {
		padding: 20px;
	}
	
	.vs-section-title {
		font-size: 20px;
	}
	
	.vs-rewards-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 16px;
	}
	
	.vs-history-item {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	
	.vs-history-points {
		justify-self: start;
	}
	
	.vs-earn-section {
		padding: 16px;
	}
	
	.vs-earn-title {
		font-size: 18px;
	}
	
	.vs-modal-footer {
		flex-direction: column;
	}
	
	.vs-modal-footer .vs-btn-outline,
	.vs-modal-footer .vs-btn-primary {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.vs-rewards-grid {
		grid-template-columns: 1fr;
	}
	
	.vs-redeem-modal {
		padding: 0;
	}
	
	.vs-modal-content {
		max-height: 100vh;
		border-radius: 0;
		height: 100%;
	}
}

