/**
 * SWAPNEWS Phase 3c — PWA Styles
 * Install banner + Push notification prompt
 */

/* =========================================================================
 * INSTALL BANNER (appears at bottom)
 * ====================================================================== */
.sn-install-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(100%);
	transition: transform .3s ease-out;
	font-family: 'Heebo', sans-serif;
}
.sn-install-banner.is-show {
	transform: translateY(0);
}
.sn-install-banner__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 14px 18px;
	display: flex;
	gap: 14px;
	align-items: center;
}
.sn-install-banner__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sn-install-banner__text strong {
	font-size: 14px;
	font-weight: 800;
	color: #D13438;
}
.sn-install-banner__text span {
	font-size: 13px;
	color: #555;
}
.sn-install-banner__actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}
.sn-install-banner__dismiss {
	background: transparent;
	color: #888;
	border: 1px solid rgba(0, 0, 0, 0.15);
	padding: 8px 14px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.sn-install-banner__install {
	background: #D13438;
	color: #fff;
	border: none;
	padding: 8px 18px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(209, 52, 56, 0.3);
}
.sn-install-banner__install:hover { background: #b02a2e; }

@media (max-width: 600px) {
	.sn-install-banner__inner { flex-direction: column; align-items: stretch; gap: 10px; }
	.sn-install-banner__actions { justify-content: flex-end; }
}

/* =========================================================================
 * PUSH NOTIFICATION PROMPT (toast-style top right)
 * ====================================================================== */
.sn-push-prompt {
	position: fixed;
	top: 80px;
	right: 20px;
	z-index: 9991;
	max-width: 340px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
	transform: translateX(420px);
	transition: transform .3s ease-out;
	font-family: 'Heebo', sans-serif;
	overflow: hidden;
}
.sn-push-prompt.is-show { transform: translateX(0); }
.sn-push-prompt__inner { padding: 16px 18px; }
.sn-push-prompt__icon {
	font-size: 32px;
	margin-bottom: 8px;
	animation: snPushBell 1s ease-in-out;
}
@keyframes snPushBell {
	0%, 100% { transform: rotate(0); }
	25% { transform: rotate(15deg); }
	75% { transform: rotate(-15deg); }
}
.sn-push-prompt__text {
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.sn-push-prompt__text strong {
	font-size: 15px;
	font-weight: 800;
	color: #111;
}
.sn-push-prompt__text span {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}
.sn-push-prompt__actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}
.sn-push-prompt__deny {
	background: transparent;
	color: #888;
	border: none;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.sn-push-prompt__allow {
	background: #D13438;
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.sn-push-prompt__allow:hover { background: #b02a2e; }

@media (max-width: 600px) {
	.sn-push-prompt {
		top: auto;
		bottom: 90px;
		left: 16px;
		right: 16px;
		max-width: none;
		transform: translateY(200px);
	}
	.sn-push-prompt.is-show { transform: translateY(0); }
}

/* =========================================================================
 * Dark mode
 * ====================================================================== */
[data-theme="dark"] .sn-install-banner,
[data-theme="dark"] .sn-push-prompt {
	background: #1a1a1a;
	border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .sn-install-banner__text span,
[data-theme="dark"] .sn-push-prompt__text span { color: #aaa; }
[data-theme="dark"] .sn-push-prompt__text strong { color: #fff; }
[data-theme="dark"] .sn-install-banner__dismiss {
	border-color: rgba(255, 255, 255, 0.15);
	color: #aaa;
}
