/*
Theme Name: BloxTools
Theme URI: https://munichmal.de
Author: Blox Fruits Site
Description: Original dark gaming theme for the Blox Fruits tools platform. Lightweight, mobile-first, no page builder, no jQuery. Designed to pair with the Blox Fruits Tools plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bloxtools
Tags: dark, one-column, custom-menu, featured-images
*/

/* =========================================================
   Design tokens — same palette as the plugin's tools
   ========================================================= */
:root {
	--bt-bg: #0b0d13;
	--bt-bg-2: #12141c;
	--bt-surface: #1a1d29;
	--bt-surface-2: #232738;
	--bt-border: #2e3348;
	--bt-text: #e8eaf2;
	--bt-text-dim: #9aa0b5;
	--bt-accent: #6c5ce7;
	--bt-accent-2: #00cec9;
	--bt-warn: #fdcb6e;
	--bt-radius: 12px;
	--bt-content: 1100px;
	--bt-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bt-bg);
	color: var(--bt-text);
	font-family: var(--bt-font);
	font-size: 16px;
	line-height: 1.65;
}

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

a {
	color: var(--bt-accent-2);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	color: var(--bt-text);
	margin: 0 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

@media (min-width: 768px) {
	h1 { font-size: 2.5rem; }
	h2 { font-size: 1.75rem; }
}

.bt-container {
	max-width: var(--bt-content);
	margin: 0 auto;
	padding: 0 16px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--bt-accent);
	color: #fff;
	padding: 8px 16px;
	z-index: 100000;
}

.skip-link:focus {
	left: 0;
}

/* =========================================================
   Header / nav
   ========================================================= */
.bt-header {
	background: rgba(18, 20, 28, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--bt-border);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.bt-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
}

.bt-logo {
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: var(--bt-text);
	white-space: nowrap;
}

.bt-logo:hover {
	text-decoration: none;
}

.bt-logo .bt-logo-accent {
	color: var(--bt-accent);
}

.bt-nav-toggle {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	padding: 10px;
	cursor: pointer;
}

.bt-nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--bt-text);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.bt-nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.bt-nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.bt-nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.bt-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--bt-bg-2);
	border-bottom: 1px solid var(--bt-border);
	padding: 8px 16px 16px;
}

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

.bt-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bt-nav a {
	display: block;
	color: var(--bt-text);
	font-weight: 600;
	padding: 10px 12px;
	border-radius: 8px;
}

.bt-nav a:hover,
.bt-nav .current-menu-item > a,
.bt-nav .current_page_item > a {
	background: var(--bt-surface-2);
	color: var(--bt-accent-2);
	text-decoration: none;
}

@media (min-width: 900px) {
	.bt-nav-toggle {
		display: none;
	}
	.bt-nav {
		display: block;
		position: static;
		background: none;
		border: none;
		padding: 0;
	}
	.bt-nav ul {
		flex-direction: row;
		gap: 4px;
	}
	.bt-nav a {
		padding: 8px 14px;
	}
}

/* =========================================================
   Buttons
   ========================================================= */
.bt-btn {
	display: inline-block;
	font-weight: 700;
	border-radius: 10px;
	padding: 12px 22px;
	border: none;
	cursor: pointer;
	text-align: center;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.bt-btn:hover {
	filter: brightness(1.12);
	text-decoration: none;
	transform: translateY(-1px);
}

.bt-btn-primary {
	background: var(--bt-accent);
	color: #fff;
}

.bt-btn-ghost {
	background: var(--bt-surface-2);
	color: var(--bt-text);
	border: 1px solid var(--bt-border);
}

/* =========================================================
   Main content / entry
   ========================================================= */
.bt-main {
	padding: 28px 0 60px;
	min-height: 55vh;
}

.bt-breadcrumbs {
	font-size: 13px;
	color: var(--bt-text-dim);
	margin-bottom: 14px;
}

.bt-breadcrumbs a {
	color: var(--bt-text-dim);
}

.bt-breadcrumbs a:hover {
	color: var(--bt-accent-2);
}

.bt-page-title {
	margin-bottom: 18px;
}

.entry-content a {
	font-weight: 600;
}

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

.entry-content blockquote {
	border-left: 3px solid var(--bt-accent);
	margin: 1.2em 0;
	padding: 8px 18px;
	background: var(--bt-surface);
	border-radius: 0 10px 10px 0;
	color: var(--bt-text-dim);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bt-surface);
	border-radius: 10px;
	overflow: hidden;
}

