/* Base Reset & Setup */
body,
html {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden; /* NO native browser scrollbars ever */
	cursor: pointer;
	scroll-behavior: smooth;
}

/* Essential Accessibility Class */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0;
}

/*
 * SCALING TEXT CONTAINER
 */
#quote-container {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
	width: 100vw;
	padding: 3rem 5vw; /* Breathing room */
	box-sizing: border-box;
	transition:
		opacity 0.5s ease,
		transform 0.5s ease,
		filter 0.5s ease;
	background: transparent;
	border: none;
	box-shadow: none;
	backdrop-filter: none;
	opacity: 0;
	transform: scale(0.98);
	filter: blur(10px);
}

#quote-text {
	/* Text scales linearly between minimum and maximum viewports */
	font-size: clamp(1.2rem, 4vw, 3.5rem);
	line-height: 1.4;
	max-width: 1400px;
	text-align: center;
	margin: 0 auto;
	word-wrap: break-word; /* Handle long text */
	max-height: 75vh;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
#quote-text::-webkit-scrollbar {
	display: none;
}

#quote-author {
	margin-top: 3rem;
	text-align: center;
}

/* -------------------------------------------------------------
   THEME CONTROLS (Floating toggle)
------------------------------------------------------------- */
.theme-toggle-btn {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	z-index: 50;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	transition: all 0.2s;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.theme-toggle-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.1);
}
.theme-name-toast {
	position: fixed;
	bottom: 2.5rem;
	right: 5rem;
	z-index: 49;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-family: sans-serif;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateX(20px);
	pointer-events: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(5px);
}
.theme-name-toast.show {
	opacity: 1;
	transform: translateX(0);
}

/* =============================================================
   GLOBAL TRANSITION STATES
============================================================= */
#quote-container.active {
	opacity: 1;
	transform: scale(1);
	filter: blur(0px);
}
#quote-container.exit {
	opacity: 0;
	transform: scale(1.02);
	filter: blur(10px);
	transition: all 0.4s ease;
}

/* DOM injection layers */
.layer {
	display: none;
}
