/**
 * Fixed public header for plugin templates (no Tailwind dependency).
 */

@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@700;800&display=swap');

/* Skip link (theme screen-reader-text may not load on minimal header). */
.ce-skip-link.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.ce-skip-link.screen-reader-text:focus {
	background: #111;
	clip: auto !important;
	clip-path: none;
	color: #65d9cb;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 0.75rem;
	line-height: normal;
	padding: 0.65rem 1rem;
	text-decoration: none;
	top: 0.75rem;
	width: auto;
	z-index: 100001;
}

#header.ce-public-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100000;
	transition:
		background-color 0.35s ease,
		box-shadow 0.35s ease,
		border-color 0.35s ease,
		backdrop-filter 0.35s ease;
	border-bottom: 1px solid transparent;
}

#header.ce-public-header--transparent {
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
}

#header.ce-public-header--solid {
	background: rgba(0, 0, 0, 0.94);
	border-bottom-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.ce-public-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 88rem;
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
}

@media (min-width: 768px) {
	.ce-public-header__inner {
		padding: 0.85rem 2.5rem;
	}
}

.ce-public-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: #65d9cb;
	font-family: Epilogue, system-ui, sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.ce-public-header__brand {
		font-size: 1.2rem;
	}
}

.ce-public-header__brand img {
	display: block;
	max-height: 2.5rem;
	width: auto;
	object-fit: contain;
}

.ce-public-header__nav {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem 1.25rem;
	flex: 1;
}

@media (min-width: 900px) {
	.ce-public-header__nav--visible {
		display: flex;
	}
}

.ce-public-header__nav a {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.94);
	transition: color 0.2s ease;
}

.ce-public-header__nav a:hover,
.ce-public-header__nav a:focus-visible {
	color: #65d9cb;
	outline: none;
}

.ce-public-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.ce-public-header__lang {
	display: inline-flex;
	align-items: stretch;
	border-radius: 9999px;
	border: 1px solid rgba(101, 217, 203, 0.35);
	background: rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.ce-public-header__lang-gap {
	flex: 0 0 1px;
	width: 1px;
	align-self: stretch;
	background: rgba(255, 255, 255, 0.18);
}

.ce-public-header__lang a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.3rem 0.5rem;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.55);
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.ce-public-header__lang a:hover {
	color: #fff;
}

.ce-public-header__lang a.is-active {
	background: rgba(101, 217, 203, 0.22);
	color: #65d9cb;
}

.ce-public-header__menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.375rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(0, 0, 0, 0.2);
	color: #fff;
	cursor: pointer;
}

@media (min-width: 900px) {
	.ce-public-header__menu-toggle {
		display: none;
	}
}

.ce-public-header__drawer {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.55);
}

.ce-public-header__drawer.is-open {
	display: block;
}

.ce-public-header__drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(20rem, 88vw);
	height: 100%;
	background: #111;
	border-left: 1px solid rgba(101, 217, 203, 0.25);
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ce-public-header__drawer-panel a {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.95);
}

.ce-public-header__drawer-panel a:hover {
	color: #65d9cb;
}

.ce-public-header__drawer-close {
	align-self: flex-end;
	margin-bottom: 0.5rem;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

body.ce-plugin-public-shell.admin-bar #header.ce-public-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.ce-plugin-public-shell.admin-bar #header.ce-public-header {
		top: 46px;
	}
}

/* Public shell footer (#footer) */
#footer.ce-public-footer {
	width: 100%;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: #0a0a0a;
	color: rgba(255, 255, 255, 0.65);
	font-family: Epilogue, system-ui, sans-serif;
	font-size: 0.8rem;
}

.ce-public-footer__inner {
	box-sizing: border-box;
	max-width: 88rem;
	margin: 0 auto;
	padding: 1.75rem 1.25rem 2.25rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: center;
	text-align: center;
}

@media (min-width: 768px) {
	.ce-public-footer__inner {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}

.ce-public-footer__top {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	align-items: center;
}

.ce-public-footer__brand {
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: -0.02em;
	color: #65d9cb;
}

.ce-public-footer__tagline {
	margin: 0;
	max-width: 42rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8rem;
}

.ce-public-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1rem;
}

.ce-public-footer__nav a {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.88);
	transition: color 0.2s ease;
}

.ce-public-footer__nav a:hover,
.ce-public-footer__nav a:focus-visible {
	color: #65d9cb;
	outline: none;
}

.ce-public-footer__copy {
	margin: 0;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.42);
}
