/* Bright Addons Blocks Library – shared design tokens and small utilities.
   Every block wrapper has the .babl class. Colors can be changed per block
   from the sidebar; they are passed in as CSS custom properties. */

.babl {
	--babl-accent: #6f4efb;
	--babl-accent-2: #f54d94;
	--babl-gold: #ffd66b;
	--babl-ink: #14122b;
	--babl-text: #4a4a68;
	--babl-muted: #6b6b85;
	--babl-line: #e7e5f5;
	--babl-soft: #f6f5ff;
	--babl-tint: #f1eeff;
	--babl-white: #fff;
	--babl-radius: 16px;
	--babl-shadow: 0 1px 2px rgba(20, 18, 43, 0.04), 0 10px 30px rgba(20, 18, 43, 0.06);
	--babl-shadow-hover: 0 18px 40px rgba(111, 78, 251, 0.16);
	box-sizing: border-box;
}

.babl *,
.babl *::before,
.babl *::after {
	box-sizing: border-box;
}

.babl :where(h1, h2, h3, h4, h5, h6, p) {
	margin-top: 0;
}

.babl-svg {
	display: block;
	width: 1em;
	height: 1em;
	flex: none;
}

.babl .babl-svg[fill="none"] {
	fill: none;
}

/* Buttons */
.babl-btn {
	--babl-btn-bg: var(--babl-accent);
	--babl-btn-color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.85em 1.5em;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--babl-btn-bg);
	color: var(--babl-btn-color);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.babl-btn:hover,
.babl-btn:focus-visible {
	color: var(--babl-btn-color);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(111, 78, 251, 0.28);
}

.babl-btn:focus-visible,
.babl a:focus-visible,
.babl button:focus-visible {
	outline: 2px solid var(--babl-accent);
	outline-offset: 2px;
}

.babl-btn--outline {
	--babl-btn-bg: transparent;
	--babl-btn-color: var(--babl-accent);
	border-color: currentColor;
}

.babl-btn--outline:hover,
.babl-btn--outline:focus-visible {
	box-shadow: none;
	background: var(--babl-tint);
}

/* Free / Pro / New / Hot tags */
.babl-tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	vertical-align: middle;
}

a.babl-tag:hover,
a.babl-tag:focus-visible {
	text-decoration: none;
	filter: brightness(0.96);
}

.babl-tag--free {
	color: #138a52;
	background: #e9f8ef;
	border-color: #c9eed9;
}

.babl-tag--pro {
	color: #5536f0;
	background: #efebff;
	border-color: #ddd5ff;
}

.babl-tag--new {
	color: #c42a68;
	background: #ffe7f0;
	border-color: #ffc9dc;
}

.babl-tag--hot {
	color: #9a5b00;
	background: #fff4d6;
	border-color: #ffe4a3;
}

.babl-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.babl *,
	.babl *::before,
	.babl *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
