/* ==========================================================================
   Eightysix — Minecraft Bedrock Theme
   ========================================================================== */

:root {
	--e86-base: #f5f2eb;
	--e86-base-pattern: #ebe6db;
	--e86-surface: #ffffff;
	--e86-contrast: #1a2421;
	--e86-accent: #2a9d5c;
	--e86-accent-dark: #1f7a47;
	--e86-secondary: #c17f3a;
	--e86-link: #3d7a9e;
	--e86-muted: #5c6b66;
	--e86-border: #e0dbd2;
	--e86-radius: 12px;
	--e86-radius-lg: 20px;
	--e86-radius-xl: 28px;
	--e86-shadow: 0 1px 3px rgba(26, 36, 33, 0.06), 0 4px 16px rgba(26, 36, 33, 0.05);
	--e86-shadow-hover: 0 8px 28px rgba(26, 36, 33, 0.1);
	--e86-container: 1240px;
	--e86-gap: 1.5rem;
	--e86-font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--e86-hero-gradient: linear-gradient(135deg, #1a5c3a 0%, #2a9d5c 45%, #3d8a7a 100%);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--e86-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--e86-contrast);
	background-color: var(--e86-base);
	background-image:
		radial-gradient(circle at 20% 10%, rgba(42, 157, 92, 0.06) 0%, transparent 50%),
		radial-gradient(circle at 80% 90%, rgba(193, 127, 58, 0.05) 0%, transparent 50%),
		linear-gradient(var(--e86-base-pattern) 1px, transparent 1px),
		linear-gradient(90deg, var(--e86-base-pattern) 1px, transparent 1px);
	background-size: auto, auto, 32px 32px, 32px 32px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--e86-link);
	text-decoration: none;
	transition: color 0.15s;
}

a:hover {
	text-decoration: underline;
}

/* Layout */
.e86-container {
	width: min(100% - 2rem, var(--e86-container));
	margin-inline: auto;
}

.e86-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.e86-site-main {
	flex: 1;
	padding-block: 2rem;
}

/* Header */
.e86-header {
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--e86-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.e86-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.75rem;
}

.e86-logo {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--e86-contrast);
	text-decoration: none;
}

.e86-logo:hover {
	text-decoration: none;
	color: var(--e86-accent);
}

.e86-logo img,
.e86-header .custom-logo-link img,
.e86-header .custom-logo {
	width: clamp(140px, 28vw, 200px);
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: left center;
}

.e86-header .custom-logo-link {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.e86-header .custom-logo-link:hover {
	text-decoration: none;
}

.e86-nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--e86-border);
	border-radius: var(--e86-radius);
	padding: 0.5rem 0.75rem;
	cursor: pointer;
	font-size: 1rem;
}

.e86-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.e86-nav__list a {
	color: var(--e86-muted);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	transition: color 0.15s, background 0.15s;
}

.e86-nav__list a:hover,
.e86-nav__list .current-menu-item > a {
	color: var(--e86-accent);
	background: rgba(42, 157, 92, 0.08);
	text-decoration: none;
}

/* Hero */
.e86-hero {
	margin-bottom: 2rem;
}

.e86-hero__inner {
	position: relative;
	overflow: hidden;
	border-radius: var(--e86-radius-xl);
	background: var(--e86-hero-gradient);
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
	text-align: left;
	color: #fff;
	box-shadow: var(--e86-shadow-hover);
}

.e86-hero__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(30deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.04) 87.5%),
		linear-gradient(150deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.04) 87.5%),
		linear-gradient(30deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.04) 87.5%),
		linear-gradient(150deg, rgba(255, 255, 255, 0.04) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.04) 87.5%);
	background-size: 40px 70px;
	opacity: 0.6;
	pointer-events: none;
}

.e86-hero__title {
	position: relative;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	margin: 0 0 0.75rem;
	line-height: 1.15;
	letter-spacing: -0.02em;
	max-width: 640px;
}

.e86-hero__desc {
	position: relative;
	color: rgba(255, 255, 255, 0.88);
	max-width: 520px;
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.55;
}

/* Homepage layout */
.e86-home-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2rem;
	align-items: start;
}

.e86-home-layout__main {
	min-width: 0;
}

/* Sidebar panels */
.e86-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: sticky;
	top: 5.5rem;
}

.e86-panel {
	background: var(--e86-surface);
	border-radius: var(--e86-radius-lg);
	box-shadow: var(--e86-shadow);
	padding: 1.25rem;
	border: 1px solid var(--e86-border);
}

.e86-panel--cta {
	background: linear-gradient(160deg, #fff 0%, #f0faf3 100%);
}

.e86-panel__title {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--e86-muted);
	margin: 0 0 1rem;
}

.e86-panel__desc {
	font-size: 0.9rem;
	color: var(--e86-muted);
	margin: 0 0 1rem;
	line-height: 1.5;
}

.e86-panel__more {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--e86-accent);
}

