/* ===================================================================
   8. SPECIAL FEATURES
================================================================== */

/* Hero Section */
.hero {
	background: #f9f5d7;
	/* fallback */
	background: var(--bg-alt);
	border-bottom: 2px solid #7c6f64;
	/* fallback */
	border-bottom: 2px solid var(--border);
	padding: 2rem 1rem;
	margin-bottom: 2rem;
	position: relative;
}

.hero-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	color: #665c54;
	/* fallback */
	color: var(--muted);
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 4px;
	transition: all 140ms ease;
	z-index: 10;
}

.hero-close:hover {
	color: #3c3836;
	/* fallback */
	color: var(--fg);
	background: rgba(60, 56, 54, 0.1);
}

.hero-close:active {
	transform: scale(0.95);
}

.hero-close i {
	font-size: 1.25rem;
}

.hero-inner {
	max-width: 70rem;
	margin: 0 auto;
	display: flex;
	/* fallback for older browsers */
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
}

@supports (display: grid) {
	.hero-inner {
		display: grid;
		grid-template-columns: 200px 1fr;
		gap: 2rem;
		align-items: center;
	}
}

/* ===================================================================
   Status.lol Module Styles
================================================================== */

.statuslol_container {
	font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
	font-size: .8rem;
	line-height: 1.2;
}

.statuslol_time {
	margin-top: -1rem;
}

.statuslol_container a:hover {
	color: #cc241d;
	color: var(--accent-secondary);
	text-decoration: underline;
}

.hero-image {
	text-align: center;
}

