/*!
 * Notification24 Smart Banner Pro - Frontend Styles
 */

:root {
	--n24sb-radius: 16px;
	--n24sb-padding: 20px;
	--n24sb-margin: 24px;
	--n24sb-animate: 1;
	--n24sb-glass: 1;
	--n24sb-gradient: 1;
}

.n24sb-wrapper {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: var(--n24sb-margin) 0;
	width: 100%;
	box-sizing: border-box;
}

.n24sb-banner {
	--n24sb-bg: #ffffff;
	--n24sb-text: #1f2937;
	--n24sb-btn: #2563eb;

	position: relative;
	border-radius: var(--n24sb-radius);
	padding: 2px;
	background: linear-gradient(135deg, var(--n24sb-btn), rgba(255, 255, 255, 0.2));
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	box-sizing: border-box;
	max-width: 100%;
}

.n24sb-banner-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--n24sb-bg, #ffffff);
	color: var(--n24sb-text, #1f2937);
	border-radius: calc(var(--n24sb-radius) - 2px);
	padding: var(--n24sb-padding);
	box-sizing: border-box;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.n24sb-wrapper[style*="--n24sb-glass:0"] .n24sb-banner-inner,
:root[style*="--n24sb-glass:0"] .n24sb-banner-inner {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.n24sb-banner:hover .n24sb-banner-inner {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.n24sb-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.04);
}

.n24sb-icon svg,
.n24sb-icon-img {
	width: 28px;
	height: 28px;
	display: block;
}

.n24sb-content {
	flex: 1 1 auto;
	min-width: 0;
}

.n24sb-heading {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.n24sb-description {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	opacity: 0.8;
}

.n24sb-cta {
	flex: 0 0 auto;
}

.n24sb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	background: var(--n24sb-btn, #2563eb);
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 999px;
	text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.n24sb-button:hover,
.n24sb-button:focus-visible {
	filter: brightness(1.08);
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	color: #ffffff !important;
}

.n24sb-button:active {
	transform: translateY(0) scale(0.99);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.n24sb-banner-inner {
		background: color-mix(in srgb, var(--n24sb-bg, #111827) 85%, #000 15%);
		color: #f3f4f6;
	}

	.n24sb-icon {
		background: rgba(255, 255, 255, 0.08);
	}
}

body.dark-mode .n24sb-banner-inner,
html.dark .n24sb-banner-inner,
.elementor-dark-mode .n24sb-banner-inner {
	background: #111827;
	color: #f3f4f6;
}

/* Tablet */
@media (max-width: 782px) {
	.n24sb-banner-inner {
		gap: 12px;
	}

	.n24sb-heading {
		font-size: 15px;
	}

	.n24sb-description {
		font-size: 13px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.n24sb-banner-inner {
		flex-wrap: wrap;
		text-align: left;
	}

	.n24sb-icon {
		width: 40px;
		height: 40px;
	}

	.n24sb-icon svg,
	.n24sb-icon-img {
		width: 22px;
		height: 22px;
	}

	.n24sb-content {
		flex: 1 1 calc(100% - 56px);
	}

	.n24sb-cta {
		flex: 1 1 100%;
	}

	.n24sb-button {
		width: 100%;
		padding: 12px 16px;
	}
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	.n24sb-banner-inner,
	.n24sb-button {
		transition: none !important;
	}

	.n24sb-banner:hover .n24sb-banner-inner {
		transform: none;
	}

	.n24sb-button:hover,
	.n24sb-button:focus-visible {
		transform: none;
	}
}
