/* talentrocks/mascot-ai — перенос templates/mascot-ai/mascot-ai.scss */

.mascot-ai {
	--tr-mascot-color: #670dce;
	position: fixed;
	bottom: 30px;
	right: 0;
	display: flex;
	align-items: flex-end;
	z-index: 999;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	font-family: var(--tr-font-ui, 'Manrope', sans-serif);
}

.mascot-ai.visible {
	animation: tr-mascot-appear 0.6s ease-out forwards;
}

.mascot-ai.hidden {
	display: none;
}

.mascot-ai__bubble {
	position: relative;
	width: 300px;
	background: var(--tr-mascot-color);
	border-radius: 16px;
	padding: 16px;
	color: #fff;
	display: flex;
	flex-direction: column;
	margin-right: -50px;
	box-sizing: border-box;
}

.mascot-ai__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mascot-ai__close {
	position: relative;
	z-index: 2;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s;
	border-radius: 50%;
	margin-left: auto;
	background: none;
	border: none;
	padding: 0;
}

.mascot-ai__close:hover {
	opacity: 1;
}

.mascot-ai__dots {
	display: flex;
	gap: 4px;
}

.mascot-ai__dot {
	width: 24px;
	height: 4px;
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.2);
	transition: background 0.3s;
}

.mascot-ai__dot.active {
	background: #fff;
}

.mascot-ai__slider {
	position: relative;
	height: 72px;
	overflow: hidden;
}

.mascot-ai__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	transform: translateX(30px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	pointer-events: none;
}

.mascot-ai__slide.active {
	position: relative;
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

.mascot-ai__slide-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 72px;
}

.mascot-ai__title {
	font-family: var(--tr-font-ui, 'Manrope', sans-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	margin: 0;
	color: #fff;
}

.mascot-ai__title--small {
	font-size: 16px;
	line-height: 1.35;
}

.mascot-ai__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mascot-ai__tag {
	font-family: var(--tr-font-ui, 'Manrope', sans-serif);
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.43;
	color: #fff;
}

.mascot-ai__divider {
	width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, 0.2);
	margin: 16px 0 12px;
}

.mascot-ai__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
}

.mascot-ai__footer-text {
	flex: 1;
}

.mascot-ai__quote {
	flex-shrink: 0;
	align-self: flex-end;
	line-height: 0;
	color: var(--tr-mascot-color);
}

.mascot-ai__text {
	font-family: var(--tr-font-ui, 'Manrope', sans-serif);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.43;
	margin: 0 0 4px;
	color: #fff;
}

.mascot-ai__subtext {
	font-family: var(--tr-font-ui, 'Manrope', sans-serif);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.43;
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
}

.mascot-ai__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
	padding: 12px 24px;
	background: #fff;
	color: #303030;
	border-radius: 12px;
	font-family: var(--tr-font-ui, 'Manrope', sans-serif);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.43;
	text-decoration: none;
	transition: background 0.2s, box-shadow 0.2s;
	border: none;
	cursor: pointer;
	width: 100%;
	position: relative;
	z-index: 2;
}

.mascot-ai__button:hover {
	background: #f0e8ff;
	box-shadow: 0 4px 16px rgba(71, 0, 187, 0.15);
}

.mascot-ai__button svg {
	flex-shrink: 0;
}

.mascot-ai__image {
	position: relative;
	flex-shrink: 0;
	align-self: flex-end;
	bottom: -60px;
	animation: tr-mascot-float 3s ease-in-out infinite;
	line-height: 0;
}

.mascot-ai__image img {
	display: block;
	width: 100%;
	height: auto;
}

@media only screen and (max-width: 667px) {
	.mascot-ai:not(.mascot-ai--show-mobile) {
		display: none;
	}

	.mascot-ai--show-mobile .mascot-ai__bubble {
		width: min(300px, calc(100vw - 90px));
	}
}

@keyframes tr-mascot-appear {
	0% {
		opacity: 0;
		visibility: visible;
		transform: scale(0.85);
	}

	100% {
		opacity: 1;
		visibility: visible;
		transform: scale(1);
	}
}

@keyframes tr-mascot-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-8px);
	}
}

/* В редакторе показываем статично */
.editor-styles-wrapper .mascot-ai {
	position: relative;
	bottom: auto;
	right: auto;
	opacity: 1;
	visibility: visible;
	justify-content: flex-end;
	padding-bottom: 60px;
}

.editor-styles-wrapper .mascot-ai__image {
	animation: none;
}
