/* ===== BASE GRID SYSTEM ===== */

.cyber-grid {
	display: grid;
	gap: 1rem;
}

.cyber-grid--auto {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cyber-grid--stats {
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.75rem;
}

/* ===== EXPLICIT COLUMN GRIDS ===== */

.cyber-grid-cols-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.cyber-grid-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cyber-grid-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cyber-grid-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cyber-grid-cols-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cyber-grid-cols-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cyber-grid-cols-12 {
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* ===== GRID COLUMN SPAN ===== */

.cyber-col-span-1 {
	grid-column: span 1 / span 1;
}

.cyber-col-span-2 {
	grid-column: span 2 / span 2;
}

.cyber-col-span-3 {
	grid-column: span 3 / span 3;
}

.cyber-col-span-4 {
	grid-column: span 4 / span 4;
}

.cyber-col-span-5 {
	grid-column: span 5 / span 5;
}

.cyber-col-span-6 {
	grid-column: span 6 / span 6;
}

.cyber-col-span-full {
	grid-column: 1 / -1;
}

/* ===== GRID ROW SPAN ===== */

.cyber-row-span-1 {
	grid-row: span 1 / span 1;
}

.cyber-row-span-2 {
	grid-row: span 2 / span 2;
}

.cyber-row-span-3 {
	grid-row: span 3 / span 3;
}

.cyber-row-span-full {
	grid-row: 1 / -1;
}

/* ===== GAP UTILITIES ===== */

.cyber-gap-0 {
	gap: 0;
}

.cyber-gap-xs {
	gap: 0.5rem;
}

.cyber-gap-sm {
	gap: 0.75rem;
}

.cyber-gap-md {
	gap: 1rem;
}

.cyber-gap-lg {
	gap: 1.5rem;
}

.cyber-gap-xl {
	gap: 2rem;
}

.cyber-gap-2xl {
	gap: 3rem;
}

/* ===== GRID ALIGNMENT ===== */

.cyber-grid-items-start {
	align-items: start;
}

.cyber-grid-items-center {
	align-items: center;
}

.cyber-grid-items-end {
	align-items: end;
}

.cyber-grid-items-stretch {
	align-items: stretch;
}

.cyber-grid-content-start {
	justify-content: start;
}

.cyber-grid-content-center {
	justify-content: center;
}

.cyber-grid-content-end {
	justify-content: end;
}

.cyber-grid-content-between {
	justify-content: space-between;
}

/* ===== RESPONSIVE GRID ===== */

@media (max-width: 1024px) {
	.cyber-grid-cols-4,
	.cyber-grid-cols-5,
	.cyber-grid-cols-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.cyber-grid-cols-3,
	.cyber-grid-cols-4,
	.cyber-grid-cols-5,
	.cyber-grid-cols-6,
	.cyber-grid-cols-12 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cyber-gap-xl,
	.cyber-gap-2xl {
		gap: 1rem;
	}
}

@media (max-width: 480px) {
	.cyber-grid-cols-2,
	.cyber-grid-cols-3,
	.cyber-grid-cols-4,
	.cyber-grid-cols-5,
	.cyber-grid-cols-6,
	.cyber-grid-cols-12 {
		grid-template-columns: 1fr;
	}

	.cyber-grid--auto {
		grid-template-columns: 1fr;
	}

	.cyber-col-span-2,
	.cyber-col-span-3,
	.cyber-col-span-4,
	.cyber-col-span-5,
	.cyber-col-span-6 {
		grid-column: span 1 / span 1;
	}

	.cyber-gap-lg,
	.cyber-gap-xl,
	.cyber-gap-2xl {
		gap: 0.75rem;
	}
}
