/* =====================================================================
   RichUps — Social Login Cards (Phase 5A.4)
   3-card layout: Gmail, LINE, Facebook
===================================================================== */

/* ─── Pane wrapper ───────────────────────────────────────── */
.rp-social-pane {
	padding: 8px 0;
}

.rp-social-pane-title {
	font-size: 14.5px;
	font-weight: 600;
	color: #1f2b22;
	margin: 0 0 18px;
}

/* ─── Ref code field inside social tab ───────────────────── */
.rp-social-ref-field {
	margin-bottom: 22px;
}

/* ─── 3 Cards grid ───────────────────────────────────────── */
.rp-social-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 18px;
}

.rp-social-card {
	background: #fff;
	border: 1.5px solid #e3e8e1;
	border-radius: 14px;
	padding: 22px 14px 18px;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	transition: all .2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	position: relative;
	min-height: 130px;
	justify-content: center;
}

.rp-social-card:hover {
	transform: translateY(-3px);
	border-color: #9bc4a0;
	box-shadow: 0 10px 24px rgba(28, 60, 35, 0.08);
	text-decoration: none;
	color: inherit;
}

.rp-social-card:active {
	transform: translateY(-1px);
}


/* ─── Icon circle ────────────────────────────────────────── */
.rp-social-card-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .2s ease;
}

.rp-social-card:hover .rp-social-card-icon {
	transform: scale(1.08);
}

/* Google — สี light red/pink background (เหมือนรูป) */
.rp-social-icon-google {
	background: #fee4e2;
}

/* LINE — สีเขียว LINE */
.rp-social-icon-line {
	background: #06c755;
}

/* Facebook — สีฟ้า light */
.rp-social-icon-facebook {
	background: #e8f0fe;
}


/* ─── Label ──────────────────────────────────────────────── */
.rp-social-card-label {
	font-size: 14px;
	font-weight: 600;
	color: #1f2b22;
}


/* ─── Disabled card (Facebook coming soon) ───────────────── */
.rp-social-card.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	background: #faf7f1;
}

.rp-social-card.is-disabled:hover {
	transform: none;
	border-color: #e3e8e1;
	box-shadow: none;
}
.rp-social-card.is-disabled .rp-social-card-icon {
	transform: none;
}

.rp-social-card-soon {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #f59e0b;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	letter-spacing: 0.3px;
}


/* ─── Hint at bottom ─────────────────────────────────────── */
.rp-social-pane-hint {
	text-align: center;
	font-size: 12px;
	color: #6c7c70;
	margin: 18px 0 0;
	padding: 12px;
	background: #f5f5f0;
	border-radius: 10px;
}


/* ─── Ref code feedback (real-time validation) ───────────── */
.rp-auth-feedback {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	font-weight: 500;
	min-height: 16px;
	transition: color .15s;
}
.rp-auth-feedback.is-ok {
	color: #15803d;
}
.rp-auth-feedback.is-error {
	color: #dc2626;
}
.rp-auth-feedback.is-checking {
	color: #6c7c70;
}
.rp-auth-feedback.is-ok::before {
	content: '\2713';
	margin-right: 4px;
	font-weight: 700;
}
.rp-auth-feedback.is-error::before {
	content: '\26A0';
	margin-right: 4px;
}


/* ─── Mobile ─────────────────────────────────────────────── */
@media (max-width: 480px) {
	.rp-social-cards {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.rp-social-card {
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
		min-height: 70px;
		padding: 14px 18px;
	}
	.rp-social-card-icon {
		width: 48px;
		height: 48px;
	}
	.rp-social-card-icon svg {
		width: 24px;
		height: 24px;
	}
	.rp-social-card-soon {
		top: 50%;
		right: 14px;
		transform: translateY(-50%);
	}
}


/* =====================================================================
   PHASE 5A.4c — Complete Profile preview card
===================================================================== */

.rp-cp-preview {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 16px 18px;
	background: linear-gradient(135deg, #e7f1e9 0%, #faf7f1 100%);
	border-radius: 12px;
	margin-bottom: 24px;
	border: 1px solid #d8e7da;
}

.rp-cp-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	flex-shrink: 0;
}

.rp-cp-avatar-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2c5a36;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
}

.rp-cp-info {
	flex: 1;
	min-width: 0;
}

.rp-cp-name {
	font-size: 16px;
	font-weight: 600;
	color: #1f2b22;
	margin-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rp-cp-email {
	font-size: 13px;
	color: #6c7c70;
	margin-bottom: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rp-cp-provider {
	font-size: 11px;
	color: #2c5a36;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
