/**
 * Public-facing styles for VN Contact Pill.
 *
 * @since      2.1.0
 * @package    VNCP
 * @subpackage VNCP/public/css
 * @author     Web22.dev <hello@web22.dev>
 */

/* ============================================================
   Sidebar Container
   ============================================================ */
.vncp-sb {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: none;
}

.vncp--right {
	right: 24px;
}

.vncp--left {
	left: 24px;
}

/* ============================================================
   Pill Container
   ============================================================ */
.vncp-p {
	background: rgba(255, 255, 255, .95);
	border-radius: 28px;
	padding: 14px 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	border: 1px solid #e5e8ee;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	pointer-events: auto;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

/* ============================================================
   Button Item
   ============================================================ */
.vncp-i {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vncp-b {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}

.vncp-b:hover {
	transform: scale(1.15);
}

.vncp-b .material-symbols-outlined {
	font-size: 20px;
	line-height: 1;
	font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.vncp-ci {
	width: 36px;
	height: 36px;
	object-fit: contain;
	display: block;
	border-radius: 50%;
}

/* ============================================================
   Tooltip Label
   ============================================================ */
.vncp-l {
	display: none;
	position: absolute;
	white-space: nowrap;
	background: #2d3135;
	color: #eef1f7;
	padding: 5px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	font-family: 'Be Vietnam Pro', system-ui, sans-serif;
	pointer-events: none;
	z-index: 10;
}

.vncp-l--left {
	right: 100%;
	margin-right: 10px;
	top: 50%;
	transform: translateY(-50%);
}

.vncp-l--right {
	left: 100%;
	margin-left: 10px;
	top: 50%;
	transform: translateY(-50%);
}

.vncp-l--left::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -4px;
	transform: translateY(-50%) rotate(45deg);
	width: 7px;
	height: 7px;
	background: #2d3135;
}

.vncp-l--right::after {
	content: '';
	position: absolute;
	top: 50%;
	left: -4px;
	transform: translateY(-50%) rotate(45deg);
	width: 7px;
	height: 7px;
	background: #2d3135;
}

.vncp-i:hover .vncp-l {
	display: block;
}

/* ============================================================
   Animations
   ============================================================ */
.vncp-sb {
	animation: vncp-fi .5s ease-out .3s both;
}

.vncp-sb .vncp-i {
	animation: vncp-pop .4s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes vncp-fi {
	from {
		opacity: 0;
		transform: translateY(-50%) translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateY(-50%) translateX(0);
	}
}

@keyframes vncp-pop {
	from {
		opacity: 0;
		transform: scale(0);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.vncp--left.vncp-sb {
	animation-name: vncp-fil;
}

@keyframes vncp-fil {
	from {
		opacity: 0;
		transform: translateY(-50%) translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(-50%) translateX(0);
	}
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
	.vncp--right {
		right: 10px;
	}

	.vncp--left {
		left: 10px;
	}

	.vncp-p {
		padding: 10px 8px;
		gap: 8px;
		border-radius: 24px;
	}

	.vncp-b {
		width: 32px;
		height: 32px;
	}

	.vncp-b .material-symbols-outlined {
		font-size: 18px;
	}

	.vncp-ci {
		width: 32px;
		height: 32px;
	}

	.vncp-l {
		display: none !important;
	}
}

/* ============================================================
   Accessibility — Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.vncp-sb,
	.vncp-sb .vncp-i {
		animation: none;
		opacity: 1;
	}
}