.hero-image-bg {
	background: #f2e5bc;
	border-radius: 8px;
	padding: 1rem;
	display: inline-block;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-image img {
	max-width: 150px;
	height: auto;
	display: block;
	transition: transform 200ms ease;
	will-change: transform;
}

.hero-image img:hover {
	transform: scale(1.05);
}

.hero-image-credit {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: #665c54;
	/* fallback */
	color: var(--muted);
}

.hero-image-credit a {
	color: #665c54;
	/* fallback */
	color: var(--muted);
	text-decoration: none;
}

.hero-image-credit a:hover {
	color: #cc241d;
	/* fallback */
	color: var(--link);
}

.hero-content {
	font-size: 1.125rem;
	line-height: 1.6;
	color: #3c3836;
	/* fallback */
	color: var(--fg);
}

.hero-content p {
	margin: 0 0 1.5rem;
	max-width: 40rem;
}

.hero-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: all 140ms ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	background: #cc241d;
	/* fallback */
	background: var(--bg);
	color: #fbf1c7;
	/* fallback */
	color: var(--accent-secondary);
	border: 2px solid #cc241d;
	/* fallback */
	border: 2px solid var(--accent-primary);
	font-family: 'Public Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.hero-btn:hover {
	color: #9d0006;
	/* fallback */
	color: var(--link-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(204, 36, 29, 0.3);
}

/* Header anchors */
h1 .header-anchor::after {
	content: " #";
}

h2 .header-anchor::after {
	content: " ##";
}

h3 .header-anchor::after {
	content: " ###";
}

h4 .header-anchor::after {
	content: " ####";
}

.header-anchor {
	text-decoration: none;
	color: #665c54;
	/* fallback */
	color: var(--muted);
	margin-left: 0.5rem;
	opacity: 0;
	transition: opacity 0.2s ease;
}

h1:hover .header-anchor,
h2:hover .header-anchor,
h3:hover .header-anchor,
h4:hover .header-anchor {
	opacity: 1;
}

/* Pull quotes */
.pullquote {
	font-size: 1.5rem;
	line-height: 1.4;
	text-align: center;
	margin: 2.5rem 0;
	padding: 2rem;
	border-top: 3px solid #cc241d;
	/* fallback */
	border-top: 3px solid var(--accent-primary);
	border-bottom: 3px solid #cc241d;
	/* fallback */
	border-bottom: 3px solid var(--accent-primary);
	font-style: italic;
	color: #3c3836;
	/* fallback */
	color: var(--fg);
}

/* Table of contents */
.toc {
	border: 1px solid #7c6f64;
	/* fallback for color-mix */
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #f2e5bc;
	/* fallback */
	background: var(--panel);
	padding: 0.55rem 0.7rem;
	margin: 0.75rem 0 1rem;
	width: 90%;
	max-width: 56rem;
	margin-left: auto;
	margin-right: auto;
	font-size: 0.85em;
	line-height: 1.35;
}

.toc-title {
	font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
	font-size: 0.75em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #665c54;
	/* fallback */
	color: var(--muted);
	margin: 0 0 0.35rem;
	text-align: center;
}

.toc ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.toc ul ul {
	margin-top: 0.2rem;
	padding-left: 0.65rem;
	border-left: 1px solid #7c6f64;
	/* fallback for color-mix */
	border-left: 1px solid var(--border);
}

.toc li {
	margin: 0.12rem 0;
}

.toc a {
	text-decoration: none;
}

.toc a:hover,
.toc a:active {
	text-decoration: underline;
}

/* Pagefind search UI */
:root {
	--pagefind-ui-scale: 1;
	--pagefind-ui-primary: #d9730d;
	--pagefind-ui-text: #000;
	--pagefind-ui-background: #fff;
	--pagefind-ui-border: #ccc;
	--pagefind-ui-tag: #d9730d;
	--pagefind-ui-border-width: 2px;
	--pagefind-ui-border-radius: 8px;
	--pagefind-ui-image-border-radius: 8px;
	--pagefind-ui-image-box-ratio: 3 / 2;
	--pagefind-ui-font: 'Public Sans', sans-serif;
}

/* Pagefind dark mode overrides */
:root.dark-mode {
	--pagefind-ui-primary: #83a598;
	--pagefind-ui-text: #ebdbb2;
	--pagefind-ui-background: #282828;
	--pagefind-ui-border: #504945;
}

/* Direct styling for Pagefind UI elements in dark mode */
.dark-mode .pagefind-ui__result-link,
.dark-mode .pagefind-ui__result-title,
.dark-mode .pagefind-ui__message {
	color: #ebdbb2 !important;
}

.dark-mode .pagefind-ui__result-excerpt {
	color: #a89984 !important;
}

.dark-mode .pagefind-ui__result {
	background: #282828 !important;
	border-color: #504945 !important;
}

.dark-mode .pagefind-ui__search-input {
	background: #282828 !important;
	color: #ebdbb2 !important;
	border-color: #504945 !important;
}

.dark-mode mark {
	background: #fabd2f !important;
	color: #1d2021 !important;
}

/* Alert boxes dark mode overrides */
.dark-mode .alert-info {
	background: rgba(7, 102, 120, 0.2);
	color: #458588;
}

.dark-mode .alert-warning {
	background: rgba(213, 93, 14, 0.2);
	color: #d79921;
}

.dark-mode .alert-danger {
	background: rgba(204, 36, 29, 0.2);
	color: #cc241d;
}

/* Hero close button dark mode */
.dark-mode .hero-close {
	color: #928374;
	/* fallback */
	color: var(--muted);
}

.dark-mode .hero-close:hover {
	color: #ebdbb2;
	/* fallback */
	color: var(--fg);
	background: rgba(235, 219, 178, 0.1);
}

/* Reply context dark mode */
.dark-mode .reply-context {
	background: rgba(251, 241, 199, 0.05);
	border-left-color: #fb4934;
}

.dark-mode .reply-context-notice {
	color: #a89984;
}

.dark-mode .reply-context-notice a {
	color: #fb4934;
}

.dark-mode .reply-quote {
	border-left-color: #665c54;
	color: #a89984;
}

.dark-mode .reply-quote footer {
	color: #a89984;
}
