@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@700&display=swap');

:root {
	--accent: #3097d1;
	--accent-dark: #1e6fa0;
	--accent-glow: rgba(48, 151, 209, 0.25);
	--bg: #0d0d0d;
	--bg-card: #111111;
	--bg-card2: #161616;
	--border: rgba(255,255,255,0.07);
	--border-accent: rgba(48, 151, 209, 0.3);
	--text: #e5e7eb;
	--text-muted: #6b7280;
	--text-dim: #9ca3af;
	--header-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: 'Rajdhani', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #5ab3e0; }

/* ── HEADER ── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-height);
	background: rgba(13,13,13,0.95);
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	padding: 0 32px;
	gap: 32px;
}

.site-header .logo img {
	height: 44px;
	display: block;
}

.site-header nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
}

.site-header nav a {
	padding: 6px 14px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: var(--text-dim);
	transition: all 0.15s;
}

.site-header nav a:hover,
.site-header nav a.active {
	color: var(--text);
	background: rgba(255,255,255,0.06);
}

.site-header nav a.active {
	color: var(--accent);
}

.site-header .header-right {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px;
	border-radius: 5px;
	font-family: 'Rajdhani', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: all 0.15s;
	cursor: pointer;
	border: none;
	text-decoration: none;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
}
.btn-primary:hover {
	background: #3aabec;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-outline {
	background: transparent;
	color: var(--text-dim);
	border: 1px solid var(--border);
}
.btn-outline:hover {
	color: var(--text);
	border-color: rgba(255,255,255,0.2);
}

/* ── BREADCRUMB ── */
.breadcrumb {
	padding: 14px 32px;
	background: var(--bg-card);
	border-bottom: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 8px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-dim); }

/* ── HERO (home) ── */
.hero {
	padding: 72px 32px 56px;
	text-align: center;
	background: linear-gradient(180deg, rgba(48,151,209,0.06) 0%, transparent 100%);
	border-bottom: 1px solid var(--border);
}

.hero h1 {
	font-family: 'Orbitron', sans-serif;
	font-size: clamp(28px, 5vw, 52px);
	margin-bottom: 14px;
}

.hero h1 span { color: var(--accent); }

.hero p {
	font-size: 18px;
	color: var(--text-dim);
	max-width: 520px;
	margin: 0 auto 28px;
}

.hero-search {
	display: flex;
	max-width: 500px;
	margin: 0 auto;
	gap: 0;
}

.hero-search input {
	flex: 1;
	padding: 12px 18px;
	background: var(--bg-card2);
	border: 1px solid var(--border);
	border-right: none;
	border-radius: 6px 0 0 6px;
	color: var(--text);
	font-family: 'Rajdhani', sans-serif;
	font-size: 15px;
	outline: none;
	transition: border-color 0.15s;
}

.hero-search input:focus { border-color: var(--accent); }
.hero-search input::placeholder { color: var(--text-muted); }

.hero-search button {
	padding: 12px 22px;
	background: var(--accent);
	border: none;
	border-radius: 0 6px 6px 0;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	transition: background 0.15s;
}

.hero-search button:hover { background: #3aabec; }

/* ── CATEGORY GRID (home) ── */
.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	padding: 48px 32px;
	max-width: 1200px;
	margin: 0 auto;
}

.category-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.2s;
	text-decoration: none;
	color: var(--text);
	display: flex;
	flex-direction: column;
}

.category-card:hover {
	border-color: var(--border-accent);
	transform: translateY(-3px);
	box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--border-accent);
	color: var(--text);
}

.category-card .card-banner {
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 52px;
	position: relative;
	overflow: hidden;
}

.category-card .card-body {
	padding: 20px 22px 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.category-card h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 6px;
	letter-spacing: 0.5px;
}

.category-card p {
	font-size: 14px;
	color: var(--text-muted);
	flex: 1;
	margin-bottom: 14px;
}

.category-card .card-meta {
	font-size: 13px;
	color: var(--accent);
	font-weight: 600;
	letter-spacing: 0.5px;
}

