/**
 * Sociq Platform Modern Footer: platform-footer.css
 * Подвал сайта с горячими ссылками экосистемы, статусом сервисов и адаптивным дизайном
 */

.platform-footer {
	position: relative;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	margin-top: 48px;
	padding-top: 48px;
	padding-bottom: 28px;
	color: #334155;
	font-family: inherit;
	z-index: 10;
}

/* На страницах сообщений футер скрывается, чтобы не нарушать окно переписки */
.messages-page ~ .platform-footer,
.messages-dialog-page ~ .platform-footer,
body:has(.messages-page) .platform-footer,
body:has(.messages-dialog-page) .platform-footer {
	display: none !important;
}

/* Верхняя секция подвала */
.platform-footer-top {
	padding-bottom: 36px;
	border-bottom: 1px solid #e2e8f0;
}

/* Колонка бренда */
.platform-footer-brand-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.platform-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #0f172a;
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -0.4px;
	transition: opacity 0.2s ease;
}

.platform-footer-brand:hover {
	opacity: 0.85;
	color: #2563eb;
}

.platform-footer-brand img {
	height: 32px;
	width: auto;
	object-fit: contain;
}

.platform-footer-tagline {
	font-size: 13.5px;
	line-height: 1.55;
	color: #64748b;
	margin: 0;
	max-width: 320px;
}

/* Индикатор статуса сервисов */
.platform-footer-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 500;
	color: #059669;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	padding: 5px 12px;
	border-radius: 999px;
	width: fit-content;
	margin-top: 4px;
}

.status-indicator-ping {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: platformPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes platformPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}
	70% {
		box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

.platform-footer-meta {
	font-size: 11.5px;
	color: #94a3b8;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.platform-footer-meta .separator {
	opacity: 0.5;
}

.platform-footer-meta a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.platform-footer-meta a:hover {
	color: #2563eb;
	text-decoration: underline;
}

/* Заголовки колонок */
.platform-footer-heading {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #475569;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Списки ссылок */
.platform-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.platform-footer-links li a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: #475569;
	text-decoration: none;
	transition: all 0.15s ease;
	line-height: 1.35;
}

.platform-footer-links li a i {
	font-size: 14px;
	color: #94a3b8;
	transition: transform 0.15s ease, color 0.15s ease;
	flex-shrink: 0;
}

.platform-footer-links li a:hover {
	color: #2563eb;
	transform: translateX(3px);
}

.platform-footer-links li a:hover i {
	color: #2563eb;
	transform: scale(1.15);
}

/* Нижняя панель подвала */
.platform-footer-bottom {
	padding-top: 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 12.5px;
	color: #94a3b8;
}

.platform-footer-bottom-links {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
}

.platform-footer-bottom-links a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.platform-footer-bottom-links a:hover {
	color: #2563eb;
	text-decoration: underline;
}

.platform-footer-scrolltop {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #475569;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s ease;
}

.platform-footer-scrolltop:hover {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
	transform: translateY(-2px);
}

/* Тёмная тема оформления (Dark Theme) */
html[data-bs-theme="dark"] .platform-footer {
	background: #0f172a;
	border-top-color: #1e293b;
	color: #94a3b8;
}

html[data-bs-theme="dark"] .platform-footer-top {
	border-bottom-color: #1e293b;
}

html[data-bs-theme="dark"] .platform-footer-brand {
	color: #f8fafc;
}

html[data-bs-theme="dark"] .platform-footer-brand:hover {
	color: #60a5fa;
}

html[data-bs-theme="dark"] .platform-footer-tagline {
	color: #94a3b8;
}

html[data-bs-theme="dark"] .platform-footer-status {
	background: rgba(16, 185, 129, 0.12);
	border-color: rgba(16, 185, 129, 0.25);
	color: #34d399;
}

html[data-bs-theme="dark"] .platform-footer-heading {
	color: #cbd5e1;
}

html[data-bs-theme="dark"] .platform-footer-links li a {
	color: #94a3b8;
}

html[data-bs-theme="dark"] .platform-footer-links li a i {
	color: #64748b;
}

html[data-bs-theme="dark"] .platform-footer-links li a:hover {
	color: #60a5fa;
}

html[data-bs-theme="dark"] .platform-footer-links li a:hover i {
	color: #60a5fa;
}

html[data-bs-theme="dark"] .platform-footer-bottom {
	color: #64748b;
}

html[data-bs-theme="dark"] .platform-footer-bottom-links a {
	color: #94a3b8;
}

html[data-bs-theme="dark"] .platform-footer-bottom-links a:hover {
	color: #60a5fa;
}

html[data-bs-theme="dark"] .platform-footer-scrolltop {
	background: #1e293b;
	border-color: #334155;
	color: #cbd5e1;
}

html[data-bs-theme="dark"] .platform-footer-scrolltop:hover {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
	.platform-footer {
		margin-top: 32px;
		padding-top: 32px;
		/* Отступ снизу, чтобы не перекрываться нижней панелью соцсети */
		padding-bottom: 84px;
	}

	.platform-footer-top {
		padding-bottom: 24px;
	}

	.platform-footer-tagline {
		max-width: 100%;
	}

	.platform-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.platform-footer-bottom-links {
		width: 100%;
		justify-content: space-between;
	}
}
