/**
 * Social Proof Toast Notifications
 *
 * Styles for the FOMO-style toast notifications showing recent user activity.
 *
 * @package    GaySaunaGuide
 * @subpackage GaySaunaGuide/public/css
 * @since      1.42.0
 */

/* Container - fixed position bottom left */
#gsg-social-proof-container {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column-reverse;
	gap: 10px;
	pointer-events: none;
	max-width: 340px;
}

/* Toast notification */
.gsg-social-proof-toast {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
	pointer-events: auto;
	transform: translateX(-120%);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
	            opacity 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

/* Visible state */
.gsg-social-proof-toast--visible {
	transform: translateX(0);
	opacity: 1;
}

/* Hiding state */
.gsg-social-proof-toast--hiding {
	transform: translateX(-120%);
	opacity: 0;
}

/* Header */
.gsg-social-proof-toast__header {
	padding: 14px 18px 12px;
	background: linear-gradient(135deg, #121316 0%, #1b2026 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gsg-social-proof-toast__title {
	font-size: 13px;
	font-weight: 600;
	color: #3ECFC4;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Body - icon + content */
.gsg-social-proof-toast__body {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
}

/* Icon container */
.gsg-social-proof-toast__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #3ECFC4 0%, #2BC1BF 100%);
	border-radius: 50%;
	flex-shrink: 0;
}

.gsg-social-proof-toast__icon svg {
	width: 22px;
	height: 22px;
	color: #ffffff;
}

/* Content */
.gsg-social-proof-toast__content {
	flex: 1;
	min-width: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #4a5663;
}

/* Username */
.gsg-social-proof-toast__username {
	font-weight: 700;
	color: #121316;
}

/* Message */
.gsg-social-proof-toast__message {
	color: #6b7785;
}

/* CTA Button */
.gsg-social-proof-toast__cta {
	display: block;
	padding: 12px 18px;
	background: linear-gradient(135deg, #E07227 0%, #C76B36 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.gsg-social-proof-toast__cta:hover {
	background: linear-gradient(135deg, #f07d2e 0%, #d9753c 100%);
	color: #ffffff;
	text-decoration: none;
}

.gsg-social-proof-toast__cta:focus {
	outline: 2px solid #3ECFC4;
	outline-offset: -2px;
}

/* Close button */
.gsg-social-proof-toast__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.7);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	flex-shrink: 0;
}

.gsg-social-proof-toast__close:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.gsg-social-proof-toast__close:focus {
	outline: 2px solid #3ECFC4;
	outline-offset: 2px;
}

/* Hover effect on toast */
.gsg-social-proof-toast:hover {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Mobile adjustments - more compact layout */
@media (max-width: 480px) {
	#gsg-social-proof-container {
		left: 10px;
		right: 10px;
		bottom: 10px;
		max-width: none;
	}

	.gsg-social-proof-toast__header {
		padding: 8px 14px 6px;
	}

	.gsg-social-proof-toast__title {
		font-size: 11px;
	}

	.gsg-social-proof-toast__body {
		padding: 10px 14px;
		gap: 10px;
	}

	.gsg-social-proof-toast__icon {
		width: 34px;
		height: 34px;
	}

	.gsg-social-proof-toast__icon svg {
		width: 17px;
		height: 17px;
	}

	.gsg-social-proof-toast__content {
		font-size: 13px;
		line-height: 1.4;
	}

	.gsg-social-proof-toast__cta {
		padding: 8px 14px;
		font-size: 13px;
	}
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.gsg-social-proof-toast {
		transition: opacity 0.2s ease;
		transform: translateX(0);
	}

	.gsg-social-proof-toast--hiding {
		transform: translateX(0);
	}
}

/* Dark mode support (if site uses dark mode) */
@media (prefers-color-scheme: dark) {
	.gsg-social-proof-toast {
		background: #2B2E33;
		border-color: rgba(255, 255, 255, 0.1);
	}

	.gsg-social-proof-toast__header {
		background: linear-gradient(135deg, #1a1c1f 0%, #232629 100%);
	}

	.gsg-social-proof-toast__body {
		background: #2B2E33;
	}

	.gsg-social-proof-toast__username {
		color: #E5EAF3;
	}

	.gsg-social-proof-toast__message {
		color: #a0aab5;
	}
}
