/*
Theme Name: NeuroEcho Book Gallery
Author: NeuroEcho
Description: A lightweight book-sharing WordPress theme wrapper for the NeuroEcho Book Gallery plugin.
Version: 1.0.5
Text Domain: neuroecho-book-gallery
*/

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

@font-face {
	font-display: swap;
	font-family: "Quicksand";
	font-style: normal;
	font-weight: 300;
	src: url("assets/fonts/quicksand-300.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Quicksand";
	font-style: normal;
	font-weight: 400;
	src: url("assets/fonts/quicksand-400.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Quicksand";
	font-style: normal;
	font-weight: 500;
	src: url("assets/fonts/quicksand-500.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Quicksand";
	font-style: normal;
	font-weight: 600;
	src: url("assets/fonts/quicksand-600.ttf") format("truetype");
}

@font-face {
	font-display: swap;
	font-family: "Quicksand";
	font-style: normal;
	font-weight: 700;
	src: url("assets/fonts/quicksand-700.ttf") format("truetype");
}

body {
	margin: 0;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 240, 245, 0.46)),
		linear-gradient(90deg, rgba(250, 158, 188, 0.08) 1px, transparent 1px),
		linear-gradient(180deg, rgba(141, 164, 177, 0.1) 1px, transparent 1px),
		#f8f3ea;
	background-size: auto, 42px 42px, 42px 42px, auto;
	color: #5d7a8a;
	font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	min-height: 100vh;
	overflow-x: hidden;
}

html[data-theme="light"] {
	color-scheme: light;
}

html[data-theme="dark"] {
	background: #090713;
	color-scheme: dark;
}

html[data-theme="dark"] body {
	background:
		radial-gradient(circle at 18% 12%, rgba(250, 158, 188, 0.2), transparent 30rem),
		radial-gradient(circle at 82% 8%, rgba(0, 240, 255, 0.16), transparent 28rem),
		radial-gradient(circle at 50% 85%, rgba(181, 126, 220, 0.18), transparent 34rem),
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(180deg, #0d0818 0%, #090713 48%, #05040a 100%);
	background-size: auto, auto, auto, 42px 42px, 42px 42px, auto;
	color: #c7d6e5;
}

img,
video,
iframe {
	height: auto;
	max-width: 100%;
}

a {
	color: inherit;
	transition: color 160ms ease, text-shadow 160ms ease, transform 160ms ease;
}

.ne-site-header,
.ne-site-footer {
	padding: 28px clamp(18px, 4vw, 42px);
	text-align: center;
}

.ne-site-header {
	background: rgba(248, 243, 234, 0.84);
	backdrop-filter: blur(8px);
	border-bottom: 3px solid rgba(250, 158, 188, 0.52);
	box-shadow: 0 12px 34px rgba(93, 122, 138, 0.12);
	position: relative;
	z-index: 20;
}

.ne-site-header-inner {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	margin: 0 auto;
	max-width: 1680px;
	width: 100%;
}

.ne-site-header::after,
.ne-site-footer::before {
	background: linear-gradient(90deg, #00f0ff, #fa9ebc, #b57edc);
	content: "";
	display: block;
	height: 3px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: min(180px, 46vw);
}

.ne-site-header::after {
	bottom: -5px;
}

.ne-site-branding {
	display: grid;
	gap: 8px;
	grid-column: 2;
	justify-items: center;
	position: relative;
}

.ne-site-actions {
	align-items: center;
	display: flex;
	gap: 10px;
	grid-column: 3;
	justify-content: flex-end;
	min-width: 0;
}

.ne-site-title {
	align-items: center;
	color: #3a0ca3;
	display: inline-flex;
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 700;
	gap: clamp(10px, 2vw, 18px);
	justify-content: center;
	letter-spacing: 0;
	line-height: 1;
	max-width: min(720px, 86vw);
	text-decoration: none;
	text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.82), 0 0 18px rgba(250, 158, 188, 0.42);
}

.ne-site-title-text {
	overflow-wrap: anywhere;
}

.ne-site-icon {
	--ne-site-icon-size: clamp(46px, 7vw, 72px);
	background: linear-gradient(135deg, #ffffff 0%, #fa9ebc 100%);
	border: 2px solid #ffffff;
	border-radius: 8px;
	box-shadow: 0 8px 18px rgba(250, 158, 188, 0.34);
	display: inline-flex;
	flex: 0 0 auto;
	height: var(--ne-site-icon-size);
	overflow: hidden;
	padding: clamp(3px, 0.7vw, 5px);
	transform: rotate(-6deg);
	transition: transform 180ms ease, box-shadow 180ms ease;
	width: var(--ne-site-icon-size);
}

.ne-site-icon img {
	border-radius: 6px;
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.ne-site-title:hover {
	color: #ff00ea;
	text-decoration: none;
	text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 0, 234, 0.42);
}

.ne-site-title:hover .ne-site-icon {
	transform: rotate(5deg) scale(1.06);
}

.ne-site-tagline {
	background: #fa9ebc;
	border: 2px solid #ffffff;
	border-radius: 8px;
	box-shadow: 2px 2px 0 rgba(58, 12, 163, 0.18);
	color: #ffffff;
	display: inline-flex;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0;
	padding: 5px 12px;
	transform: rotate(-1deg);
	text-transform: uppercase;
}

.ne-site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ne-site-nav {
	max-width: min(620px, 100%);
}

.ne-site-nav a {
	background: linear-gradient(135deg, #ffffff 0%, #e0e5ec 100%);
	border: 1px solid #ffffff;
	border-radius: 999px;
	box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 4px 8px rgba(93, 122, 138, 0.09);
	color: #3a0ca3;
	display: inline-flex;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	min-height: 36px;
	padding: 8px 16px;
	text-decoration: none;
	text-transform: uppercase;
}

.ne-site-nav a:hover {
	background: linear-gradient(135deg, #ffffff 0%, #fa9ebc 100%);
	color: #3a0ca3;
	text-decoration: none;
	transform: translateY(-1px) scale(1.03);
}

.ne-theme-toggle {
	align-items: center;
	appearance: none;
	background: linear-gradient(135deg, #ffffff 0%, #e0e5ec 100%);
	border: 1px solid #ffffff;
	border-radius: 999px;
	box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 4px 10px rgba(93, 122, 138, 0.12);
	color: #3a0ca3;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 40px;
	font: inherit;
	height: 40px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
	width: 40px;
}

.ne-theme-toggle:hover {
	background: linear-gradient(135deg, #ffffff 0%, #fa9ebc 100%);
	box-shadow: 0 8px 18px rgba(250, 158, 188, 0.24);
	transform: translateY(-1px) scale(1.04);
}

.ne-theme-toggle:focus-visible {
	outline: 3px solid rgba(0, 240, 255, 0.5);
	outline-offset: 3px;
}

.ne-theme-toggle-moon {
	display: none;
}

.ne-theme-toggle-sun {
	display: block;
}

html[data-theme="dark"] .ne-theme-toggle-moon {
	display: block;
}

html[data-theme="dark"] .ne-theme-toggle-sun {
	display: none;
}

.ne-site-footer {
	background: linear-gradient(to top, rgba(248, 243, 234, 0.96), rgba(248, 243, 234, 0.72));
	border-top: 0;
	color: #8da4b1;
	font-size: 0.9rem;
	margin-top: 42px;
	position: relative;
}

.ne-site-footer::before {
	top: 0;
}

.ne-site-footer p {
	background: rgba(255, 255, 255, 0.68);
	border: 1px solid rgba(250, 158, 188, 0.48);
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(93, 122, 138, 0.1);
	color: #3a0ca3;
	display: inline-flex;
	flex-wrap: wrap;
	font-family: inherit;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0;
	margin: 0 auto;
	max-width: 680px;
	padding: 10px 18px;
}

html[data-theme="dark"] .ne-site-header {
	background: rgba(9, 7, 19, 0.76);
	border-bottom-color: rgba(0, 240, 255, 0.25);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 28px rgba(181, 126, 220, 0.12);
}

html[data-theme="dark"] .ne-site-title,
html[data-theme="dark"] .ne-site-footer p {
	color: #f5eaff;
	text-shadow: 0 0 18px rgba(181, 126, 220, 0.38);
}

html[data-theme="dark"] .ne-site-icon {
	background: linear-gradient(135deg, rgba(250, 158, 188, 0.22), rgba(0, 240, 255, 0.12));
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow: 0 0 24px rgba(250, 158, 188, 0.35);
}

html[data-theme="dark"] .ne-site-title:hover {
	color: #45f6ff;
	text-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
}

html[data-theme="dark"] .ne-site-nav a,
html[data-theme="dark"] .ne-theme-toggle,
html[data-theme="dark"] .ne-site-footer p {
	background: linear-gradient(135deg, rgba(255, 159, 196, 0.18), rgba(0, 240, 255, 0.12));
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 20px rgba(0, 240, 255, 0.1);
}

html[data-theme="dark"] .ne-site-nav a {
	color: #f7e8ff;
}

html[data-theme="dark"] .ne-theme-toggle {
	color: #f7e8ff;
}

html[data-theme="dark"] .ne-site-nav a:hover,
html[data-theme="dark"] .ne-theme-toggle:hover {
	background: linear-gradient(135deg, rgba(255, 159, 196, 0.32), rgba(0, 240, 255, 0.22));
	color: #45f6ff;
}

html[data-theme="dark"] .ne-site-footer {
	background: linear-gradient(to top, rgba(8, 6, 18, 0.96), rgba(8, 6, 18, 0));
	color: #c7d6e5;
}

@media (max-width: 640px) {
	.ne-site-header,
	.ne-site-footer {
		padding-inline: 14px;
	}

	.ne-site-header-inner {
		gap: 10px;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.ne-site-branding {
		grid-column: 1;
		justify-items: start;
		min-width: 0;
	}

	.ne-site-actions {
		grid-column: 2;
	}

	.ne-site-title {
		font-size: clamp(1.45rem, 7.6vw, 2.4rem);
		gap: 8px;
		justify-content: flex-start;
		max-width: 100%;
	}

	.ne-site-title-text {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.ne-site-icon {
		--ne-site-icon-size: 42px;
	}

	.ne-site-tagline {
		font-size: 0.7rem;
		padding: 4px 8px;
	}

	.ne-site-nav ul {
		gap: 6px;
	}

	.ne-site-nav a {
		justify-content: center;
		min-height: 38px;
		padding-inline: 11px;
	}

	.ne-theme-toggle {
		flex-basis: 38px;
		height: 38px;
		width: 38px;
	}

	.ne-site-footer p {
		border-radius: 8px;
		width: 100%;
	}
}