/* Banner tints */
.tint-blue   { background: linear-gradient(135deg, #0d1e2e, #0d2840); }
.tint-green  { background: linear-gradient(135deg, #0d1f15, #0d2a1a); }
.tint-red    { background: linear-gradient(135deg, #2a0d0d, #1f0a0a); }
.tint-purple { background: linear-gradient(135deg, #180d2a, #1a0d22); }
.tint-orange { background: linear-gradient(135deg, #2a1a0d, #221508); }
.tint-teal   { background: linear-gradient(135deg, #0d2226, #0a1e22); }

/* ── CATEGORY PAGE LAYOUT ── */
.page-wrapper {
	display: flex;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 32px;
	gap: 32px;
	align-items: flex-start;
}

/* ── SIDEBAR ── */
.sidebar {
	width: 240px;
	flex-shrink: 0;
	position: sticky;
	top: calc(var(--header-height) + 20px);
}

.sidebar-section {
	margin-bottom: 24px;
}

.sidebar-title {
	font-size: 11px;
	letter-spacing: 3px;
	color: var(--text-muted);
	text-transform: uppercase;
	margin-bottom: 8px;
	padding: 0 8px;
}

.sidebar a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 5px;
	font-size: 14px;
	color: var(--text-dim);
	transition: all 0.15s;
	margin-bottom: 2px;
}

.sidebar a:hover {
	background: rgba(255,255,255,0.05);
	color: var(--text);
}

.sidebar a.active {
	background: rgba(48,151,209,0.12);
	color: var(--accent);
	border-left: 2px solid var(--accent);
	padding-left: 8px;
}

.sidebar a .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--border);
	flex-shrink: 0;
}

.sidebar a.active .dot { background: var(--accent); }

/* ── MAIN CONTENT ── */
.main-content {
	flex: 1;
	min-width: 0;
}

/* ── CATEGORY HEADER ── */
.category-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}

.category-icon {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	flex-shrink: 0;
}

.category-header h1 {
	font-family: 'Orbitron', sans-serif;
	font-size: 26px;
}

.category-header p {
	font-size: 15px;
	color: var(--text-muted);
	margin-top: 4px;
}

/* ── ARTICLE LIST ── */
.article-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.article-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 8px;
	text-decoration: none;
	color: var(--text);
	transition: all 0.15s;
}

.article-card:hover {
	border-color: var(--border-accent);
	background: var(--bg-card2);
	color: var(--text);
	transform: translateX(4px);
}

.article-card .article-icon {
	font-size: 24px;
	flex-shrink: 0;
	width: 40px;
	text-align: center;
}

.article-card .article-info { flex: 1; }

.article-card h3 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 2px;
}

.article-card p {
	font-size: 13px;
	color: var(--text-muted);
}

.article-card .arrow {
	color: var(--text-muted);
	font-size: 18px;
	transition: transform 0.15s;
}

.article-card:hover .arrow {
	color: var(--accent);
	transform: translateX(4px);
}

/* ── ARTICLE PAGE ── */
.article-body {
	max-width: 760px;
}

.article-title {
	font-family: 'Orbitron', sans-serif;
	font-size: 28px;
	margin-bottom: 8px;
	line-height: 1.2;
}

.article-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}

.article-meta .tag {
	background: rgba(48,151,209,0.12);
	color: var(--accent);
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.article-content h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 32px 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
	color: var(--text);
}

.article-content h3 {
	font-size: 18px;
	font-weight: 600;
	margin: 24px 0 8px;
	color: var(--accent);
}

.article-content p {
	margin-bottom: 14px;
	color: var(--text-dim);
	font-size: 16px;
}

.article-content ul, .article-content ol {
	margin: 10px 0 16px 20px;
	color: var(--text-dim);
}

.article-content li { margin-bottom: 6px; font-size: 16px; }

.article-content strong { color: var(--text); font-weight: 600; }

.tip-box {
	background: rgba(48,151,209,0.08);
	border-left: 3px solid var(--accent);
	border-radius: 0 6px 6px 0;
	padding: 14px 18px;
	margin: 20px 0;
	font-size: 15px;
	color: var(--text-dim);
}

.tip-box strong { color: var(--accent); }

.warn-box {
	background: rgba(239,68,68,0.08);
	border-left: 3px solid #ef4444;
	border-radius: 0 6px 6px 0;
	padding: 14px 18px;
	margin: 20px 0;
	font-size: 15px;
	color: var(--text-dim);
}

.warn-box strong { color: #ef4444; }

.keybind-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 24px;
	font-size: 15px;
}

.keybind-table th {
	text-align: left;
	padding: 10px 14px;
	background: var(--bg-card2);
	border-bottom: 2px solid var(--border-accent);
	font-size: 12px;
	letter-spacing: 2px;
	color: var(--accent);
	text-transform: uppercase;
}

.keybind-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--border);
	color: var(--text-dim);
}

.keybind-table tr:hover td { background: rgba(255,255,255,0.02); }

.keybind-table .key {
	display: inline-block;
	background: var(--bg-card2);
	border: 1px solid var(--border);
	border-bottom: 3px solid var(--border);
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 13px;
	color: var(--text);
	font-family: monospace;
}

/* Article nav */
.article-nav {
	display: flex;
	gap: 12px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.article-nav a {
	flex: 1;
	padding: 14px 18px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 8px;
	transition: all 0.15s;
	color: var(--text-dim);
}

.article-nav a:hover {
	border-color: var(--border-accent);
	color: var(--text);
}

.article-nav .nav-label {
	font-size: 11px;
	letter-spacing: 2px;
	color: var(--text-muted);
	text-transform: uppercase;
	margin-bottom: 4px;
}

.article-nav .nav-title { font-size: 15px; font-weight: 600; }
.article-nav .next { text-align: right; }

/* ── FOOTER ── */
.site-footer {
	margin-top: 80px;
	padding: 32px;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: var(--text-muted);
}

.site-footer img { height: 32px; opacity: 0.6; }

.site-footer .footer-links {
	display: flex;
	gap: 20px;
}

.site-footer .footer-links a {
	color: var(--text-muted);
	transition: color 0.15s;
}

.site-footer .footer-links a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
	.site-header { padding: 0 16px; gap: 16px; }
	.site-header nav { display: none; }
	.page-wrapper { flex-direction: column; padding: 24px 16px; }
	.sidebar { width: 100%; position: static; }
	.category-grid { padding: 24px 16px; grid-template-columns: 1fr; }
	.hero { padding: 40px 16px; }
	.breadcrumb { padding: 12px 16px; }
}
