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

body {
	font-family: 'Barlow', sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: #333;
	background-color: #f5f5f5;
}

header {
	background: #000;
	color: white;
	padding: 3em 2em 2em;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
	font-size: 2.5em;
	margin-bottom: 0.3em;
	font-weight: 700;
}

header .subtitle {
	font-size: 1.2em;
	opacity: 0.9;
	margin-bottom: 1.5em;
}

header nav {
	margin-top: 1.5em;
	display: flex;
	gap: 1em;
	justify-content: center;
	flex-wrap: wrap;
}

header nav a {
	color: white;
	text-decoration: none;
	padding: 0.5em 1.5em;
	border: 2px solid white;
	border-radius: 2em;
	transition: all 0.3s ease;
	display: inline-block;
	font-weight: 500;
	font-size: 0.9em;
}

header nav a:hover {
	background-color: white;
	color: #000;
}

main {
	max-width: 900px;
	margin: 0 auto;
	padding: 2em;
}

section {
	background: white;
	margin: 2em 0;
	padding: 2em;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

section.intro {
	background: #f8f9fa;
	border-left: 4px solid #000;
}

.keyboard-variants {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5em;
	margin: 1.5em 0;
}

.variant-group {
	background: white;
	padding: 1.5em;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.variant-group h3 {
	color: #000;
	margin-bottom: 0.8em;
	font-size: 1.2em;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 0.5em;
}

.variant-group ul {
	margin-left: 1.2em;
}

.variant-group li {
	color: #555;
}

h2 {
	color: #000;
	font-size: 1.8em;
	margin-bottom: 0.8em;
	font-weight: 700;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 0.5em;
}

h3 {
	color: #555;
	font-size: 1.3em;
	margin-bottom: 0.6em;
	font-weight: 600;
}

h4 {
	color: #666;
	font-size: 1.1em;
	margin-bottom: 0.5em;
	margin-top: 1em;
	font-weight: 600;
}

.step {
	margin-bottom: 1.5em;
}

ol, ul {
	margin-left: 1.5em;
	margin-top: 0.5em;
	margin-bottom: 1em;
}

li {
	margin: 0.5em 0;
}

ul ul, ol ul {
	margin-top: 0.3em;
	margin-bottom: 0.3em;
}

code {
	background-color: #f4f4f4;
	padding: 0.2em 0.6em;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
	font-size: 0.9em;
	color: #d63384;
}

.pcb-specific {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-bottom: 1em;
}

.badge {
	display: inline-block;
	background-color: #333;
	color: white;
	padding: 0.3em 0.8em;
	border-radius: 1em;
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge-bt {
	background-color: #555;
}

.badge-hall {
	background-color: #000;
}

.inline-badge {
	display: inline-block;
	background-color: #333;
	color: white;
	padding: 0.15em 0.6em;
	border-radius: 0.8em;
	font-size: 0.7em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	vertical-align: middle;
	margin-left: 0.3em;
}

.bluetooth-section {
	background-color: #f0f0f0;
	padding: 1.5em;
	border-radius: 8px;
	border-left: 4px solid #555;
	margin-top: 1.5em;
}

.hall-effect-section {
	background-color: #f0f0f0;
	padding: 1.5em;
	border-radius: 8px;
	border-left: 4px solid #000;
	margin-top: 1.5em;
}

.keyboard-selector {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2em;
}

.keyboard-card {
	background: white;
	padding: 0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.keyboard-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.keyboard-card h2 {
	background: #000;
	color: white;
	padding: 1.5em;
	margin: 0;
	border: none;
	font-size: 1.8em;
}

.keyboard-card > p {
	padding: 1em 1.5em 0.5em;
	color: #666;
	font-size: 0.95em;
}

.pcb-links {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 1em;
}

.pcb-button {
	display: grid;
	grid-template-areas: 
		"icon name"
		"icon desc";
	grid-template-columns: 60px 1fr;
	grid-template-rows: auto auto;
	gap: 0 1em;
	padding: 1.2em;
	background: #f8f9fa;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	align-items: center;
	margin-bottom: 0.8em;
}

.pcb-button:last-child {
	margin-bottom: 0;
}

.pcb-button:hover {
	background: white;
	border-color: #000;
	transform: translateX(5px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pcb-button.badge-bt:hover {
	border-color: #555;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pcb-button.badge-hall:hover {
	border-color: #000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pcb-icon {
	grid-area: icon;
	font-size: 2.5em;
	text-align: center;
	align-self: center;
}

.pcb-name {
	grid-area: name;
	font-size: 1.1em;
	font-weight: 700;
	color: #333;
	align-self: end;
}

.pcb-desc {
	grid-area: desc;
	font-size: 0.85em;
	color: #666;
	align-self: start;
}

.quick-links {
	margin-top: 1em;
}

.link-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5em;
	margin-top: 1em;
}

.quick-link {
	background: white;
	padding: 1.5em;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	border: 2px solid #e9ecef;
	transition: all 0.3s ease;
}

.quick-link:hover {
	border-color: #000;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-link h3 {
	color: #000;
	margin-bottom: 0.5em;
	font-size: 1.2em;
}

.quick-link p {
	color: #666;
	margin: 0;
	font-size: 0.9em;
}

.note {
	background-color: #fff3cd;
	border-left: 4px solid #ffc107;
	padding: 1em;
	margin: 1em 0;
	border-radius: 4px;
}

.tip {
	background-color: #d1ecf1;
	border-left: 4px solid #17a2b8;
	padding: 1em;
	margin: 1em 0;
	border-radius: 4px;
}

.troubleshoot-item {
	margin-bottom: 1.5em;
	padding-bottom: 1em;
	border-bottom: 1px solid #f0f0f0;
}

.troubleshoot-item:last-child {
	border-bottom: none;
}

section.tips {
	background: #f0f0f0;
	border-left: 4px solid #555;
}

section.support {
	background-color: #f8f9fa;
	text-align: center;
	border-left: 4px solid #000;
}

a {
	color: #000;
	text-decoration: none;
	font-weight: 500;
}

a:hover {
	text-decoration: underline;
}

footer {
	text-align: center;
	padding: 2em;
	color: #888;
	font-size: 0.9em;
}

.minimal-main {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 2em;
	max-width: none;
	margin: 0;
}

.minimal-container {
	max-width: 500px;
	width: 100%;
}

.minimal-container h1 {
	font-size: 3em;
	font-weight: 700;
	margin-bottom: 2em;
	color: #000;
}

.minimal-section {
	margin-bottom: 2em;
}

.minimal-section h2 {
	font-size: 1.2em;
	font-weight: 600;
	margin-bottom: 0.8em;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 1px;
	border: none;
	padding: 0;
}

.minimal-link {
	display: block;
	padding: 0.8em 1.2em;
	margin-bottom: 0.5em;
	background: white;
	border: 2px solid #e9ecef;
	border-radius: 4px;
	color: #000;
	text-decoration: none;
	transition: all 0.2s ease;
	font-weight: 500;
}

.minimal-link:hover {
	border-color: #000;
	transform: translateX(5px);
}

.back-link {
	display: inline-block;
	margin-top: 2em;
	color: #666;
	text-decoration: none;
	font-size: 0.9em;
}

.back-link:hover {
	color: #000;
	text-decoration: underline;
}

.guide-header {
	margin-bottom: 2em;
	padding-bottom: 1em;
	border-bottom: 1px solid #e9ecef;
}

.guide-header h1 {
	font-size: 2em;
	font-weight: 700;
	margin-top: 0.5em;
	color: #000;
}

@media (max-width: 768px) {
	header h1 {
		font-size: 2em;
	}

	header .subtitle {
		font-size: 1em;
	}

	main {
		padding: 1em;
	}

	section {
		padding: 1.5em;
	}

	h2 {
		font-size: 1.5em;
	}
	
	.minimal-container h1 {
		font-size: 2em;
	}
}

