/**
 * PWA Installer - button & modal styles
 * Scoped under #pwa-install-btn / .pwa-modal-* to avoid clashing with theme CSS.
 */

#pwa-install-btn.pwa-install-btn {
	position: fixed;
	z-index: 9999;
	bottom: 20px;
	right: 20px;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #fff;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 50px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
	user-select: none;
}

#pwa-install-btn.pwa-install-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

#pwa-install-btn.pwa-install-btn:active {
	transform: translateY(0);
}

#pwa-install-btn .pwa-install-icon {
	font-size: 18px;
	line-height: 1;
}

/* ---------------- Modal (instructions) ---------------- */
.pwa-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: pwa-fade 0.2s ease;
}

.pwa-modal-box {
	background: #1e1e1e;
	color: #fff;
	max-width: 380px;
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	animation: pwa-pop 0.2s ease;
}

.pwa-modal-title {
	padding: 18px 20px 8px;
	font-size: 18px;
	font-weight: 700;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.pwa-modal-body {
	padding: 0 20px 16px;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
}

.pwa-modal-close {
	display: block;
	width: 100%;
	padding: 14px;
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: #2563eb;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.pwa-modal-close:hover {
	background: #1d4ed8;
}

/* ---------------- Animations ---------------- */
@keyframes pwa-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

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

/* ---------------- Mobile tweaks ---------------- */
@media (max-width: 480px) {
	#pwa-install-btn.pwa-install-btn {
		bottom: 14px;
		right: 14px;
		padding: 9px 14px;
		font-size: 13px;
	}
}
