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

/* =====================
	 Base 
===================== */
body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	background: #fafafa;
	color: #111;
}

/* =====================
	 Layout 
===================== */
.playground {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	max-width: 1200px;
	margin: 80px auto;
	padding: 0 24px;
}

.component-group h2::after {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	background: #111;
	margin-top: 8px;
}

/* =====================
	 Panels 
=====================*/
.components-panel,
.example-panel {
	display: flex;
	flex-direction: column;
}

.panel-header {
	margin-bottom: 48px;
}

.panel-header h1 {
	font-size: 32px;
	margin-bottom: 8px;
}

.panel-header p {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

/* =====================
	 Component Groups 
===================== */
.component-group {
	margin-bottom: 50px;
}

.component-group h2 {
	font-size: 20px;
	margin-bottom: 12px;
}

.component-guide {
	font-size: 13px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
	max-width: 520px;
}

.component-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* =====================
	 Buttons 
===================== */
.btn {
	padding: 10px 18px;
	font-size: 14px;
	border-radius: 8px;
	cursor: pointer;
}

.btn-primary {
	background: #111;
	color: #fff;
	border: none;
}

.btn-outline {
	background: none;
	border: 1px solid #111;
}

.btn-ghost {
	background: none;
	border: none;
	color: #555;
}

.actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.actions .btn-ghost {
	margin-left: auto;
}

/* =====================
	 Badges
===================== */
.badge {
	padding: 4px 10px;
	font-size: 12px;
	border-radius: 12px;
	background: #eee;
}

.badge-muted {
	background: #ddd;
	color: #666;
}

/* =====================
	 Card
===================== */
.card {
	padding: 20px;
	border-radius: 12px;
	border: 1px solid #e0e0e0;
	max-width: 260px;
}

.card h3 {
	font-size: 16px;
	margin-bottom: 8px;
}

.card p {
	font-size: 14px;
	color: #333;
}

/* =====================
	 Example
===================== */
.example-panel {
	background: rgba(0, 0, 0, 0.02);
	padding: 24px;
	border-radius: 16px;
}

.example-panel .panel-header {
	padding-bottom: 16px;
	border-bottom: 1px solid #e6e6e6;
	margin-bottom: 32px;
}

.example-card {
	background: #fff;
	padding: 24px;
	border-radius: 12px;
	border: 1px solid #e0e0e0;
	max-width: 420px;
}

.example-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.example-header h2 {
	font-size: 20px;
}

/* =====================
	 Fields
===================== */
.field {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
}

.field label {
	font-size: 13px;
	margin-bottom: 6px;
}

.field input {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 14px;
}

/* =====================
	 Note
===================== */
.example-note {
	font-size: 12px;
	color: #888;
	margin-top: 16px;
}

/* =====================
	 Responsive
===================== */
@media (max-width: 900px) {
	.playground {
		grid-template-columns: 1fr;
		gap: 80px;
	}

	.example-card {
		max-width: 100%;
	}
}
