/**
 * AlexaHire Web Push Client Styles
 */

/* 1. Floating Bell Widget */
.ah-push-bell-wrap {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 99990;
	display: flex;
	align-items: center;
}

.ah-push-bell-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #1d4ed8;
	color: #ffffff;
	border: none;
	border-radius: 50px;
	padding: 10px 18px 10px 14px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(29, 78, 216, 0.38);
	transition: all 0.25s ease;
	outline: none;
}

.ah-push-bell-btn:hover {
	background: #1e40af;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
}

.ah-push-bell-icon {
	font-size: 16px;
	display: inline-block;
	animation: ahBellRing 3.5s infinite ease-in-out;
}

.ah-push-bell-badge {
	font-size: 12px;
	letter-spacing: 0.2px;
}

/* Subscribed State */
.ah-push-subscribed .ah-push-bell-btn {
	background: #059669;
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}
.ah-push-subscribed .ah-push-bell-icon {
	animation: none;
}
.ah-push-subscribed .ah-push-bell-badge::after {
	content: ' Active';
}

@keyframes ahBellRing {
	0%, 100% { transform: rotate(0); }
	2% { transform: rotate(14deg); }
	4% { transform: rotate(-14deg); }
	6% { transform: rotate(12deg); }
	8% { transform: rotate(-12deg); }
	10% { transform: rotate(8deg); }
	12% { transform: rotate(-6deg); }
	14% { transform: rotate(0); }
}

/* 2. Slide-up Permission Prompt Card */
.ah-push-prompt-card {
	position: fixed;
	bottom: 84px;
	left: 24px;
	max-width: 360px;
	width: calc(100% - 48px);
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px 20px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
	z-index: 99991;
	transform: translateY(20px);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.ah-push-prompt-card.ah-push-visible {
	transform: translateY(0);
	opacity: 1;
}

.ah-push-prompt-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: transparent;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
}

.ah-push-prompt-close:hover {
	color: #0f172a;
}

.ah-push-prompt-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.ah-push-prompt-icon {
	font-size: 22px;
	background: #eff6ff;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	flex-shrink: 0;
}

.ah-push-prompt-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.ah-push-prompt-desc {
	margin: 0 0 14px 0;
	font-size: 12px;
	line-height: 1.5;
	color: #475569;
}

.ah-push-prompt-actions {
	display: flex;
	gap: 8px;
}

.ah-push-btn {
	padding: 8px 14px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	border: 1px solid transparent;
}

.ah-push-btn--primary {
	background: #1d4ed8;
	color: #ffffff;
	flex: 1;
	text-align: center;
}

.ah-push-btn--primary:hover {
	background: #1e40af;
}

.ah-push-btn--secondary {
	background: #f1f5f9;
	color: #475569;
	border-color: #e2e8f0;
}

.ah-push-btn--secondary:hover {
	background: #e2e8f0;
	color: #1e293b;
}

/* Mobile Responsive adjustments */
@media (max-width: 640px) {
	.ah-push-bell-wrap {
		bottom: 18px;
		left: 16px;
	}
	.ah-push-bell-badge {
		display: none; /* Icon only on mobile to save space */
	}
	.ah-push-bell-btn {
		padding: 10px;
		border-radius: 50%;
		width: 44px;
		height: 44px;
		justify-content: center;
	}
	.ah-push-prompt-card {
		bottom: 74px;
		left: 16px;
		right: 16px;
		width: auto;
	}
}