.e86-panel__more:hover {
	color: var(--e86-accent-dark);
	text-decoration: none;
}

.e86-version-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.e86-version-list__item + .e86-version-list__item {
	border-top: 1px solid var(--e86-border);
}

.e86-version-list__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 0;
	color: inherit;
	text-decoration: none;
	transition: color 0.15s;
}

.e86-version-list__link:hover {
	color: var(--e86-accent);
	text-decoration: none;
}

.e86-version-list__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 10px;
	background: rgba(42, 157, 92, 0.1);
	color: var(--e86-accent);
	flex-shrink: 0;
}

.e86-version-list__text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.e86-version-list__name {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.e86-version-list__meta {
	font-size: 0.75rem;
	color: var(--e86-muted);
}

/* Buttons */
.e86-btn {
	display: inline-block;
	padding: 0.7rem 1.5rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	text-align: center;
	transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.e86-btn--primary {
	background: var(--e86-accent);
	color: #fff;
	box-shadow: 0 2px 8px rgba(42, 157, 92, 0.3);
}

.e86-btn--primary:hover {
	background: var(--e86-accent-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(42, 157, 92, 0.35);
	text-decoration: none;
}

/* Filter bar */
.e86-filter {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.e86-filter__btn {
	display: inline-block;
	flex-shrink: 0;
	padding: 0.45rem 1.1rem;
	border: 1px solid var(--e86-border);
	border-radius: 999px;
	background: var(--e86-surface);
	color: var(--e86-muted);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.e86-filter__btn:hover {
	border-color: var(--e86-accent);
	color: var(--e86-accent);
	text-decoration: none;
}

.e86-filter__btn.is-active {
	background: var(--e86-accent);
	border-color: var(--e86-accent);
	color: #fff;
	box-shadow: 0 2px 8px rgba(42, 157, 92, 0.25);
	text-decoration: none;
}

/* Addon grid */
.e86-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--e86-gap);
}

.e86-card {
	background: var(--e86-surface);
	border-radius: var(--e86-radius-lg);
	box-shadow: var(--e86-shadow);
	border: 1px solid var(--e86-border);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.e86-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--e86-shadow-hover);
	border-color: rgba(42, 157, 92, 0.25);
}

.e86-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.e86-card__link:hover {
	text-decoration: none;
}

.e86-card__thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--e86-border);
}

.e86-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.e86-card__body {
	padding: 1rem;
}

.e86-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.5rem;
}

.e86-badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 6px;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--e86-secondary);
	color: #fff;
}

.e86-badge--version {
	background: rgba(42, 157, 92, 0.1);
	color: var(--e86-accent-dark);
	text-transform: none;
	font-weight: 600;
}

.e86-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.e86-card__excerpt {
	font-size: 0.85rem;
	color: var(--e86-muted);
	margin: 0 0 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.e86-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--e86-border);
}

.e86-card__date {
	font-size: 0.75rem;
	color: var(--e86-muted);
	white-space: nowrap;
}

/* Stars */
.e86-stars {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
}

.e86-stars__icon {
	width: 1rem;
	height: 1rem;
	fill: #ddd;
}

.e86-stars__icon.is-filled {
	fill: var(--e86-secondary);
}

.e86-stars__count {
	font-size: 0.8rem;
	color: var(--e86-muted);
	margin-left: 0.35rem;
}

.e86-stars--interactive .e86-stars__btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}

.e86-stars--interactive .e86-stars__btn:hover .e86-stars__icon,
.e86-stars--interactive .e86-stars__btn.is-hover .e86-stars__icon {
	fill: var(--e86-secondary);
}

/* Single addon */
.e86-single__header {
	margin-bottom: 1.5rem;
}

.e86-single__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0.5rem 0;
}

.e86-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	color: var(--e86-muted);
	font-size: 0.9rem;
}