.entry-content th,
.entry-content td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--bt-border);
	text-align: left;
}

.entry-content pre {
	background: var(--bt-surface);
	border: 1px solid var(--bt-border);
	border-radius: 10px;
	padding: 14px;
	overflow-x: auto;
}

/* =========================================================
   Hero (front page)
   ========================================================= */
.bt-hero {
	text-align: center;
	padding: 56px 0 40px;
	background:
		radial-gradient(600px 300px at 20% 0%, rgba(108, 92, 231, 0.18), transparent),
		radial-gradient(600px 300px at 80% 0%, rgba(0, 206, 201, 0.12), transparent);
}

.bt-hero h1 {
	margin-bottom: 12px;
}

.bt-hero p {
	color: var(--bt-text-dim);
	max-width: 560px;
	margin: 0 auto 24px;
	font-size: 1.05rem;
}

.bt-hero-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* =========================================================
   Card grid (tools, blog archive)
   ========================================================= */
.bt-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 24px 0;
}

@media (min-width: 640px) {
	.bt-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.bt-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.bt-card {
	background: var(--bt-surface);
	border: 1px solid var(--bt-border);
	border-radius: var(--bt-radius);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.bt-card:hover {
	border-color: var(--bt-accent);
	transform: translateY(-3px);
}

.bt-card-icon {
	font-size: 1.6rem;
	line-height: 1;
}

.bt-card h3 {
	margin: 0;
}

.bt-card p {
	margin: 0;
	color: var(--bt-text-dim);
	font-size: 0.95rem;
	flex: 1;
}

.bt-card .bt-card-link {
	font-weight: 700;
	color: var(--bt-accent-2);
}

.bt-card.is-soon {
	opacity: 0.65;
}

.bt-badge-soon {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--bt-warn);
	background: rgba(253, 203, 110, 0.12);
	border-radius: 999px;
	padding: 3px 10px;
	align-self: flex-start;
}

.bt-section-title {
	margin-top: 40px;
}

/* =========================================================
   Blog cards / single post
   ========================================================= */
.bt-post-card {
	overflow: hidden;
	padding: 0;
}

.bt-post-card .bt-post-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.bt-post-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.bt-post-card h3 a {
	color: var(--bt-text);
}

.bt-post-card h3 a:hover {
	color: var(--bt-accent-2);
	text-decoration: none;
}

.bt-post-meta {
	font-size: 13px;
	color: var(--bt-text-dim);
}

.bt-single-thumb img {
	border-radius: var(--bt-radius);
	width: 100%;
}

.bt-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 32px;
	flex-wrap: wrap;
}

.bt-pagination .page-numbers {
	background: var(--bt-surface);
	border: 1px solid var(--bt-border);
	border-radius: 8px;
	padding: 8px 14px;
	color: var(--bt-text);
	font-weight: 600;
}

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

/* =========================================================
   Footer
   ========================================================= */
.bt-footer {
	background: var(--bt-bg-2);
	border-top: 1px solid var(--bt-border);
	padding: 32px 0;
	margin-top: 40px;
}

.bt-footer-inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	text-align: center;
	color: var(--bt-text-dim);
	font-size: 14px;
}

.bt-footer nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	justify-content: center;
}

.bt-footer a {
	color: var(--bt-text-dim);
}

.bt-footer a:hover {
	color: var(--bt-accent-2);
}

.bt-footer-disclaimer {
	max-width: 640px;
	font-size: 12.5px;
	opacity: 0.8;
}

/* =========================================================
   Forms (search, comments)
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
	background: var(--bt-surface-2);
	border: 1px solid var(--bt-border);
	border-radius: 8px;
	color: var(--bt-text);
	font: inherit;
	padding: 10px 12px;
	width: 100%;
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--bt-accent);
}

.bt-search-form {
	display: flex;
	gap: 8px;
	max-width: 420px;
}

.bt-search-form input {
	flex: 1;
}

/* =========================================================
   Utility
   ========================================================= */
.bt-center {
	text-align: center;
}

.bt-error-code {
	font-size: 5rem;
	font-weight: 800;
	color: var(--bt-accent);
	line-height: 1;
	margin-bottom: 8px;
}
