/**
 * OEG Referral Rewards - Public Styles
 *
 * Brand Colors:
 * Primary: #204F70
 * Secondary: #E2EEFF
 * Accent: #FA4457
 *
 * @package OEG_Referral_Rewards
 */

/* CSS Variables for Brand Colors */
:root {
	--oeg-primary: #204F70;
	--oeg-primary-dark: #1a3f5a;
	--oeg-secondary: #E2EEFF;
	--oeg-accent: #FA4457;
	--oeg-accent-dark: #e83344;
}

/* Dashboard Container */
.oeg-referral-dashboard {
	max-width: 800px;
}

/* Card Base */
.oeg-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.oeg-card h3 {
	margin: 0 0 16px 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--oeg-primary);
}

/* Not Eligible State */
.oeg-not-eligible {
	text-align: center;
	padding: 60px 20px;
	background: linear-gradient(135deg, var(--oeg-secondary) 0%, #d1e3ff 100%);
	border-radius: 16px;
}

.oeg-not-eligible-icon {
	color: var(--oeg-primary);
	margin-bottom: 20px;
}

.oeg-not-eligible h2 {
	margin: 0 0 12px 0;
	font-size: 24px;
	color: var(--oeg-primary);
}

.oeg-not-eligible p {
	margin: 0 0 24px 0;
	color: #6c757d;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

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

.oeg-btn-primary {
	background: var(--oeg-accent);
	color: #fff;
}

.oeg-btn-primary:hover {
	background: var(--oeg-accent-dark);
	color: #fff;
}

.oeg-btn-secondary {
	background: var(--oeg-secondary);
	color: var(--oeg-primary);
	border: 1px solid #c5d9f5;
}

.oeg-btn-secondary:hover {
	background: #d1e3ff;
}

/* Coupon Card */
.oeg-coupon-card {
	text-align: center;
	background: linear-gradient(135deg, var(--oeg-primary) 0%, var(--oeg-primary-dark) 100%);
	color: #fff;
}

.oeg-coupon-card h3 {
	color: rgba(255, 255, 255, 0.9);
}

.oeg-coupon-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 16px;
}

.oeg-coupon-code {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 2px;
	padding: 16px 24px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #fff;
}

.oeg-coupon-card .oeg-copy-btn {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.oeg-coupon-card .oeg-copy-btn:hover {
	background: rgba(255, 255, 255, 0.3);
}

.oeg-coupon-info {
	margin: 0;
	opacity: 0.9;
}

/* Stats Grid */
.oeg-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.oeg-stat-card {
	display: flex;
	align-items: center;
	gap: 16px;
}

.oeg-stat-icon {
	width: 48px;
	height: 48px;
	background: var(--oeg-secondary);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--oeg-primary);
	flex-shrink: 0;
}

.oeg-stat-content {
	display: flex;
	flex-direction: column;
}

.oeg-stat-value {
	font-size: 24px;
	font-weight: 700;
	color: var(--oeg-primary);
	line-height: 1.2;
}

.oeg-stat-label {
	font-size: 13px;
	color: #6b7280;
}

/* Share Card */
.oeg-share-card p {
	color: #6b7280;
	margin-bottom: 20px;
}

.oeg-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.oeg-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.oeg-share-whatsapp {
	background: #25d366;
	color: #fff;
}

.oeg-share-whatsapp:hover {
	background: #20bd5a;
}

.oeg-share-email {
	background: #6b7280;
	color: #fff;
}

.oeg-share-email:hover {
	background: #5b6570;
}

.oeg-share-linkedin {
	background: #0077b5;
	color: #fff;
}

.oeg-share-linkedin:hover {
	background: #006699;
}

.oeg-share-copy {
	background: var(--oeg-secondary);
	color: var(--oeg-primary);
	border: 1px solid #c5d9f5;
}

.oeg-share-copy:hover {
	background: #d1e3ff;
}

.oeg-share-copy.copied {
	background: #d1fae5;
	color: #065f46;
	border-color: #a7f3d0;
}

/* How It Works */
.oeg-how-it-works {
	background: var(--oeg-secondary);
}

.oeg-steps {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.oeg-step {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.oeg-step-number {
	width: 32px;
	height: 32px;
	background: var(--oeg-accent);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	flex-shrink: 0;
}

.oeg-step-content strong {
	display: block;
	margin-bottom: 4px;
	color: var(--oeg-primary);
}

.oeg-step-content p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

/* Copy Button States */
.oeg-copy-btn svg {
	width: 16px;
	height: 16px;
}

.oeg-copy-btn.copied span {
	color: #059669;
}

/* Toast Notification */
.oeg-toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--oeg-primary);
	color: #fff;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	z-index: 9999;
	animation: oeg-toast-in 0.3s ease;
}

.oeg-toast.success {
	background: #059669;
}

.oeg-toast.error {
	background: var(--oeg-accent);
}

@keyframes oeg-toast-in {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* Responsive */
@media (max-width: 600px) {
	.oeg-coupon-display {
		flex-direction: column;
	}

	.oeg-coupon-code {
		font-size: 20px;
		padding: 12px 16px;
	}

	.oeg-stats-grid {
		grid-template-columns: 1fr;
	}

	.oeg-share-buttons {
		flex-direction: column;
	}

	.oeg-share-btn {
		width: 100%;
		justify-content: center;
	}
}
