@media screen and (min-width: 600px) {
	.code-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 1024px) {
	.generator {
		max-width: 1100px;
	}

	.editor-layout {
		display: flex;
		gap: 2rem;
		align-items: flex-start;
	}

	.editor-layout #card {
		flex: 1;
		min-width: 0;
	}

	.editor-layout .preview {
		flex: 1.2;
		min-width: 0;
		position: sticky;
		top: 2rem;
		margin-top: 0;
	}
}

@media screen and (max-width: 600px) {
	.code-block textarea {
		white-space: normal;
		word-wrap: break-word;
		height: 3.5rem;
		font-size: 0.8rem;
	}

	.code-block label {
		font-size: 0.85rem;
	}

	.textarea-container {
		gap: 0.3rem;
	}

	.copy-btn {
		padding: 0.3rem 0.6rem;
		font-size: 0.75rem;
		height: auto;
		min-height: 2.3rem;
	}

	.generator {
		padding: 1rem;
	}

	body {
		padding: 0 0.5rem;
	}

	button {
		padding: 0.5rem 1rem;
	}

	.checkbox-group label {
		padding: 0.5rem;
		gap: 0.5rem;
	}

	.checkbox-group input[type="checkbox"] {
		width: 16px;
		height: 16px;
	}

	.generator h1 a i {
		font-size: 1.3rem;
	}

	footer {
		font-size: 0.8rem;
		padding: 1rem;
	}

	.footer-content {
		flex-direction: column;
		align-items: center;
		gap: 0.8rem;
	}

	.footer-content p {
		text-align: center;
		order: 2;
	}

	.social-links {
		order: 1;
		font-size: 1.3rem;
	}
}