.e86-single__featured {
	border-radius: var(--e86-radius);
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.e86-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.e86-gallery img {
	border-radius: var(--e86-radius);
	width: 100%;
	height: auto;
}

.e86-content {
	max-width: var(--e86-container);
	margin-bottom: 2rem;
}

.e86-content img {
	border-radius: var(--e86-radius);
}

/* Download box */
.e86-download {
	background: var(--e86-surface);
	border: 2px solid var(--e86-accent);
	border-radius: var(--e86-radius);
	padding: 1.5rem;
	margin-bottom: 2rem;
	text-align: center;
}

.e86-download__title {
	font-size: 1.1rem;
	margin: 0 0 0.75rem;
}

.e86-download__btn {
	display: inline-block;
	padding: 0.75rem 2rem;
	background: var(--e86-accent);
	color: #fff;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
	box-shadow: 0 2px 8px rgba(42, 157, 92, 0.25);
}

.e86-download__btn:hover {
	background: var(--e86-accent-dark);
	color: #fff;
	text-decoration: none;
}

.e86-download__meta {
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: var(--e86-muted);
}

/* Rating section */
.e86-rating-section {
	background: var(--e86-surface);
	border-radius: var(--e86-radius);
	padding: 1.25rem;
	margin-bottom: 2rem;
	box-shadow: var(--e86-shadow);
}

.e86-rating-section__title {
	font-size: 1rem;
	margin: 0 0 0.75rem;
}

.e86-rating-section__message {
	font-size: 0.85rem;
	color: var(--e86-accent);
	margin-top: 0.5rem;
	min-height: 1.25rem;
}

/* Breadcrumbs */
.e86-breadcrumbs {
	font-size: 0.85rem;
	color: var(--e86-muted);
	margin-bottom: 1rem;
}

.e86-breadcrumbs a {
	color: var(--e86-muted);
}

.e86-breadcrumbs__sep {
	margin: 0 0.35rem;
}

/* Pagination */
.e86-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.e86-pagination .page-numbers {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--e86-border);
	border-radius: var(--e86-radius);
	background: var(--e86-surface);
	color: var(--e86-contrast);
	text-decoration: none;
}

.e86-pagination .page-numbers.current,
.e86-pagination .page-numbers:hover {
	background: var(--e86-accent);
	border-color: var(--e86-accent);
	color: #fff;
}

/* Comments */
.e86-comments {
	margin-top: 2rem;
}

.e86-comments__title {
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin-left: 1.5rem;
	padding-left: 1rem;
	border-left: 2px solid var(--e86-border);
}

.comment-body {
	background: var(--e86-surface);
	border-radius: var(--e86-radius);
	padding: 1rem;
	margin-bottom: 0.75rem;
	box-shadow: var(--e86-shadow);
}

.comment-author {
	font-weight: 600;
	font-size: 0.9rem;
}

.comment-meta {
	font-size: 0.8rem;
	color: var(--e86-muted);
	margin-bottom: 0.5rem;
}

.comment-form label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.25rem;
	font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--e86-border);
	border-radius: var(--e86-radius);
	font-family: inherit;
	font-size: 0.95rem;
	margin-bottom: 0.75rem;
}

.comment-form .submit {
	padding: 0.6rem 1.5rem;
	background: var(--e86-accent);
	color: #fff;
	border: none;
	border-radius: var(--e86-radius);
	font-weight: 600;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--e86-accent-dark);
}

/* Archive header */
.e86-archive-header {
	margin-bottom: 1.5rem;
}

.e86-archive-header__title {
	font-size: 1.75rem;
	margin: 0 0 0.5rem;
}

.e86-archive-header__desc {
	color: var(--e86-muted);
	margin: 0;
}

/* Footer */
.e86-footer {
	background: var(--e86-contrast);
	color: #a8b5b0;
	padding: 2.5rem 0;
	margin-top: auto;
}

.e86-footer a {
	color: #ccc;
}

.e86-footer a:hover {
	color: #fff;
}

.e86-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.5rem;
}

.e86-footer__nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.e86-social {
	display: flex;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.e86-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	transition: background 0.15s;
}

.e86-social a:hover {
	background: var(--e86-accent);
	text-decoration: none;
}

.e86-social svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: currentColor;
}

.e86-footer__copy {
	font-size: 0.85rem;
	margin-top: 1.5rem;
	width: 100%;
	text-align: center;
	color: #888;
}

/* 404 & search */
.e86-not-found {
	text-align: center;
	padding: 3rem 0;
}

.e86-search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 480px;
	margin: 1rem auto;
}

.e86-search-form input[type="search"] {
	flex: 1;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--e86-border);
	border-radius: var(--e86-radius);
	font-size: 1rem;
}

.e86-search-form button {
	padding: 0.6rem 1.25rem;
	background: var(--e86-accent);
	color: #fff;
	border: none;
	border-radius: var(--e86-radius);
	font-weight: 600;
	cursor: pointer;
}

/* Release / server cards */
.e86-list-card {
	background: var(--e86-surface);
	border-radius: var(--e86-radius);
	box-shadow: var(--e86-shadow);
	padding: 1.25rem;
	margin-bottom: 1rem;
}

.e86-list-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}

.e86-list-card__meta {
	font-size: 0.85rem;
	color: var(--e86-muted);
	margin-bottom: 0.75rem;
}

/* Mobile nav */
@media (max-width: 960px) {
	.e86-home-layout {
		grid-template-columns: 1fr;
	}

	.e86-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		gap: 1rem;
	}
}

@media (max-width: 768px) {
	.e86-nav-toggle {
		display: block;
	}

	.e86-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--e86-surface);
		border-bottom: 1px solid var(--e86-border);
		padding: 1rem;
	}

	.e86-nav.is-open {
		display: block;
	}

	.e86-nav__list {
		flex-direction: column;
	}

	.e86-header__inner {
		position: relative;
		flex-wrap: wrap;
	}
}

/* Screen reader */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}
