/**
 * ART Theme — footer styles.
 * Loaded conditionally on the front end; see inc/class-theme-styles.php.
 *
 * @package Art_Theme
 */

/* Site footer */
.art-theme-site-footer {
	width: 100%;
	max-width: 100%;
	flex-shrink: 0;
	margin-top: var(--art-theme-footer-top-spacing, 32px);
	margin-bottom: var(--art-theme-footer-bottom-spacing, 32px);
	margin-inline: auto;
	box-sizing: border-box;
}

.art-theme-site-footer--width-fixed {
	max-width: calc(
		var(--art-theme-footer-content-width, var(--art-theme-width))
		+ (var(--art-theme-footer-fixed-extra-inline, 0px) * 2)
	);
}

.art-theme-site-footer--width-full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.art-theme-site-footer__inner {
	border-radius: var(--art-theme-footer-radius, 10px);
}

.art-theme-site-footer__title {
	font-family: var(--art-theme-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--art-theme-fg);
}

.art-theme-site-footer__tagline {
	margin-top: 0.35rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--art-theme-muted);
}

.art-theme-site-footer__socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
}

.art-theme-site-footer__social-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	flex-shrink: 0;
}

.art-theme-site-footer__social-item:hover,
.art-theme-site-footer__social-item:focus-visible {
	color: #fff;
	opacity: 1;
}

.art-theme-site-footer__social-item--snapchat:hover,
.art-theme-site-footer__social-item--snapchat:focus-visible {
	color: #111827;
}

.art-theme-site-footer__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
}

.art-theme-site-footer__social-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.art-theme-site-footer__social-icon--letter {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
}

.art-theme-site-footer__social-item--telegram { background: #2aabee; }
.art-theme-site-footer__social-item--youtube { background: #ff0000; }
.art-theme-site-footer__social-item--vk { background: #0077ff; }
.art-theme-site-footer__social-item--instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.art-theme-site-footer__social-item--mail { background: #4b5563; }
.art-theme-site-footer__social-item--whatsapp { background: #25d366; }
.art-theme-site-footer__social-item--facebook { background: #1877f2; }
.art-theme-site-footer__social-item--zen { background: #111827; }
.art-theme-site-footer__social-item--max { background: #471aff; }
.art-theme-site-footer__social-item--tiktok { background: #111827; }
.art-theme-site-footer__social-item--x { background: #111827; }
.art-theme-site-footer__social-item--linkedin { background: #0a66c2; }
.art-theme-site-footer__social-item--viber { background: #7360f2; }
.art-theme-site-footer__social-item--discord { background: #5865f2; }
.art-theme-site-footer__social-item--rutube { background: #111827; }
.art-theme-site-footer__social-item--ok { background: #ee8208; }
.art-theme-site-footer__social-item--github { background: #111827; }
.art-theme-site-footer__social-item--spotify { background: #1db954; }
.art-theme-site-footer__social-item--twitch { background: #9146ff; }
.art-theme-site-footer__social-item--pinterest { background: #e60023; }
.art-theme-site-footer__social-item--snapchat { background: #fffc00; color: #111827; }
.art-theme-site-footer__social-item--threads { background: #111827; }

.art-theme-site-footer__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.75rem;
}

.art-theme-site-footer__link {
	color: var(--art-theme-fg);
	font-size: 0.875rem;
	line-height: 1.45;
	text-decoration: none;
}

.art-theme-site-footer__link:hover {
	color: var(--art-theme-muted);
}

.art-theme-site-footer__copyright {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--art-theme-muted);
}

/* Footer template — classic */
.art-theme-site-footer--template-classic .art-theme-site-footer__inner {
	padding: 1.25rem var(--art-theme-space-md);
	background: var(--art-theme-surface);
	border: 1px solid var(--art-theme-border);
}

/* Footer template — floating */
.art-theme-site-footer--template-floating .art-theme-site-footer__inner {
	padding: 1.15rem 1.35rem;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(229, 229, 229, 0.9);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(8px);
}

/* Footer template — minimal */
.art-theme-site-footer--template-minimal .art-theme-site-footer__inner {
	padding: 1rem 0 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	border-top: 1px solid var(--art-theme-border);
}

/* Structure — two columns */
.art-theme-site-footer--structure-columns .art-theme-site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.5rem 2rem;
}

.art-theme-site-footer--structure-columns .art-theme-site-footer__main--brand-only,
.art-theme-site-footer--structure-columns .art-theme-site-footer__main--links-only {
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
}

.art-theme-site-footer--structure-columns .art-theme-site-footer__brand-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.art-theme-site-footer--structure-columns .art-theme-site-footer__column--brand {
	display: flex;
	justify-content: center;
}

.art-theme-site-footer--structure-columns .art-theme-site-footer__column--links {
	display: flex;
	align-items: center;
	justify-content: center;
}

.art-theme-site-footer--structure-columns .art-theme-site-footer__links--columns {
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	text-align: center;
}

.art-theme-site-footer--structure-columns .art-theme-site-footer__socials {
	justify-content: center;
}

.art-theme-site-footer--structure-columns .art-theme-site-footer__copyright--columns {
	margin-top: 1rem;
	text-align: center;
}

/* Structure — centered stack */
.art-theme-site-footer--structure-stack .art-theme-site-footer__stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
}

.art-theme-site-footer--structure-stack .art-theme-site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.art-theme-site-footer--structure-stack .art-theme-site-footer__socials {
	justify-content: center;
}

.art-theme-site-footer--structure-stack .art-theme-site-footer__links--stack {
	flex-direction: column;
	align-items: center;
	width: 100%;
	gap: 0.65rem;
}

.art-theme-site-footer--structure-stack .art-theme-site-footer__copyright--stack {
	width: 100%;
}

@media (max-width: 1024px) {
	.art-theme-site-footer--width-full,
	.art-theme-site-footer--width-fixed {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	/* Shared mobile/tablet stack — all footer structures. */
	.art-theme-site-footer__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.art-theme-site-footer__socials {
		justify-content: center;
	}

	.art-theme-site-footer__links {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: center;
		width: 100%;
		gap: 0.65rem;
		text-align: center;
	}

	.art-theme-site-footer__copyright {
		width: 100%;
		text-align: center;
	}

	/* Two columns → vertical stack. */
	.art-theme-site-footer--structure-columns .art-theme-site-footer__main {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1rem;
		border-bottom: 0;
		padding-bottom: 0;
	}

	.art-theme-site-footer--structure-columns .art-theme-site-footer__column--brand,
	.art-theme-site-footer--structure-columns .art-theme-site-footer__column--links {
		display: flex;
		width: 100%;
		justify-content: center;
	}

	.art-theme-site-footer--structure-columns .art-theme-site-footer__brand-block {
		align-items: center;
	}

	.art-theme-site-footer--structure-columns .art-theme-site-footer__copyright--columns {
		margin-top: 1rem;
	}

	/* Centered stack — same spacing as other structures on small screens. */
	.art-theme-site-footer--structure-stack .art-theme-site-footer__stack {
		align-items: center;
		text-align: center;
		gap: 1rem;
	}
}
